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

Commit 0acdf65c authored by Jorim Jaggi's avatar Jorim Jaggi Committed by android-build-merger
Browse files

Only show optimizing storage dialog if dex opt dialog was shown am: 2578becc am: fd33b019

am: 9713b29e

Change-Id: I2ce3ec3836dd24e1ba306f9f991435aa196316d4
parents a397e3d5 9713b29e
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -539,6 +539,9 @@ public class PackageManagerService extends IPackageManager.Stub {
    final boolean mIsPreNUpgrade;
    final boolean mIsPreNMR1Upgrade;
    @GuardedBy("mPackages")
    private boolean mDexOptDialogShown;
    /** The location for ASEC container files on internal storage. */
    final String mAsecInternalPath;
@@ -7176,7 +7179,11 @@ public class PackageManagerService extends IPackageManager.Stub {
                    }
                }
                if (doTrim) {
                    if (!isFirstBoot()) {
                    final boolean dexOptDialogShown;
                    synchronized (mPackages) {
                        dexOptDialogShown = mDexOptDialogShown;
                    }
                    if (!isFirstBoot() && dexOptDialogShown) {
                        try {
                            ActivityManagerNative.getDefault().showBootMessage(
                                    mContext.getResources().getString(
@@ -7270,6 +7277,9 @@ public class PackageManagerService extends IPackageManager.Stub {
                                    numberOfPackagesVisited, numberOfPackagesToDexopt), true);
                } catch (RemoteException e) {
                }
                synchronized (mPackages) {
                    mDexOptDialogShown = true;
                }
            }
            // If the OTA updates a system app which was previously preopted to a non-preopted state