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

Commit 9bd16e12 authored by Kevin Lim's avatar Kevin Lim Committed by Android (Google) Code Review
Browse files

Merge "[IconCache] Log when default icon retruned from package manager." into main

parents 0b5036f7 f841624e
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -589,8 +589,12 @@ 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
                    BitmapInfo iconInfo = li.createBadgedIconBitmap(
                            appInfo.loadIcon(mPackageManager),
                    Drawable appIcon = appInfo.loadIcon(mPackageManager);
                    if (mPackageManager.isDefaultApplicationIcon(appIcon)) {
                        // TODO(b/343233224): Log in more persistent location such as FileLog.
                        Log.d(TAG, String.format("Default icon returned for %s", packageName));
                    }
                    BitmapInfo iconInfo = li.createBadgedIconBitmap(appIcon,
                            new IconOptions().setUser(user).setInstantApp(isInstantApp(appInfo)));
                    li.close();