-
-
Notifications
You must be signed in to change notification settings - Fork 464
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed: infinite loop and improve error handling for fetching random a…
…rticle. * Fixed an issue where the app would enter an infinite loop when the zimFileReader was null, causing a crash. * Improved the condition to check if zimFileReader is null and show a proper error message to the user without retrying. * Added a retry mechanism to attempt fetching the random article twice in case of an internal error in libzim. * After two failed attempts, an error message is displayed to the user if the random article is not found.
- Loading branch information
1 parent
359a1fc
commit 36f9be8
Showing
1 changed file
with
31 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters