Replacing all int lookup flags and boolean overrides with an object to make it easier to extend options
Bug: 381897614 Bug: 366237794 Flag: EXEMPT refactor Test: atest CacheLookupFlagTest Change-Id: Ic89d48dd1c5dc8b0a89b1898cd7b00d9c61d6513
This commit is contained in:
1 parent
0f0394c597
commit
18e480838a
24 files changed
+160
-66
No files matched your search
@@ -21,6 +21,7 @@ import static android.appwidget.AppWidgetManager.EXTRA_APPWIDGET_ID;
|
||||
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;
|
||||
@@ -308,7 +309,8 @@ public class ItemInstallQueue {
|
||||
}
|
||||
}
|
||||
LauncherAppState.getInstance(context).getIconCache()
|
||||
.getTitleAndIcon(si, () -> lai, usePackageIcon, false);
|
||||
.getTitleAndIcon(si, () -> lai,
|
||||
DEFAULT_LOOKUP_FLAG.withUsePackageIcon(usePackageIcon));
|
||||
return Pair.create(si, null);
|
||||
}
|
||||
case ITEM_TYPE_DEEP_SHORTCUT: {
|
||||
|
||||
Reference in new issue
Block a user