MohitMaliFtechiz 1791911f13 Fixed: infinite loop and improve error handling for fetching random article.
* 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.
2025-01-19 17:07:56 +01:00
..