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:
Sunny Goyal committed 2024-12-26 20:19:02 -08:00
1 parent eda3c8ec60
commit c2639e464f
10 files changed
+68 -28

No files matched your search

@@ -20,6 +20,7 @@ import static android.content.pm.ApplicationInfo.FLAG_INSTALLED;
import static android.os.Process.myUserHandle;
import static com.android.launcher3.LauncherSettings.Favorites.CONTAINER_WIDGETS_PREDICTION;
import static com.android.launcher3.icons.cache.CacheLookupFlag.DEFAULT_LOOKUP_FLAG;
import static com.android.launcher3.util.Executors.MAIN_EXECUTOR;
import static com.android.launcher3.util.Executors.MODEL_EXECUTOR;
import static com.android.launcher3.util.TestUtil.runOnExecutorSync;
@@ -277,7 +278,8 @@ public final class WidgetsPredicationUpdateTaskTest {
private WidgetsPredictionUpdateTask newWidgetsPredicationTask(List<AppTarget> appTargets) {
return new WidgetsPredictionUpdateTask(
new PredictorState(CONTAINER_WIDGETS_PREDICTION, "test_widgets_prediction"),
new PredictorState(CONTAINER_WIDGETS_PREDICTION, "test_widgets_prediction",
DEFAULT_LOOKUP_FLAG),
appTargets);
}