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
2024-12-26 16:14:29 -08:00
parent eda3c8ec60
commit c2639e464f
10 changed files with 68 additions and 28 deletions
@@ -96,7 +96,7 @@ public class PredictionUpdateTask implements ModelUpdateTask {
itemInfo = apps.data.stream()
.filter(info -> user.equals(info.user) && cn.equals(info.componentName))
.map(ai -> {
app.getIconCache().getTitleAndIcon(ai, DEFAULT_LOOKUP_FLAG);
app.getIconCache().getTitleAndIcon(ai, mPredictorState.lookupFlag);
return ai.makeWorkspaceItem(context);
})
.findAny()