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

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

Merge "Wait for next app to be visible if current activity is marked visible" into nyc-dev

parents df89cd1b 592bf0b7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3457,7 +3457,7 @@ final class ActivityStack {
        // First things first: if this activity is currently visible,
        // and the resumed activity is not yet visible, then hold off on
        // finishing until the resumed one becomes visible.
        if (mode == FINISH_AFTER_VISIBLE && r.nowVisible) {
        if (mode == FINISH_AFTER_VISIBLE && (r.visible || r.nowVisible)) {
            if (!mStackSupervisor.mStoppingActivities.contains(r)) {
                addToStopping(r, false /* immediate */);
            }