2155 Commits

Author SHA1 Message Date
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
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
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
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
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
MohitMaliFtechiz
9f0c793ce7 Fixed deprecated getPackageInfo() method of PackageManager 2023-06-16 14:29:58 +02:00
MohitMaliFtechiz
04dbbfd48e Removed deprecated requireFragmentManager() method 2023-06-16 13:48:19 +02:00
translatewiki.net
0b944184c7 Localisation updates from https://translatewiki.net. 2023-06-13 15:24:31 +02:00
MohitMaliFtechiz
f45816565e Fixed setting android:extractNativeLibs=false in manifest file is deprecated 2023-06-13 13:11:55 +02:00
MohitMaliFtechiz
cae2c2c5fe Fixed default constructor for Handler is deprecated 2023-06-13 13:10:55 +02:00
MohitMaliFtechiz
0faeee0dae Fixes of WifiConfiguration is deprecated 2023-06-13 01:57:04 +02:00
MohitMaliFtechiz
75f19cdfca Fixed observe extension method, which is deprecated in newer kotlin version 2023-06-13 01:56:30 +02:00
MohitMaliFtechiz
af67b0fc8c Fixes of getSerializable() method of Intent is deprecated in android 13 2023-06-13 01:54:58 +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
186236f040 Fixed intent flag FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET is deprecated 2023-06-08 16:06:55 +02:00
MohitMaliFtechiz
2022884115 Fixed String extension function toUpperCase(local: Local) is deprecated 2023-06-08 15:45:45 +02:00
Emmanuel Engelhart
a2d4b1f55c
Bump-up version to 3.7.1 2023-06-05 21:55:16 +02:00
MohitMaliFtechiz
3c510b60f3 Fixed Invasive access photos and media permission request at start 2023-06-05 11:34:00 +05:30
MohitMaliFtechiz
d1cfb48fbb Fixed deprecated inline modifer 2023-06-03 14:41:03 +02:00
MohitMaliFtechiz
43574fb3d5 Fixed Custom apps back button doesn't work from setting screen 2023-06-02 13:12:37 +02:00
MohitMaliFtechiz
bc86ba4e91 Fixed notes are not saving in custom app 2023-06-01 16:57:21 +02:00
MohitMaliFtechiz
50579cb109 Fixed Application crashing while adding notes 2023-06-01 07:43:08 +02:00
MohitMaliFtechiz
ff96685f56 Fixed fullscreen feature is broken in custom app 2023-05-31 18:42:37 +03:00
MohitMaliFtechiz
d672a5fe3b Fixed Search edit text is not showing in custom apps 2023-05-31 18:41:47 +03:00
MohitMaliFtechiz
8b629b6b91 Fixed strict mode policy violation while deleting files in library screen 2023-05-26 17:23:24 +03:00
MohitMaliFtechiz
3d9bb3b47a Fixed strict mode violation while opening book from library screen 2023-05-26 17:23:24 +03:00
MohitMaliFtechiz
ca54395513 Fixed Strict mode policy violation while clicking on storage inside setting screen 2023-05-26 17:23:24 +03:00
MohitMaliFtechiz
37b4fab8a1 Fixed Strict mode policy warning on DowloadScreen 2023-05-26 17:23:24 +03:00
MohitMaliFtechiz
0a16f177a2 Fixed strict mode policy while changing tabs (Reader to Library, library to reader by clicking bottom navigation buttons) it also fixed the red effects while clicking on navigation items e.g bookmarks, history, notes, wifi hostspot, help 2023-05-26 17:23:24 +03:00
MohitMaliFtechiz
d84cf37314 Fixed deprecated resources.getColor(Int) method 2023-05-26 16:25:20 +03:00
MohitMaliFtechiz
59a8f72a6f Fixed open ZIM-File on external USB-Stick in Android 2023-05-26 15:16:11 +03:00
Gouri Panda
9b1894d825 Removed package permission from core to app package 2023-05-25 23:43:30 +05:30
MohitMaliFtechiz
654d3776f5 Fixed deprecated Android dialog strings (android.R.string.yes, android.R.string.no) 2023-05-24 18:26:02 +05:30
Shashank
3020ed0008 Fixed CodeFactor Issues 2023-05-24 12:45:41 +05:30
Shashank
bc98a335b6 fixes codefactor issues 2023-05-24 12:45:41 +05:30
translatewiki.net
f542b2bf25 Localisation updates from https://translatewiki.net. 2023-05-19 14:28:42 +02:00
MohitMaliFtechiz
f6c00a8eba Update version number for 3.7.0 release 2023-05-12 12:30:05 +05:30
MohitMaliFtechiz
585945812c Fixed Articles containing ? cannot be opened 2023-05-09 08:19:47 +02:00
MohitMaliFtechiz
3d63c2a430 Fixed some articles can not be opened in new tab 2023-05-09 08:19:47 +02:00
MohitMaliFtechiz
e8b55ce000 Fixed DownloadTest on android 13 2023-05-04 12:09:40 +02:00
Shashank
df649a12c3 minor fixes 2023-04-28 16:30:54 +05:30
Shashank
c8e1de11f6 fixing snackbar hidden issue using anchor 2023-04-27 15:38:20 +05:30
Shashank shetty
3aa867fecd
Merge branch 'develop' into fix-issue-3298 2023-04-25 17:21:17 +05:30
Shashank
9da22b9c27 fixes snack bar hidden issue 2023-04-25 15:05:14 +05:30