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

Commit df940f3f authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Merge cherrypicks of [2887209, 2884958] into oc-mr1-release

Change-Id: Iff723ce99739225a554283b0443f45548e7a2c7a
parents 3aec75fc a61ba3de
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1214,6 +1214,11 @@ class ActivityStack<T extends StackWindowController> extends ConfigurationContai
            // Still waiting for something to pause; can't sleep yet.
            if (DEBUG_PAUSE) Slog.v(TAG_PAUSE, "Sleep still waiting to pause " + mPausingActivity);
            shouldSleep = false;
        } else if (topActivity() != null && topActivity().state == ActivityState.PAUSED) {
            // Our top activity is currently paused, we need to ensure we move it to the stopped
            // state.
            stopActivityLocked(mLastPausedActivity);
            shouldSleep = false;
        }

        if (!shuttingDown) {