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

Commit fee6e7f1 authored by Andrii Kulian's avatar Andrii Kulian Committed by android-build-merger
Browse files

Merge \"Resume only activities in focused stack\" into nyc-dev

am: 06b1d786

Change-Id: I05dfd276d13b97b06737fecd22b238e791c9bc2b
parents f4704889 06b1d786
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) {