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

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

Merge cherrypicks of [2889978, 2889517, 2889500] into oc-m2-release

Change-Id: Ie3fdbc69495269cbfdfafe662d6172c3b0f5c168
parents d5a19636 4ec3b538
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1214,7 +1214,7 @@ 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 (mLastPausedActivity == topActivity()) {
        } 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);