Migrate WorkspaceItemInfo non-resizeable flag to runtime status flag
- This aligns with other app-level state that is read at runtime Bug: 323112914 Test: atest NexusLauncherTests Change-Id: I1e29583d1c0302646718473c8958d604c1a202a5
This commit is contained in:
@@ -286,10 +286,8 @@ public class PackageUpdatedTask extends BaseModelUpdateTask {
|
||||
}
|
||||
if (si.itemType == Favorites.ITEM_TYPE_APPLICATION) {
|
||||
if (activities != null && !activities.isEmpty()) {
|
||||
si.status = ApiWrapper.INSTANCE.get(context)
|
||||
.isNonResizeableActivity(activities.get(0))
|
||||
? si.status | WorkspaceItemInfo.FLAG_NON_RESIZEABLE
|
||||
: si.status & ~WorkspaceItemInfo.FLAG_NON_RESIZEABLE;
|
||||
si.setNonResizeable(ApiWrapper.INSTANCE.get(context)
|
||||
.isNonResizeableActivity(activities.get(0)));
|
||||
}
|
||||
iconCache.getTitleAndIcon(si, si.usingLowResIcon());
|
||||
infoUpdated = true;
|
||||
|
||||
Reference in New Issue
Block a user