Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c7d1c88c authored by Zak Cohen's avatar Zak Cohen
Browse files

IconCache - don't drop flags when adding items to the in memory cache.

The flags (like work profile and instant) were being dropped when an item
is added to the in memory cache from package icon loading.

Bug: 323398976
Test: Manual, checking after a language direction change
Flag: NA
Change-Id: Ideb9372874d275b90d4468c4c2397381120aca65
parent 2176df2e
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -46,7 +46,6 @@ import android.os.Handler;
import android.os.LocaleList;
import android.os.Looper;
import android.os.Process;
import android.os.SystemClock;
import android.os.Trace;
import android.os.UserHandle;
import android.text.TextUtils;
@@ -588,8 +587,9 @@ public abstract class BaseIconCache {

                    entry.title = appInfo.loadLabel(mPackageManager);
                    entry.contentDescription = getUserBadgedLabel(entry.title, user);
                    entry.bitmap = BitmapInfo.of(
                            useLowResIcon ? LOW_RES_ICON : iconInfo.icon, iconInfo.color);
                    entry.bitmap = useLowResIcon
                            ? BitmapInfo.of(LOW_RES_ICON, iconInfo.color)
                            : iconInfo;

                    // Add the icon in the DB here, since these do not get written during
                    // package updates.