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:
Winson Chung committed 2024-04-14 06:20:54 +00:00
1 parent 21cf4439d2
commit 6a6de2dfc3
11 files changed
+48 -25

No files matched your search

@@ -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;