kiwix / kiwix-android

Kiwix for Android
https://android.kiwix.org
GNU General Public License v3.0
866 stars 443 forks source link

Online library can not be retrieved #3991

Open kelson42 opened 2 weeks ago

kelson42 commented 2 weeks ago

On Samsung tablet with Android14, newly, the online library can not be retrieved. The spinner keeps running...

Screenshot_20240911_073854_Kiwix

It should work obviously as I have plenty of bandwidth

Popolechien commented 2 weeks ago

I confirm having the same issue on Nothing Phone (2), also running android 14

kelson42 commented 2 weeks ago

@MohitMaliFtechiz This the current TOP priomissue. The PRshould include:

MohitMaliFtechiz commented 2 weeks ago

@kelson42, @Popolechien I have checked it and the online library showing on the tablet.

Screenshot from 2024-09-12 11-26-08

It seems the issue is something else on your devices.

Can you please tell me if the spinner is showing infinitely? There is no error message showing on the screen after some time? e.g. "Swipe down for library".

Also, can you please provide the device logs? please try to open the OnlineFragment and wait for some time so that the application collects the errors from the logs, and then please attach the log.txt here. It would be helpful in debugging the problem.

Popolechien commented 2 weeks ago

Spinner is infinitely showing, yes, and there was no error message. Swiped down (to refresh I assume?) and there was no change in behaviour (or to be correct, the screen did not "move", which is the normal Swipe down behaviour). Seems to be happening only on the playstore version however, I had installed the APK to test for #3993 and now have the library ¯_(ツ)_/¯ I'm adding the diagnostic report in case there's anything different between the playstore version (here) and the APK (in #3993) Diagnostic Report.txt

kelson42 commented 2 weeks ago

Spinner is infinitely showing, yes, and there was no error message. Swiped down (to refresh I assume?) and there was no change in behaviour (or to be correct, the screen did not "move", which is the normal Swipe down behaviour). Seems to be happening only on the playstore version however, I had installed the APK to test for #3993 and now have the library ¯(ツ)/¯ I'm adding the diagnostic report in case there's anything different between the playstore version (here) and the APK (in #3993) Diagnostic Report.txt

Same here for me. It is the very first time I experienced this bug myself but I have heard many time from users suffering from this. Here the preliminary things I would like to see implemented:

kelson42 commented 2 weeks ago

@MohitMaliFtechiz Which versions of Kiwix are impacted by this bug?

MohitMaliFtechiz commented 2 weeks ago

@kelson42 The versions after we introduced Android 14 have been impacted. Mainly the internal testing APK are impacted by this bug since we have not released the application in production after introducing the Android 14.

kelson42 commented 1 week ago

The colorset is not OK in darkmode Screenshot_20240919_195658_Kiwix

Before coding place explain why this does not work out of the box with default dark mode colorset of Android.

MohitMaliFtechiz commented 1 week ago

@kelson42 Here we have used the mine_shaft_gray900 for text which is not in the night-color.xml that's why it is showing a black color on the text in this dialog. At the runtime, it picks the color from night-color.xmlorcolor.xml` based on the theme, and if the matched configuration property is not found then it shows the default file's color. Just like the string file(when there is a translation available in the current language then it shows the translated language other it shows the default text which is present in the English version).

kelson42 commented 1 week ago

@MohitMaliFtechiz Please make a PR and ensure we use everywhere Android standard colors so we never run again in this kind of problem.