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

Commit f841624e authored by Kevin Lim's avatar Kevin Lim
Browse files

[IconCache] Log when default icon retruned from package manager.

This is a less intrusive re-attempt at ag/27380884

See b/343233224 for more rationale.

Bug: b/327705448
Flag: NONE bug fix
Test: NONE Adding logging
Change-Id: I0e64f6825b3ab32c42c29e19deb775ff27fa62c7
parent 63038491
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();