Merge "Unifying icon loading methods" into sc-dev am: 44ba9f2e14

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14200836

Change-Id: Ie50007e5c66e3f59f75d61ce39446699fdb38bfd
This commit is contained in:
Sunny Goyal
2021-04-20 04:01:01 +00:00
committed by Automerger Merge Worker
+1 -1
View File
@@ -600,7 +600,7 @@ public final class Utilities {
LauncherActivityInfo activityInfo = launcher.getSystemService(LauncherApps.class)
.resolveActivity(info.getIntent(), info.user);
outObj[0] = activityInfo;
return activityInfo == null ? null : new IconProvider(launcher).getIconForUI(
return activityInfo == null ? null : new IconProvider(launcher).getIcon(
activityInfo, launcher.getDeviceProfile().inv.fillResIconDpi);
} else if (info.itemType == LauncherSettings.Favorites.ITEM_TYPE_DEEP_SHORTCUT) {
if (info instanceof PendingAddShortcutInfo) {