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

Commit e4a0bf8d authored by Craig Mautner's avatar Craig Mautner Committed by Android Git Automerger
Browse files

am f77c1eb1: am 8488f9fa: Merge "Be less aggressive when not resuming top activity" into klp-dev

* commit 'f77c1eb1':
  Be less aggressive when not resuming top activity
parents f684b815 f77c1eb1
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
@@ -1190,10 +1190,6 @@ final class ActivityStack {
    }

    final boolean resumeTopActivityLocked(ActivityRecord prev, Bundle options) {
        if (mService.mLockScreenState == ActivityManagerService.LOCK_SCREEN_FIRST_SHOWN) {
            return false;
        }

        // Find the first activity that is not finishing.
        ActivityRecord next = topRunningActivityLocked(null);

@@ -1255,9 +1251,10 @@ final class ActivityStack {

        // If we are sleeping, and there is no resumed activity, and the top
        // activity is paused, well that is the state we want.
        if ((mService.isSleepingOrShuttingDown())
        if (mService.mLockScreenState == ActivityManagerService.LOCK_SCREEN_FIRST_SHOWN ||
                (mService.isSleepingOrShuttingDown()
                && mLastPausedActivity == next
                && mStackSupervisor.allPausedActivitiesComplete()) {
                && mStackSupervisor.allPausedActivitiesComplete())) {
            // Make sure we have executed any pending transitions, since there
            // should be nothing left to do at this point.
            mWindowManager.executeAppTransition();