Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9ab4550a authored by Rohit Goyal's avatar Rohit Goyal
Browse files

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

* In case app icon is added to workspace after unarchival completes for archived app, it shows a completely filled progress bar around the icon.
* This behaviour exists because the 'FLAG_ARCHIVED' flag is copied from `AppInfo` item.
* This cl updates the 'FLAG_ARCHIVED' flag for 'AllApps' item once unarchival completes.

Test: verified bugfix locally.
Bug: 319213296
Flag: ACONFIG com.android.launcher3.enable_support_for_archiving DEVELOPMENT
Change-Id: I739225707a11bc9a6aa23e81775b4e036ce81a7e
parent ae741dec
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -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
                        if (info.getActivityInfo().isArchived) {
                            applicationInfo.runtimeStatusFlags |= FLAG_ARCHIVED;
                        } else {
                            applicationInfo.runtimeStatusFlags &= (~FLAG_ARCHIVED);
                        }
                    }

                    mDataChanged = true;
                }
            }