null2264 / yokai

Free and open source manga reader for Android
Apache License 2.0
637 stars 12 forks source link

The new splash screen lasts longer than it should #26

Closed mechagomizilla closed 1 month ago

mechagomizilla commented 7 months ago

Steps to reproduce

  1. Set Library as the screen to display at launch
  2. Make sure that Yōkai is closed
  3. Launch Yōkai

Expected behavior

The splash screen should last around 2 seconds, maybe less or more depending on the phone's performance.

Actual behavior

I counted around 6 seconds before the splash screen disappears since the update to 1.7.13. It doesn't shorten on subsequent launches.

Crash logs

No response

Yōkai version

1.7.13

Android version

Android 14

Device

Samsung Galaxy S23 Ultra

Other details

I definitely did not have this issue right before updating.

Acknowledgements

null2264 commented 7 months ago

It supposed to wait for library/recents/browser page to be loaded fully or 5 seconds in case it takes too long to load. But I'll take a look if I could make it faster.

mechagomizilla commented 7 months ago

I guess the extra 6th second is for the launch animation then.

Thanks to your reply, I was able to confirm that in fact, the app loads faster when recents or browse are set as the screen to show at startup. It takes just over 1 second. Maybe just loading what is actually visible on screen should be enough for the library. If it's not possible to determine, then maybe just loading the first visible category.

Btw, I only have a few dozen titles, so it's really not a quantity problem. I'm not a hoarder.