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

Commit 63038491 authored by Priyanka Advani's avatar Priyanka Advani Committed by Android (Google) Code Review
Browse files

Revert "[IconCache] Skip caching package icon if default icon is retreived."

This reverts commit 0ce3bbcd.

Reason for revert: Droidmonitor created revert due to likely culprit for b/342668286. Will be verifying through ABTD before submission.

Change-Id: Ia22630dd217bdad0f595b7bbb379dc2fade78768
parent 0ce3bbcd
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -589,12 +589,8 @@ public abstract class BaseIconCache {
                    BaseIconFactory li = getIconFactory();
                    // Load the full res icon for the application, but if useLowResIcon is set, then
                    // only keep the low resolution icon instead of the larger full-sized icon
                    Drawable appIcon = appInfo.loadIcon(mPackageManager);
                    if (mPackageManager.isDefaultApplicationIcon(appIcon)) {
                        throw new NameNotFoundException(
                                "AppIcon from package manager was default icon.");
                    }
                    BitmapInfo iconInfo = li.createBadgedIconBitmap(appIcon,
                    BitmapInfo iconInfo = li.createBadgedIconBitmap(
                            appInfo.loadIcon(mPackageManager),
                            new IconOptions().setUser(user).setInstantApp(isInstantApp(appInfo)));
                    li.close();