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
@@ -15,6 +15,8 @@
|
||||
*/
|
||||
package com.android.launcher3.model;
|
||||
|
||||
import static com.android.launcher3.LauncherSettings.Favorites.DESKTOP_ICON_FLAG;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.content.pm.LauncherActivityInfo;
|
||||
@@ -194,7 +196,7 @@ public class AddWorkspaceItemsTask implements ModelUpdateTask {
|
||||
WorkspaceItemInfo wii = (WorkspaceItemInfo) itemInfo;
|
||||
wii.title = "";
|
||||
wii.bitmap = cache.getDefaultIcon(item.user);
|
||||
cache.getTitleAndIcon(wii, wii.getMatchingLookupFlag());
|
||||
cache.getTitleAndIcon(wii, DESKTOP_ICON_FLAG);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user