diff options
| author | 2016-05-23 20:51:39 +0000 | |
|---|---|---|
| committer | 2016-05-23 20:51:40 +0000 | |
| commit | 42d4a337a3b1a14f4d9daf6eb8275a01ba20e680 (patch) | |
| tree | ba6a4775888128d60dd61fb912c06ad854e5bdb6 | |
| parent | c991879f29c399ad7ede2b5c2c82e2e748f5e0df (diff) | |
| parent | cac5c322da0b81a1a2106c8e248b0fe476f1ea6b (diff) | |
Merge "Only resuming starting dontWaitForPause activity once" into nyc-dev
| -rw-r--r-- | services/core/java/com/android/server/am/ActivityStack.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/am/ActivityStack.java b/services/core/java/com/android/server/am/ActivityStack.java index 9718ae86d42e..8b637e0ae44d 100644 --- a/services/core/java/com/android/server/am/ActivityStack.java +++ b/services/core/java/com/android/server/am/ActivityStack.java @@ -2258,6 +2258,20 @@ final class ActivityStack { } if (DEBUG_STACK) mStackSupervisor.validateTopActivitiesLocked(); return true; + } else if (mResumedActivity == next && next.state == ActivityState.RESUMED && + mStackSupervisor.allResumedActivitiesComplete()) { + // It is possible for the activity to be resumed when we paused back stacks above if the + // next activity doesn't have to wait for pause to complete. + // So, nothing else to-do except: + // Make sure we have executed any pending transitions, since there + // should be nothing left to do at this point. + mWindowManager.executeAppTransition(); + mNoAnimActivities.clear(); + ActivityOptions.abort(options); + if (DEBUG_STATES) Slog.d(TAG_STATES, + "resumeTopActivityLocked: Top activity resumed (dontWaitForPause) " + next); + if (DEBUG_STACK) mStackSupervisor.validateTopActivitiesLocked(); + return true; } // If the most recent activity was noHistory but was only stopped rather |