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
@@ -1351,12 +1351,10 @@ public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver,
|
||||
mIconLoadRequest.cancel();
|
||||
mIconLoadRequest = null;
|
||||
}
|
||||
if (getTag() instanceof ItemInfoWithIcon && !mHighResUpdateInProgress) {
|
||||
ItemInfoWithIcon info = (ItemInfoWithIcon) getTag();
|
||||
if (info.usingLowResIcon()) {
|
||||
mIconLoadRequest = LauncherAppState.getInstance(getContext()).getIconCache()
|
||||
.updateIconInBackground(BubbleTextView.this, info);
|
||||
}
|
||||
if (getTag() instanceof ItemInfoWithIcon info && !mHighResUpdateInProgress
|
||||
&& info.getMatchingLookupFlag().useLowRes()) {
|
||||
mIconLoadRequest = LauncherAppState.getInstance(getContext()).getIconCache()
|
||||
.updateIconInBackground(BubbleTextView.this, info);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user