tanujnotes / Olauncher

Minimal AF Launcher for Android. Reduce your screen time. Daily wallpapers.

Home Page:https://play.google.com/store/apps/details?id=app.olauncher

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

  1. Open OLauncher
  2. Swipe up to open app drawer
  3. Ensure app list is loaded
  4. Go to recent apps
  5. Click on close all
  6. Reopen OLauncher
  7. 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.