Resume only activities in focused stack
While performing ensureActivitiesVisibleLocked we should only resume activity in focused stack. Otherwise we can get several resumed activities at the same time. Bug: 29619461 Change-Id: Id65fe1a29841ee3166694bfb6a8236151b9fc7ec
This commit is contained in:
@@ -1706,7 +1706,8 @@ final class ActivityStack {
|
||||
final boolean stackInvisible = stackVisibility != STACK_VISIBLE;
|
||||
final boolean stackVisibleBehind = stackVisibility == STACK_VISIBLE_ACTIVITY_BEHIND;
|
||||
boolean behindFullscreenActivity = stackInvisible;
|
||||
boolean resumeNextActivity = isFocusable() && (isInStackLocked(starting) == null);
|
||||
boolean resumeNextActivity = mStackSupervisor.isFocusedStack(this)
|
||||
&& (isInStackLocked(starting) == null);
|
||||
boolean behindTranslucentActivity = false;
|
||||
final ActivityRecord visibleBehind = getVisibleBehindActivity();
|
||||
for (int taskNdx = mTaskHistory.size() - 1; taskNdx >= 0; --taskNdx) {
|
||||
|
||||
Reference in New Issue
Block a user