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 committed 2024-09-26 22:13:11 -07:00
1 parent 24061ff74f
commit a1cebfa0c0
11 files changed
+309 -12

No files matched your search

+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)