8338 Commits

Author SHA1 Message Date
Kelson
e1eafa1ddd
Merge pull request #4220 from kiwix/Fixes#4205
Fixed: When devices went to sleep mode, the search filter was reset of the online library.
2025-02-13 10:25:17 +01:00
MohitMaliFtechiz
cd67d4060e Added OnlineLibraryFragmentTest instrumentation (UI) test case to test this new functionality. 2025-02-11 17:44:34 +05:30
MohitMaliFtechiz
ec132e6d7f Fixed: When devices went to sleep mode, the search filter was reset of the online library.
* Preserved search query across lifecycle changes to restore it when the fragment becomes visible again.
* Previously, when the device went to sleep, `viewLifecycleOwner` closed the search view due to lifecycle events, resetting the search.
* Now, the query is stored in `ViewModel` (which is lifecycle-aware) and restored when the online library screen is reopened.
* Search is reset only when the user explicitly clears it.
2025-02-11 15:32:57 +05:30
Kelson
a88884a055
Merge pull request #4209 from kiwix/translatewiki
Localisation updates from https://translatewiki.net.
2025-02-08 09:19:04 +01:00
translatewiki.net
f1e1ccf716 Localisation updates from https://translatewiki.net. 2025-02-08 09:18:41 +01:00
Kelson
51aca061b9
Merge pull request #3996 from Saifuddin53/Issue#398
Saving and Restoring the Web View Navigation History Across Sessions
2025-02-08 09:17:43 +01:00
MohitMaliFtechiz
c29997aa12 Fixed: Opening a searched item and "Find in Page" was not working after rebasing.
* Removed unnecessary code from the project to simplify it and make it more robust.
2025-02-07 22:32:19 +05:30
MohitMaliFtechiz
3f80e9d852 Added debug logs which will help us in debugging if any error happens. 2025-02-07 13:51:29 +05:30
MohitMaliFtechiz
fe3597aa7b Fixed: Application crashes at first launch. 2025-02-07 13:50:59 +05:30
MohitMaliFtechiz
af8ca7f620 Fixed: SearchFragmentTest for custom apps was failing. 2025-02-07 13:50:48 +05:30
MohitMaliFtechiz
8a124d82ac Fix: Main page of ZIM file not loading when opening a note in the notes screen
* Resolved the issue where the main page of the ZIM file was not loading when a note was opened from the notes screen, when a different ZIM file was set in the reader. Now, when opening notes, the application correctly sets the corresponding ZIM file in the reader, ensuring the main page is displayed as expected.
2025-02-07 13:45:27 +05:30
MohitMaliFtechiz
5a47a7ba94 Fixed: Reader screen was showing twice when pressing the back button after opening a page from the history, bookmarks, or notes screens in custom apps. 2025-02-07 13:38:09 +05:30
MohitMaliFtechiz
d3f40f2219 Improved the saving of tabs. 2025-02-07 13:37:36 +05:30
MohitMaliFtechiz
83337ac5f1 Fixed: FindInPage functionality not working in Kiwix and custom apps. 2025-02-07 13:37:20 +05:30
MohitMaliFtechiz
67111ef848 Fixed: Searched item was not opening in custom apps. 2025-02-07 13:34:04 +05:30
MohitMaliFtechiz
2fb1896cea Fixed: Restore web view history in Kiwix app.
* Improved restoration of web view history after opening a searched article.
* Refactored `restoreViewStateOnValidJSON` and `restoreViewStateOnInvalidJSON` methods to save and retrieve web view history from the Room database.
* Added detailed comments to methods for better understanding, including guidance for developers to check subclass implementations before making modifications.
* Fixed the `static analysis` errors.
2025-02-07 13:29:01 +05:30
MohitMaliFtechiz
ee50417154 Implemented new approach to save and retrieve the webView history. 2025-02-07 13:28:33 +05:30
MohitMaliFtechiz
1e9dfd1531 Fixed detekt issue. 2025-02-07 12:47:22 +05:30
Saifuddin
5390c98d83 Naming conventions improved and some reviewed changes 2025-02-07 12:47:10 +05:30
Saifuddin
4cdd449564 Updated room schema 2025-02-07 12:46:57 +05:30
Saifuddin
a4c6070eab Automated changes reverted 2025-02-07 12:44:55 +05:30
Saifuddin
0d13e5b559 Automated changes reverted 2025-02-07 12:44:34 +05:30
Saifuddin
cdf22a56f5 Code factor improvements 2025-02-07 12:44:22 +05:30
MohitMaliFtechiz
b81e4b5c97 Naming convention improved 2025-02-07 12:44:11 +05:30
MohitMaliFtechiz
775d9439f3 Fixed the detekt issue 2025-02-07 12:42:05 +05:30
Saifuddin
5a7dc92e2c Restoring the internal webbackforwardlist 2025-02-07 12:41:54 +05:30
MohitMaliFtechiz
64f1bc47e0 Retrieving page history from room 2025-02-07 12:41:37 +05:30
MohitMaliFtechiz
a6d5ef0636 Saved webbackforwardlist to room 2025-02-07 12:41:27 +05:30
Kelson
687fbe0516
Merge pull request #4212 from kiwix/remaining_changelog_updates_for_3.14.0
Updated the `CHANGELOG` file to include the remaining changes made in milestone `3.14.0`.
2025-02-07 01:17:40 +01:00
MohitMaliFtechiz
3ee80ab645 Added a last fix made in milestone 3.14.0. 2025-02-07 01:17:19 +01:00
MohitMaliFtechiz
dec89e3058 Updated the CHANGELOG file to include the remaining changes made in milestone 3.14.0. 2025-02-07 01:17:19 +01:00
Kelson
a2341ba94b
Merge pull request #4214 from kiwix/Fixes#4213
Fixed: `Input dispatching timed out` error while creating the application shortcuts.
2025-02-07 01:16:47 +01:00
MohitMaliFtechiz
7474d7ef9a Fixed: Input dispatching timed out error while creating the application shortcuts.
* Moved shortcut creation to `lifecycleScope` with `Dispatchers.IO` to free up the main thread.
* This ensures the UI remains responsive while shortcuts are being created.
2025-02-07 01:16:32 +01:00
Kelson
549bb5afb0
Merge pull request #4211 from kiwix/Fixes#4206
Keeping the downloading books always at the top.
2025-02-07 01:15:52 +01:00
MohitMaliFtechiz
08f7751be6 Fixed: The DownloadTest was failing. 2025-02-06 12:48:38 +05:30
MohitMaliFtechiz
a3341fc280 Refactored the ZimManageViewModelTest according to this new change. 2025-02-06 11:54:41 +05:30
MohitMaliFtechiz
079dd2f3c1 Added the "Downloading:" section title in string file. 2025-02-06 11:54:41 +05:30
MohitMaliFtechiz
7c969fe31d Keeping the downloading books always at the top.
* Added a new "Downloading:" section in `OnlineFragment` to display currently downloading books at the top.
* The language, and search filter will not affect this meaning if a user selects another language and searches any ZIM file via the search feature, the "Downloading:" section always shows on the top and the filter will be applied to the remaining books.
2025-02-06 11:54:41 +05:30
Kelson
c1a3b2bc40
Merge pull request #4210 from kiwix/Fixes#4207
Fixed: Download notification disappears when pausing a download.
2025-02-06 06:49:05 +01:00
MohitMaliFtechiz
6d407fcfa8 Removed the again showing the notification if user cancels it, and improved the setting of foreground notification when all other downloads are paused. 2025-02-05 18:35:32 +05:30
MohitMaliFtechiz
0646a782ab Fixed: Download notification disappears when pausing a download.
* The Fetch library automatically removes the ongoing download notification when a download is paused. To improve the user experience, we have implemented custom logic to display a notification for paused downloads, allowing users to easily resume them.
* Additionally, Android 14 introduces a change that prevents non-dismissible notifications. This means users can now dismiss notifications by swiping left or right. Since our app uses a foreground service for downloads, we must always display a notification. To handle this, we have implemented a mechanism that detects when a paused download notification is dismissed. If the download is still in a paused state, the notification will be re-displayed to ensure users can resume their downloads.
2025-02-05 17:23:15 +05:30
Kelson
256896fd49
Merge pull request #4208 from kiwix/readme_playstore_link_not_working
Minor improvement in showing the directory path in README file.
2025-02-05 12:17:32 +01:00
MohitMaliFtechiz
5b7a3af657 Minor improvement in showing the directory path in README file. 2025-02-05 15:49:55 +05:30
Kelson
81b730e280
Merge pull request #4193 from anupulu/patch-1
Update README.md
2025-02-01 12:13:36 +01:00
Anu
3a8bde4c38 Update README.md
Added emojis, clarified wording, etc.
2025-02-01 12:12:55 +01:00
Kelson
d23e536682
Merge pull request #4202 from kiwix/translatewiki
Localisation updates from https://translatewiki.net.
2025-02-01 12:10:42 +01:00
translatewiki.net
376c4d694d Localisation updates from https://translatewiki.net. 2025-02-01 12:10:30 +01:00
Kelson
6e3ceacd26
Merge pull request #4201 from kiwix/Fixes#4200
Fixed: `FIND_IN_PAGE` feature only works with first tab page.
2025-02-01 12:09:52 +01:00
MohitMaliFtechiz
a9364d5881 Fixed: The SearchFragmentTestForCustomApp was failing sometimes. 2025-02-01 12:07:02 +01:00
MohitMaliFtechiz
499ea74048 Fixed: FIND_IN_PAGE not working in tabs other than the first one.
* Improved the logic for handling search-related operations to ensure they are performed after tabs are fully restored.
* Previously, the search observation was initiated before the tabs were restored, causing the `FIND_IN_PAGE` feature to only work in the first tab. This happened because the webView list was empty at the time of observation.
* With the ZIM file opening and tab restoration now moved to background threads, the search observation logic has been moved to after the tabs are restored. This ensures that all webViews are properly initialized before observing search actions.
* This approach is more robust and aligns with the correct lifecycle of tab restoration and search functionality.
2025-02-01 12:07:02 +01:00