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

Commit 697a3334 authored by Chong Zhang's avatar Chong Zhang Committed by Android (Google) Code Review
Browse files

Merge "Do not add duplicates to mWaitingVisibleActivities" into nyc-dev

parents 74610328 b8bd069e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -3438,8 +3438,10 @@ final class ActivityStack {
                mWindowManager.prepareAppTransition(transit, false);
                mWindowManager.setAppVisibility(r.appToken, false);
                mWindowManager.executeAppTransition();
                if (!mStackSupervisor.mWaitingVisibleActivities.contains(r)) {
                    mStackSupervisor.mWaitingVisibleActivities.add(r);
                }
            }
            return finishCurrentActivityLocked(r, (r.visible || r.nowVisible) ?
                    FINISH_AFTER_VISIBLE : FINISH_AFTER_PAUSE, oomAdj) == null;
        } else {