Adeel Zafar
145b177616
Add case in onActivityResult for LocationSettings
...
Checking the result of LocationSettings resolution in onActivityResult
2019-07-31 23:38:44 +05:00
Adeel Zafar
5f5f6709fb
Integrate turn off hotspot feature with UI for devices>=O
...
Added method checkHotspotState()
It checks the state of the hostpot for devices>=Oreo
2019-07-31 23:38:43 +05:00
Adeel Zafar
7807927562
Fixed write permission force settings bug
...
Removed the force variable that forced permission.
Permission will only appear if it is not allowed.
2019-07-31 23:38:42 +05:00
Adeel Zafar
38af60109a
Fixes#1186 Allow user to disable data before turning on hotspot
...
Added a method isMobileDataEnabled() that uses ConnectivityManager
And checks if data is enabled or not.
If data is enabled, then it takes the user to enableDisableMobileData()
It shows the user Data Usage Summary settings screen.
2019-07-31 23:38:41 +05:00
Adeel Zafar
950ca069d5
Fixes#1187 Wifi-hotspot not working with devices>=Oreo fixed.
...
Created a location request
added onCompletionListener for LocationSettingsResponse
Checked LocationSettingsStates in onActivityResult()
Added gms location dependency.
2019-07-31 23:38:40 +05:00
Adeel Zafar
8349f6d380
Add location permissions
2019-07-31 23:38:39 +05:00
Adeel Zafar
d04839f6ef
Workaround for Android versions >=Oreo
...
Worked with WifiManager's startLocalOnlyHotspotCallback
It is specifically for android versions>=O
2019-07-31 23:38:39 +05:00
Adeel Zafar
c8e975f8ed
Add documentation to the code.
2019-07-31 23:38:38 +05:00
Adeel Zafar
dc425c2199
Fix write settings permission bug
...
Write settings permission popping up on every restart.
Using Toast to display Wifi Hotspot Enabled/Disabled
2019-07-31 23:38:38 +05:00
Adeel Zafar
d4b0ea1dd3
Add menu item to turn on/off Wifi Hotspot
...
Initialize WifiManager object in MainActivity.
And work with WifiHotspotManager class.
2019-07-31 23:38:37 +05:00
Adeel Zafar
bd328b5d1d
Add method getWifiApState() and isWifiApEnabled()
...
It's used to get current state of wifi access point.
2019-07-31 23:38:36 +05:00
Adeel Zafar
8eff3c5d84
Add WIFI_AP_STATE_ENUMS
...
Declare enums to check the WifiAp state.
2019-07-31 23:38:36 +05:00
Adeel Zafar
2289a8821f
Add wifi hotspot manager class
...
This classes manages all the wifi-hotspot logic.
It uses WifiManager and WifiConfiguration classes by Android.
Add method to check show write permission settings.
Add method setWifiEnabled to setup wifi hotspot
Add setters/getters for WifiConfiguration
2019-07-31 23:38:35 +05:00
Adeel Zafar
f11bde6313
Added permissions to work with wifi-hotspot
...
Wifi related permissions.
Write system settings permission.
2019-07-31 23:38:35 +05:00
Seán Mac Gillicuddy
2957ea87f7
Merge pull request #1308 from kiwix/feature/macgills/#1307-autoformat
...
Feature/macgills/#1307 autoformat
2019-07-31 14:01:08 +01:00
Sean Mac Gillicuddy
c8a88284e0
#1307 update inspection profile to mirror gradle file
2019-07-31 13:18:39 +01:00
Sean Mac Gillicuddy
49751be4f3
#1307 reduce iconDensity to warning
2019-07-31 13:14:40 +01:00
Sean Mac Gillicuddy
86877e4cc1
#1307 autoformat post merge
2019-07-31 12:37:44 +01:00
Sean Mac Gillicuddy
cc5f062067
Merge remote-tracking branch 'origin/develop' into feature/macgills/#1307-autoformat
...
# Conflicts:
# app/src/main/java/org/kiwix/kiwixmobile/downloader/DownloadFragment.kt
# app/src/main/java/org/kiwix/kiwixmobile/utils/files/FileSearch.kt
# app/src/main/java/org/kiwix/kiwixmobile/views/LanguageAdapter.kt
# app/src/main/java/org/kiwix/kiwixmobile/views/LanguageSelectDialog.kt
# app/src/main/java/org/kiwix/kiwixmobile/views/LanguageViewHolder.kt
# app/src/main/java/org/kiwix/kiwixmobile/zim_manager/Language.kt
# app/src/main/java/org/kiwix/kiwixmobile/zim_manager/ZimManageActivity.kt
# app/src/main/java/org/kiwix/kiwixmobile/zim_manager/ZimManageViewModel.kt
# app/src/main/java/org/kiwix/kiwixmobile/zim_manager/fileselect_view/ZimFileSelectFragment.kt
# app/src/main/java/org/kiwix/kiwixmobile/zim_manager/library_view/LibraryFragment.kt
# app/src/main/java/org/kiwix/kiwixmobile/zim_manager/library_view/adapter/base/AbsDelegateAdapter.kt
# app/src/main/java/org/kiwix/kiwixmobile/zim_manager/library_view/adapter/base/AdapterDelegateManager.kt
# app/src/test/java/org/kiwix/kiwixmobile/utils/files/FileSearchTest.kt
# app/src/test/java/org/kiwix/kiwixmobile/zim_manager/ZimManageViewModelTest.kt
2019-07-31 12:35:46 +01:00
Seán Mac Gillicuddy
8fd3e7e95e
Merge pull request #1293 from kiwix/feature/macgills/#1292-language-activity
...
Feature/macgills/#1292 language activity
2019-07-30 09:22:07 +01:00
Seán Mac Gillicuddy
bc38141aad
Merge pull request #1300 from kiwix/feature/shridhargoel/#1114-toolbar-swipe
...
Feature/shridhargoel/#1114 toolbar swipe
2019-07-29 12:53:29 +01:00
Sean Mac Gillicuddy
edee67b6ad
Merge remote-tracking branch 'origin/develop' into feature/shridhargoel/#1114-toolbar-swipe
2019-07-29 12:03:02 +01:00
Sean Mac Gillicuddy
47a56f8238
#1114 suppress lint errors
2019-07-29 12:02:38 +01:00
Seán Mac Gillicuddy
b66890a469
Merge pull request #1306 from kiwix/feature/macgills/#101-proguard
...
#101 Add R8 configuration
2019-07-29 11:38:30 +01:00
Sean Mac Gillicuddy
9e84413e04
Merge remote-tracking branch 'origin/develop' into rate-app-counter
2019-07-29 10:27:00 +01:00
Seán Mac Gillicuddy
7263d0c028
Merge pull request #1317 from kiwix/hotfix/macgills/fix-build-with-trusty
...
Stop jdk installation failure
2019-07-29 10:13:39 +01:00
Sean Mac Gillicuddy
444fa311ba
Stop jdk installation failure
2019-07-29 09:26:10 +01:00
Justin Biggs
a007499fd8
changed rate-us dialog launch to 10 from original 5 per issue #1235
2019-07-28 17:22:30 -05:00
Seán Mac Gillicuddy
5e984d6d8a
Merge pull request #1296 from kiwix/feature/macgills/#1295-recursive-file-search
...
#1295 Make FileSearch recursive
2019-07-26 10:53:20 +01:00
Sean Mac Gillicuddy
222c303299
#1307 update readme
2019-07-26 10:40:54 +01:00
Sean Mac Gillicuddy
677cd2cdac
#1307 improve dev flow of interacting with pre-commit hook
2019-07-26 10:25:53 +01:00
Seán Mac Gillicuddy
01939f8a4a
Merge pull request #1314 from kiwix/hotfix/macgills/fix-build
...
Remove tools/platform tools
2019-07-26 09:42:09 +01:00
Sean Mac Gillicuddy
2646772718
Remove tools/platform tools
2019-07-26 09:25:37 +01:00
Sean Mac Gillicuddy
5756b3894a
#1307 remove tool/platform tools as they are already provided
2019-07-25 12:45:20 +01:00
Sean Mac Gillicuddy
9fceeb09c0
#1307 try different emulator to avoid build error
2019-07-25 12:45:20 +01:00
Sean Mac Gillicuddy
31840ed88a
#1307 majority of kotlin inspections raised to error level and fixed - lint baseline regenerated - ide formatter/lint and ktlint aligned
2019-07-25 12:45:19 +01:00
Sean Mac Gillicuddy
4131e30e26
#1307 ktlint formatting applied
2019-07-25 12:45:19 +01:00
Sean Mac Gillicuddy
a596e34ace
#1370 install git hooks on prebuild - update editorconfig from project codestyle settings
2019-07-25 12:45:18 +01:00
Sean Mac Gillicuddy
97d6932062
Squashed commit:
...
[e6b4786c] Revert "#1307 add ktlint"
This reverts commit 8101df0481c1979421da868a1a58646375929458.
[8101df04] #1307 add ktlint
[2035e717] Revert "#1307 test commit"
This reverts commit 4558f7a3ff93470b30f06dfc8d7a553994ca826d. (+1 squashed commits)
Squashed commits:
[4558f7a3] #1307 test commit
2019-07-25 12:45:18 +01:00
Sean Mac Gillicuddy
648597521c
#1307 Add inspections and codestyles to vcs
2019-07-24 12:41:33 +01:00
Seán Mac Gillicuddy
249c00ec03
Merge pull request #1305 from kiwix/hotfix/1302
...
Hotfix: Add "no zim open" check for Add Note Dialog in case of fresh install
2019-07-24 09:51:45 +01:00
Sean Mac Gillicuddy
36767eeab7
#101 revert using offer method on processors
2019-07-23 16:49:00 +01:00
Sean Mac Gillicuddy
f5401200a7
#101 Add R8 configuration
2019-07-23 16:47:07 +01:00
Sean Mac Gillicuddy
5af99c10d6
#1292 run automated inspection fixes
2019-07-23 14:08:56 +01:00
Seán Mac Gillicuddy
f6b31dba56
Merge pull request #1298 from kiwix/feature/macgills/#1297-real-version-code
...
#1297 Read VersionCode from Manifest
2019-07-23 10:05:32 +01:00
Aditya-Sood
74b8016261
Restyle: Reformat code style
2019-07-22 19:13:44 +05:30
Aditya-Sood
74f837a395
Refactor: Fix lint errors
2019-07-22 18:54:13 +05:30
Aditya-Sood
76d20d1271
Bug fix: Add Note Dialog
...
Prevent 'Add Note Dialog' from opening if no zim file is currently open
2019-07-22 17:18:20 +05:30
Seán Mac Gillicuddy
6aa5ac210f
Merge pull request #1115 from ShridharGoel/swipe-down
...
Swipe down on toolbar to open tabs switcher
2019-07-19 11:45:23 +01:00
Seán Mac Gillicuddy
9c1d36657a
Merge pull request #1299 from kiwix/readme-links-fix
...
Fix README links
2019-07-19 11:09:26 +01:00