Replacing some fixed lookup flags with specific constant flag
This would make it easier to customize flags used on desktop icons Bug: 366237794 Flag: EXEMPT refactor Test: atest CacheLookupFlagTest Change-Id: I0f3f04ddbe73abea207a5b58a65714ff172b2726
This commit is contained in:
1 parent
eda3c8ec60
commit
c2639e464f
10 files changed
+68
-28
No files matched your search
@@ -18,10 +18,10 @@ package com.android.launcher3.model;
|
||||
|
||||
import static android.appwidget.AppWidgetManager.EXTRA_APPWIDGET_ID;
|
||||
|
||||
import static com.android.launcher3.LauncherSettings.Favorites.DESKTOP_ICON_FLAG;
|
||||
import static com.android.launcher3.LauncherSettings.Favorites.ITEM_TYPE_APPLICATION;
|
||||
import static com.android.launcher3.LauncherSettings.Favorites.ITEM_TYPE_APPWIDGET;
|
||||
import static com.android.launcher3.LauncherSettings.Favorites.ITEM_TYPE_DEEP_SHORTCUT;
|
||||
import static com.android.launcher3.icons.cache.CacheLookupFlag.DEFAULT_LOOKUP_FLAG;
|
||||
import static com.android.launcher3.model.data.AppInfo.makeLaunchIntent;
|
||||
import static com.android.launcher3.model.data.ItemInfoWithIcon.FLAG_ARCHIVED;
|
||||
import static com.android.launcher3.util.Executors.MODEL_EXECUTOR;
|
||||
@@ -310,7 +310,7 @@ public class ItemInstallQueue {
|
||||
}
|
||||
LauncherAppState.getInstance(context).getIconCache()
|
||||
.getTitleAndIcon(si, () -> lai,
|
||||
DEFAULT_LOOKUP_FLAG.withUsePackageIcon(usePackageIcon));
|
||||
DESKTOP_ICON_FLAG.withUsePackageIcon(usePackageIcon));
|
||||
return Pair.create(si, null);
|
||||
}
|
||||
case ITEM_TYPE_DEEP_SHORTCUT: {
|
||||
|
||||
Reference in new issue
Block a user