Do not enter resumeTopActivity recursively.

Changes for translucent activity were causing activities to be
launched twice due to a recursive call into resumeTopActivity.
Putting the translucent action onto a handler removes the recursivity
and fixes the multiple launch problem.

Fixes bug 10556969.

Change-Id: I2bb53cd555b0aaf093ab35db2859acb10b58211e
This commit is contained in:
Craig Mautner
2013-09-09 12:57:47 -07:00
parent 0c58bd9738
commit e5273b422e

View File

@@ -1110,8 +1110,10 @@ final class ActivityStack {
case PAUSED:
// This case created for transitioning activities from
// translucent to opaque {@link Activity#convertToOpaque}.
mStackSupervisor.mStoppingActivities.remove(r);
stopActivityLocked(r);
if (!mStackSupervisor.mStoppingActivities.contains(r)) {
mStackSupervisor.mStoppingActivities.add(r);
}
mStackSupervisor.scheduleIdleLocked();
break;
default: