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

Commit cd854586 authored by Bryce Lee's avatar Bryce Lee Committed by android-build-merger
Browse files

Merge "Do not stop paused activity when sleeping." into oc-mr1-dev am: af17d473

am: 89c87991

Change-Id: Id1c906f9263d8ff9226469ba7d3c0d860909d738
parents d2c78d68 89c87991
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -1199,7 +1199,6 @@ class ActivityStack<T extends StackWindowController> extends ConfigurationContai
     * process of going to sleep (checkReadyForSleep will be called when that process finishes).
     */
    boolean goToSleepIfPossible(boolean shuttingDown) {
        final ActivityRecord topActivity = topActivity();
        boolean shouldSleep = true;

        if (mResumedActivity != null) {
@@ -1224,11 +1223,6 @@ 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(topActivity);
            shouldSleep = false;
        }

        if (!shuttingDown) {