Merge "UI Improvement: Fix unexpected progress bar around app icon added to Workspace after unarchival." into main

This commit is contained in:
Rohit Goyal authored and Android (Google) Code Review committed 2024-01-31 20:42:08 +00:00
commit d4b2c8a858
1 file changed
+6 -3
@@ -330,12 +330,15 @@ public class AllAppsList {
PackageManagerHelper.getLoadingProgress(info),
PackageInstallInfo.STATUS_INSTALLED_DOWNLOADING);
applicationInfo.intent = launchIntent;
if (enableSupportForArchiving() && info.getActivityInfo().isArchived) {
if (enableSupportForArchiving()) {
// In case an app is archived, the respective item flag corresponding to
// archiving should also be applied during package updates
applicationInfo.runtimeStatusFlags |= FLAG_ARCHIVED;
if (info.getActivityInfo().isArchived) {
applicationInfo.runtimeStatusFlags |= FLAG_ARCHIVED;
} else {
applicationInfo.runtimeStatusFlags &= (~FLAG_ARCHIVED);
}
}
mDataChanged = true;
}
}