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

Commit b2a3bb87 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

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

parents ebd04693 c7d1c88c
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.