7778 Commits

Author SHA1 Message Date
MohitMaliFtechiz
8408cbc0e9 Enhanced the TTS feature.
Now, during the screen launch, we only set up the TTS service with the WebView. This is necessary to configure the JavaScript interface when the WebView is created. Otherwise, the JavaScript interface is not recognized. We initialize the TTS feature when the user tries to use it for better optimization.
2023-06-20 11:20:23 +05:30
MohitMaliFtechiz
3d837f1430 Fixes of Text to Speech init failed on android 13 2023-06-20 11:14:27 +05:30
Kelson
3420c0ea86
Merge pull request #3392 from kiwix/Issue#3349
Fixes of toggleSoftInput(Int, Int) method of InputMethodManager is deprecated
2023-06-20 05:47:12 +02:00
MohitMaliFtechiz
75c4e9278d Clearing focus from the Notes EditText to improve UI performance 2023-06-20 05:46:47 +02:00
MohitMaliFtechiz
f5ba5f4cf0 Fixes of toggleSoftInput(Int, Int) method of InputMethodManager is deprecated 2023-06-20 05:46:47 +02:00
Kelson
66a535111c
Merge pull request #3402 from kiwix/Issue#3400
Refactored onBackPressed method with updated API
2023-06-20 05:46:18 +02:00
MohitMaliFtechiz
a4625d0a23 Fixed test failure 2023-06-20 05:46:01 +02:00
MohitMaliFtechiz
529bd1bde1 Refactored onBackPressed method with updated API
This commit introduces changes to refactor the usage of the deprecated `onBackPressed` method. The `onBackPressedDispatcher` API is now used instead.

Here's a summary of the changes made:
- Updated `AddNoteDialog.kt` and `NavigationHistoryDialog.kt` to handle the back button press on the navigation bar using the `onBackPressedDispatcher`.
- Modified `CoreMainActivity.kt` to handle all back button press operations in the application using the `onBackPressedDispatcher`.
- Updated `HelpFragment.kt` and `PageFragment.kt` to handle the back button press when the user clicks on the back arrow button in the toolbar.
- Refactored the `onBackPressed` method in `SaveLanguagesAndFinish.kt` to use the updated API, and updated the corresponding test cases accordingly.

These changes ensure that the `onBackPressed` functionality is updated to use the latest API, improving the readability and maintainability of the codebase.
2023-06-20 05:46:01 +02:00
Kelson
7c1978a4f6
Merge pull request #3404 from kiwix/Issue#3332
Fixes of requestPermission is deprecated
2023-06-20 05:45:17 +02:00
MohitMaliFtechiz
7a5ff07180 Changed the requestPermission method of the fragment to utilize the new permission API registerForActivityResult.
* Updated the permission request for write storage permission, which is required for saving notes.
* Updated the permission request for read/write storage, necessary for scanning the file system in the LocalLibraryFragment.
* Fixed an issue where the permission layout would be displayed alongside the library list if the user swiped down to refresh.
* Suppress the deprecation warning for as `onRequestPermissionsResult` method is deprecated and we are using this for posting the result in all child fragments.
2023-06-20 01:38:45 +05:30
Kelson
63c3c2cd3e
Merge pull request #3403 from kiwix/Issue#3339
Fixes of deprecated methods of ConnectivityManager class
2023-06-19 08:51:21 +02:00
MohitMaliFtechiz
d8a323ddb1 Fixed ZimManageViewModelTest failure 2023-06-19 11:53:25 +05:30
MohitMaliFtechiz
9b1186d555 Refactored deprecated methods of ConnectivityManager class.
This commit refactors the deprecated methods of the ConnectivityManager class to ensure compatibility with different Android versions. The changes include:
* Introducing a new CompatV23 class to handle the deprecation of NetworkInfo and utilize the new NetworkCapabilities APIs available from Android 23 onwards.
* Retaining the existing methods for Android versions below 23 to maintain backward compatibility.
* Updating the test cases to cover both the new and old APIs.

These updates address the deprecation warnings and ensure that the code functions correctly on different Android versions.
2023-06-19 11:53:03 +05:30
MohitMaliFtechiz
9e79f11253 Refactored deprecated ConnectivityManager's method in NetworkUtils class 2023-06-19 11:35:36 +05:30
Kelson
715eff4cf1
Merge pull request #3354 from kiwix/Issue#3338
Fixed NotificationCompat.Builder(context) is deprecated
2023-06-16 21:43:03 +02:00
MohitMaliFtechiz
d68365b14f Fixed NotificationCompat.Builder(context) is deprecated 2023-06-16 21:42:48 +02:00
Kelson
26aa255f10
Merge pull request #3418 from kiwix/Issue#3405
Fixes of KiwixTextToSpeech uses some deprecated methods
2023-06-16 15:25:56 +02:00
MohitMaliFtechiz
fb90c934aa Fixed tts broken feature if we run tts twice 2023-06-16 15:25:39 +02:00
MohitMaliFtechiz
8481b4d70d Fixes of KiwixTextToSpeech uses some deprecated methods 2023-06-16 15:25:39 +02:00
Kelson
b85e3c482c
Merge pull request #3377 from kiwix/Issue#3348
Fixed deprecated getPackageInfo() method of PackageManager
2023-06-16 14:30:22 +02:00
MohitMaliFtechiz
9f0c793ce7 Fixed deprecated getPackageInfo() method of PackageManager 2023-06-16 14:29:58 +02:00
Kelson
d02afeeb97
Merge pull request #3363 from kiwix/Issue#3334
Removed deprecated `requireFragmentManager()` method
2023-06-16 13:48:31 +02:00
MohitMaliFtechiz
04dbbfd48e Removed deprecated requireFragmentManager() method 2023-06-16 13:48:19 +02:00
Kelson
1148c04ae6
Merge pull request #3381 from kiwix/Issue#3340
Fixes of local is deprecated
2023-06-14 14:36:19 +02:00
MohitMaliFtechiz
7bf7b2d5a7 Fixed local is deprecated 2023-06-14 13:50:12 +02:00
Kelson
77b3f41e2c
Merge pull request #3413 from shashank-0-0/fix-issue-3407
Fixed bottom view lost issue
2023-06-14 11:23:01 +02:00
Shashank
a6d9251c1d minor fixes 2023-06-13 18:58:43 +05:30
Shashank
1163ad0a46 fixed-bottom-view-lost-issue 2023-06-13 18:58:43 +05:30
Kelson
d7ec0bc0e0
Merge pull request #3325 from kiwix/translatewiki
Localisation updates from https://translatewiki.net.
2023-06-13 15:25:14 +02:00
translatewiki.net
0b944184c7 Localisation updates from https://translatewiki.net. 2023-06-13 15:24:31 +02:00
Kelson
e0e8f23fba
Merge pull request #3357 from kiwix/Issue#3342
Fixed setting `android:extractNativeLibs=false` in manifest file is deprecated
2023-06-13 13:12:18 +02:00
MohitMaliFtechiz
f45816565e Fixed setting android:extractNativeLibs=false in manifest file is deprecated 2023-06-13 13:11:55 +02:00
Kelson
8201581018
Merge pull request #3367 from kiwix/Issue#3335
Fixed default constructor for Handler is deprecated
2023-06-13 13:11:17 +02:00
MohitMaliFtechiz
cae2c2c5fe Fixed default constructor for Handler is deprecated 2023-06-13 13:10:55 +02:00
Kelson
6c51871a13
Merge pull request #3382 from kiwix/Issue#3329
Fixes of WifiConfiguration is deprecated
2023-06-13 01:57:15 +02:00
MohitMaliFtechiz
0faeee0dae Fixes of WifiConfiguration is deprecated 2023-06-13 01:57:04 +02:00
Kelson
da0ec81d30
Merge pull request #3368 from kiwix/Issue#3344
Fixed observe extension method, which is deprecated in newer kotlin version
2023-06-13 01:56:43 +02:00
MohitMaliFtechiz
75f19cdfca Fixed observe extension method, which is deprecated in newer kotlin version 2023-06-13 01:56:30 +02:00
Kelson
639baa4336
Merge pull request #3378 from kiwix/Issue#3347
Fixes of getSerializable() method of Intent is deprecated in android 13
2023-06-13 01:55:25 +02:00
MohitMaliFtechiz
af67b0fc8c Fixes of getSerializable() method of Intent is deprecated in android 13 2023-06-13 01:54:58 +02:00
Kelson
bd09334b4f
Merge pull request #3401 from kiwix/Issue#3333
Fixes of deprecated `startActivityForResult` method
2023-06-12 18:08:48 +02:00
MohitMaliFtechiz
515f1e9230 Refactored setActivityForResult method for selecting SD card folder
We have used deprecated method for selecting folder for SD card in OnlineLibraryFragment.kt, CorePrefsFragment.kt, now we are using `registerForActivityResult` method instead of deprecated method in both places.
2023-06-12 18:08:20 +02:00
MohitMaliFtechiz
421cc7d22d Fixed deprecated startActivityForResult method in LocalLibraryFragment for selecting zim file from storage 2023-06-12 18:08:20 +02:00
MohitMaliFtechiz
8333b56b94 Refactored deprecated startActivityForResult in error activity 2023-06-12 18:08:20 +02:00
MohitMaliFtechiz
b8dec4932e Fixed deprecated startActivityForResult method for enableLocationServices 2023-06-12 18:08:20 +02:00
Kelson
0d631d9d8f
Merge pull request #3373 from kiwix/Issue#3331
Fixed intent flag `FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET` is deprecated
2023-06-08 16:07:16 +02:00
MohitMaliFtechiz
186236f040 Fixed intent flag FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET is deprecated 2023-06-08 16:06:55 +02:00
Kelson
f5816e6a27
Merge pull request #3369 from kiwix/Issue#3346
Fixed deprecated screenshot class
2023-06-08 15:47:25 +02:00
MohitMaliFtechiz
554d6ac987 Fixed deprecated screenshot class 2023-06-08 15:47:13 +02:00
Kelson
386bc5462a
Merge pull request #3380 from kiwix/Issue#3379
Fixed String extension function toUpperCase(local: Local) is deprecated
2023-06-08 15:46:46 +02:00