7778 Commits

Author SHA1 Message Date
MohitMali
f314e70d0c Upgraded Gradle to 8.1.3 * Added the namespace property in the build.gradle file because, in the newer Gradle version, it is necessary to specify the namespace in the build.gradle file instead of declaring it in the manifest file. 2024-08-16 15:35:10 +00:00
MohitMali
2b8f7300f6 Fixed detekt issues. 2024-08-16 15:35:10 +00:00
MohitMali
f066272087 Running the Android 14 test cases with aosp_atd emulators since default apis is not available for Android 14. 2024-08-16 15:35:10 +00:00
Gouri Panda
86b977c950 Add API 34 to default 2024-08-16 15:35:10 +00:00
MohitMaliFtechiz
88a83be01d Updated to Android 14 & refactored some methods inorder to compile with the SDK 14 2024-08-16 15:35:10 +00:00
Kelson
453c1d38ef
Merge pull request #3977 from CalebKL/task/bottom-page-content-cut-bug-fix
Fix bottom page content being cut
2024-08-16 15:34:45 +00:00
CalebK
173db42aa0 updated bottom navigation padding 2024-08-16 18:19:05 +05:30
CalebK
0b954eeaf0 Revert contentFrame padding values 2024-08-16 18:19:05 +05:30
CalebK
f99a68ac37 Bump padding to 40dp 2024-08-16 18:19:05 +05:30
CalebK
d44eb701ab Fix bottom page content being cut 2024-08-16 18:19:05 +05:30
Kelson
d43092f774
Merge pull request #3974 from kiwix/Fixes#3965
Fixed: Dark mode failing on "Astrolabe" homepage.
2024-08-16 10:58:09 +00:00
MohitMaliFtechiz
68137fb363 Fixed: Dark mode failing on "Astrolabe" homepage.
* Removed the unnecessary rule that was inverting the header image. Since the image was already inverted, there is no need to apply the filter again.
* The poster image was being inverted due to the first rule being applied to the poster element, which caused the image and video inside the poster to be inverted. To correct this, a CSS rule is added to prevent the inversion of the poster's image and video.
2024-08-14 12:59:58 +05:30
Kelson
78e63497c9
Merge pull request #3935 from kiwix/Fixes#3141
Replacing the fetch library with Android's DownloadManager.
2024-08-12 18:08:26 +02:00
MohitMaliFtechiz
d34dd376d7 Improved the migration of storage for existing users according to DownloadManager's storage configuration. 2024-08-12 17:47:03 +05:30
MohitMaliFtechiz
c9b43117e6 Removed the fetch library from README file.
* Also, now we are not using fetch library anymore so we have removed this from our credits files.
* Removed the unused code from detekt_baseline.xml file.
2024-08-12 17:15:42 +05:30
CalebK
a267ae835d refactor shouldEnablePauseResumeButtonForPauseReason to clarify functionality of the function 2024-08-12 17:14:18 +05:30
CalebK
1df1cab9ac minor improvements on shouldEnablePauseResumeButton 2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
6b60a8c444 Removed the unnecessary variables and logs from code 2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
df9bbb0ad3 Fixed the pause/resume functionality:
* When there is no available connection that the user started the download with, the pause/resume button is disabled to prevent attempts to resume or pause the download, which would not work in this state.
* If the user attempts to resume the download but it does not resume due to some issue, the code will automatically try to resume the download. This ensures a smooth user experience.
*  Proper pause reasons are displayed to the user, keeping them informed about the current state of the download.
* If a download fails for any reason, the pause/resume button is disabled. At this point, the pause/resume functionality is unnecessary and would not work, so the button is disabled to avoid confusion.
* To ensure clarity and understanding, we have added necessary comments on the method and conditions.
2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
64c80ac6dd Fixing the pause/resume functionality 2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
a41899bae6 Fixed the issue where the Pause/Resume button was enabled when a download failed. In such cases, the pause/resume functionality does not work, so we have disabled the button to prevent unexpected behavior. 2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
2c8a9a45f8 Fixed Downloading is not working on Android 11, and Android 12.
* For Android 11 and above, we now download ZIM files to the app-specific directory because the download manager does not allow downloads to custom paths. Therefore, ZIM files are now downloaded inside the app-specific directory for these versions.
* Removed the folder selection dialog from the application for selecting the SD card in non-Play Store variants on Android 11 and Android 12.
* For Android 10 and below, ZIM files are now downloading to the public directory on the SD card. This ensures that the files are not lost when the application is uninstalled, as they are stored in a public directory similar to internal storage on these versions.
* Also improved the showing pause reason on download screen when downloadManager is paused due to "PAUSED_WAITING_TO_RETRY" error so that user can know about the downloading state.
2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
3e9ff05bd9 Disabled the controls in the notification when the download is in a paused state, as the pause state could occur if DownloadManager is waiting for WiFi.
* Fixed the user behavior when attempting to download the ZIM file only on WiFi, and added a proper message explaining why the download is paused.
2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
68b091ea6d Enabled the controls in the notification for pausing/canceling the downloads when the download is in a Queued state. 2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
623d65e06f Fixed sometimes downloads remain on the "Download Screen" after successfully downloading.
* Improved the "DownloadTest".
2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
88d828e5ce Removed the fetch library and its code from project.
* Fixed the Downloading for Authentication URL.
2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
775fab14bc Fixed unit coverage 2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
cb8829ea5f Fixed the resume is not working properly. 2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
583038154b Fixing pause/resume functionlaity is not working on android 10 and above 2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
b2d2c5c242 Fixed retry download is not working in some conditions 2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
4fb53ed5df Fixed downloading progress is not showing after starting the download. 2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
71db5fc7d1 Improved download monitoring efficiency by disposing observable when no downloads are ongoing.
* This change ensures that the observable is only active when necessary, reducing unnecessary resource usage and avoiding redundant requests to the DownloadManager.
2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
d398c47c3f Fixed: Notification "pause" text and notification icons.
* Improved variable naming and placed them in appropriate locations.
2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
9a2acea046 Implemented the retry download functionality.
* Removed unnecessary code.
2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
f640dd1c19 Improved the file opening while clicking the download notification, because two zim files can have the same title 2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
6a16745920 Fixed: zim file was not opening when clicking on the notification after the zim file downloaded 2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
a859da3192 Improved the moving books functionality after download.
* Improved the updating status functionality.
* Cancelling the notification if any running and download is completed.
* Fixed TestModelFunctions build failure.
2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
fa4f289511 Fixed remaining detekt and lint issues 2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
9b091301bd Fixed some detekt and lint issues 2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
3039232b2c Moving the downloads to library fragment after downloading 2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
fdeb6bcbe6 Fixed: download is always cancelling when we click on the pause button in notification 2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
28472c0988 Added RECEIVER_NOT_EXPORTED to all broadcasts to make the application compatiable with Android 14. Also, Fixed the clicking is not working in notification 2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
8405c7c6d7 Improved the cancelling of downloads 2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
6eab724e3d Calcelling notification when user canceled the downloads 2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
30cf3c69ad Properly showing the notification for different downloads. Corrected the IN_PROGRESS showing in notification when downloading is in_progress state 2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
d6a8ee9e24 Removed the default notification of download manager 2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
ce275254b9 Added custom notification for showing the downloading progress with pause/resume functionality 2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
ef2f50539b Not showing the eta time when download is paused 2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
d394bb6078 Improved the eta time calculation. 2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
7e79f288a5 Implemented the pause/resume functionality for downloads. 2024-08-12 17:14:18 +05:30