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

Commit d5693a7d authored by Chong Zhang's avatar Chong Zhang Committed by android-build-merger
Browse files

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

am: 98afb342

* commit '98afb342':
  Wait for next app to be visible if current activity is marked visible

Change-Id: If0c554a7e4c58a5dc17554e37619fe689b364418
parents 32480c2e 98afb342
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 */);
            }