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

Commit 9713b29e 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

Change-Id: Ib9beeed392d134aa2a367e8758165ca05eef1b3e
parents 1dfb41cc fd33b019
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -538,6 +538,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;
@@ -7150,7 +7153,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(
@@ -7244,6 +7251,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