2605 Commits

Author SHA1 Message Date
Aditya-Sood
c1288e6766 Refactor isLocationServicesEnabled() 2019-08-12 00:10:47 +05:30
Aditya-Sood
32bfe70643 Refactor: BroadcastReceiver handled by WDM 2019-08-12 00:04:52 +05:30
Aditya-Sood
d6cc0b8faa Major refactor: Incorporate file uris in FileItem 2019-08-11 21:23:12 +05:30
Aditya-Sood
4e7a2e03c2 Minor refactors 2019-08-11 18:22:58 +05:30
Aditya-Sood
3b1e073f05 Refactor SenderDeviceAsyncTask 2019-08-11 15:35:09 +05:30
Aditya-Sood
37c8a468de Restyle use of WDM.Callbacks interface 2019-08-11 15:25:41 +05:30
Aditya-Sood
0f97a2e8e5 Refactor logic for using WDM.sendToDevice() 2019-08-11 15:05:48 +05:30
Aditya-Sood
227b5228f8 Restyle WDM & remove unused variable/method 2019-08-11 14:58:49 +05:30
Aditya-Sood
d326deb4f3 Refactor cancelAsyncTasks() 2019-08-11 14:46:03 +05:30
Aditya-Sood
cb944bb88f Refactor isLocationServicesEnabled() 2019-08-08 11:39:35 +05:30
Aditya-Sood
ba00ece2ca Refactor KiwixWifiP2pBroadcastReceiver 2019-08-08 10:11:24 +05:30
Aditya-Sood
f3505a646b Restyle KiwixDialog.kt 2019-08-08 10:08:57 +05:30
Aditya-Sood
ce8e3d3136 Fix hack for slower devices
- Use Thread.sleep() in SenderDeviceAsyncTask to delay connection to receiver
2019-08-05 18:38:46 +05:30
Aditya-Sood
2d20ac07eb Refactor WifiDirectManager
- Use displayToast() instead of showToast() within WDM (per DRY principle)
- Add onFileTransferAsyncTaskComplete() method for async-tasks to inform WDM post their completion
- Add `wereAllFilesTransferred` status variable
2019-08-04 17:59:18 +05:30
Aditya-Sood
39afa4b830 Minor code cleanup 2019-08-04 17:43:12 +05:30
Aditya-Sood
e6fa97abba Increment: Add onFileTransferComplete() callback
- Async-tasks are now free of a LocalFileTransferActivity instance
2019-08-04 16:15:09 +05:30
Aditya-Sood
2471385963 Increment: Add displayToast() method
For async-tasks, to reduce the need for a LocalFileTransferActivity instance in them
2019-08-04 16:03:09 +05:30
Aditya-Sood
451472ff82 Minor refactor
- Changed method names & a signature
- Made public variables private
2019-08-04 15:28:44 +05:30
Aditya-Sood
bfd24a42d5 Refactor LocalFileTransferActivity & async-tasks
- All communication with LocalFileTransferActivity is now through WifiDirectManager.Callbacks only
- Modified async tasks to use instance of calling WifiDirectManager
2019-08-04 15:05:58 +05:30
Aditya-Sood
d11af7ba65 Major Refactor!
- Shift all async-tasks and file transfer code to WDM from LocalFileTransferActivity
- LocalFileTransferActivity only deals with setting up the UI now
2019-08-03 21:01:14 +05:30
Aditya-Sood
19b316644e Refactor WifiDirectManager
- Consolidate the wifi direct transfer cleanup code in WDM
- Cleanup now performed by WDM, initiated by the destroyWifiDirectManager() call in onDestroy()
2019-08-02 11:47:14 +05:30
Aditya-Sood
314ff811fd Refactor check...Permission() methods 2019-08-02 09:48:00 +05:30
Aditya-Sood
30b18553cb Refactor onRequestPermissionsResult() 2019-08-02 09:01:36 +05:30
Aditya-Sood
7164fd621c Improve ReceiverDeviceAsyncTask
Instead of cancelling the entire transfer upon a single transfer error, continue accepting the remaining files
2019-08-01 20:09:23 +05:30
Aditya-Sood
ab8e9da971 Improve SenderDeviceAsyncTask
- Use single instance of the async task to transfer all files
2019-08-01 18:36:48 +05:30
Aditya-Sood
c590ebabe9 Refactor: Remove overridden onBackPressed()
- onDestroy() already handles cancelling async tasks
2019-08-01 11:21:04 +05:30
Aditya-Sood
0a9126d940 Refactor: Fix CodeFactor issue (add default clause) 2019-08-01 10:43:33 +05:30
Aditya-Sood
a00481bb5b Refactor: Change class name to KiwixWifiP2pBroadcastReceiver 2019-08-01 10:12:25 +05:30
Aditya-Sood
0841d57045 Refactor: Delete extra files 2019-07-31 10:00:48 +05:30
Aditya-Sood
4b23a64f86 Refactor: Use AlertDialogShower for EnableLocationServices
- Also removed use of startActivityForResult() for EnableWifiP2pServices, since it is checked during the initialisation of WifiDirectManager in onCreate()
2019-07-31 09:56:33 +05:30
Aditya-Sood
0a5d924b5f Refactor: Use AlertDialogShower for EnableWifiP2pServices 2019-07-31 09:44:24 +05:30
Aditya-Sood
58c936b4fe Refactor 2019-07-31 09:11:40 +05:30
Aditya-Sood
4797cae7fa Refactor: Correct use of tools:hint 2019-07-30 20:01:45 +05:30
Aditya-Sood
45cfc3d579
Merge branch 'develop' into feature/LocalFileTransfer 2019-07-30 19:27:24 +05:30
Aditya-Sood
d02c940baa Refactor: Change location of constants 2019-07-30 18:04:50 +05:30
Aditya-Sood
2e41f51fc8 Refactor WifiDirectBroadcastReceiver
Shift all calls from WifiDirectBroadcastReceiver to WifiDirectManager through callbacks
2019-07-30 17:08:53 +05:30
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
Aditya-Sood
083d7768b8 Refactor WifiDirectManager 2019-07-30 12:55:43 +05:30
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
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
Aditya-Sood
9ca2ce00ca Refactor LocalFileTransferActivity 2019-07-28 19:02:54 +05:30
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
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
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