File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
services/java/com/android/server/am Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -1314,7 +1314,10 @@ final boolean resumeTopActivityLocked(ActivityRecord prev) {
13141314 // If we are sleeping, and there is no resumed activity, and the top
13151315 // activity is paused, well that is the state we want.
13161316 if ((mService .mSleeping || mService .mShuttingDown )
1317- && mLastPausedActivity == next && next .state == ActivityState .PAUSED ) {
1317+ && mLastPausedActivity == next
1318+ && (next .state == ActivityState .PAUSED
1319+ || next .state == ActivityState .STOPPED
1320+ || next .state == ActivityState .STOPPING )) {
13181321 // Make sure we have executed any pending transitions, since there
13191322 // should be nothing left to do at this point.
13201323 mService .mWindowManager .executeAppTransition ();
You can’t perform that action at this time.
0 commit comments