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

Commit bc21c809 authored by Songchun Fan's avatar Songchun Fan
Browse files

[pm] set loading progress to 100% for system apps

Before, we only assign loading progress to new installs, which resulted
in empty progress ring hovering around system apps. This CL assigns
loading progress to all the installs including the system apps.

BUG: 177367713
Test: manual with Google Phones install updates and uninstall updates
Change-Id: Ie83c263fefc324ad430b15694b3321740f2fe332
parent de162a46
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -13316,6 +13316,7 @@ public class PackageManagerService extends IPackageManager.Stub
        if (pkgSetting.getInstantApp(userId)) {
            mInstantAppRegistry.addInstantAppLPw(userId, pkgSetting.appId);
        }
        pkgSetting.setStatesOnCommit();
        return pkg;
    }
@@ -19155,7 +19156,6 @@ public class PackageManagerService extends IPackageManager.Stub
                mDexManager.notifyPackageUpdated(pkg.getPackageName(),
                        pkg.getBaseApkPath(), pkg.getSplitCodePaths());
            }
            reconciledPkg.pkgSetting.setStatesOnCommit();
            // Prepare the application profiles for the new code paths.
            // This needs to be done before invoking dexopt so that any install-time profile