Merge "[ActivityManager] Reset ActivityRecord's waitingVisible"

This commit is contained in:
Craig Mautner
2014-12-29 01:30:49 +00:00
committed by Gerrit Code Review

View File

@@ -1595,6 +1595,7 @@ final class ActivityStack {
mStackSupervisor.mGoingToSleepActivities.remove(next);
next.sleeping = false;
mStackSupervisor.mWaitingVisibleActivities.remove(next);
next.waitingVisible = false;
if (DEBUG_SWITCH) Slog.v(TAG, "Resuming " + next);
@@ -2807,6 +2808,7 @@ final class ActivityStack {
mStackSupervisor.mStoppingActivities.remove(r);
mStackSupervisor.mGoingToSleepActivities.remove(r);
mStackSupervisor.mWaitingVisibleActivities.remove(r);
r.waitingVisible = false;
if (mResumedActivity == r) {
mResumedActivity = null;
}
@@ -3007,6 +3009,7 @@ final class ActivityStack {
// down to the max limit while they are still waiting to finish.
mStackSupervisor.mFinishingActivities.remove(r);
mStackSupervisor.mWaitingVisibleActivities.remove(r);
r.waitingVisible = false;
// Remove any pending results.
if (r.finishing && r.pendingResults != null) {