App list loading is slow on Redmi Note 10 Pro after kill and relaunch
deepaks2112 opened this issue · comments
Device: Redmi Note 10 Pro
MIUI: MIUI Global 14.0.1
Android: 13 TKQ1.221013.002
Current Behaviour:
When a lot of apps running simultaneously for a long time or I go to recent apps and clear all, then launch OLauncher and open app drawer very quickly, the app list is empty for 2-3 seconds. Video.
Expected Behaviour:
App list should not appear to be empty when OLauncher is killed and launched afresh and drawer is opened up.
Steps to reproduce:
- Open OLauncher
- Swipe up to open app drawer
- Ensure app list is loaded
- Go to recent apps
- Click on close all
- Reopen OLauncher
- Quickly open app drawer
@tanujnotes I was wondering if it is okay to persist the last fetched app list in shared preferences and use it as a cache while the app list gets populated asynchronously by the current implementation. I have coded a fix for it using shared prefs as a cache. I think MIUI is notorious and kills all background services including the default launcher.
I have 181 apps installed on my phone including system apps.
We already use livedata which takes care of the caching for the most part.