Updating IconProvider API to use a single API to load icons

Bug: 366237794
Test: atest IconProviderTest
Flag: EXEMPT refactor, changes in underlying API

Change-Id: If8c6a4f13de7e7d262ee0b6d0c6897981f75e639
This commit is contained in:
Sunny Goyal
2024-09-20 10:16:58 -07:00
parent 24061ff74f
commit a1cebfa0c0
11 changed files with 309 additions and 12 deletions
+1 -2
View File
@@ -626,8 +626,7 @@ public final class Utilities {
if (activityInfo == null) {
return null;
}
mainIcon = appState.getIconProvider().getIcon(
activityInfo, appState.getInvariantDeviceProfile().fillResIconDpi);
mainIcon = appState.getIconCache().getFullResIcon(activityInfo.getActivityInfo());
} else if (info.itemType == LauncherSettings.Favorites.ITEM_TYPE_DEEP_SHORTCUT) {
List<ShortcutInfo> siList = ShortcutKey.fromItemInfo(info)
.buildRequest(context)