Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c11ce7b1 authored by Andrii Kulian's avatar Andrii Kulian
Browse files

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
parent db13dd41
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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) {