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

Commit 174c9fe3 authored by Wei Sheng Shih's avatar Wei Sheng Shih Committed by Android (Google) Code Review
Browse files

Merge "Defer destroy activity if it is in transition." into main

parents 7fdf9aa0 a27c81b6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3964,7 +3964,7 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
        }
        if (isCurrentVisible) {
            if (isNextNotYetVisible || delayRemoval) {
            if (isNextNotYetVisible || delayRemoval || isInTransition()) {
                // Add this activity to the list of stopping activities. It will be processed and
                // destroyed when the next activity reports idle.
                addToStopping(false /* scheduleIdle */, false /* idleDelayed */,