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

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

Merge "Fix missing exit animation when app is closed during starting window" into nyc-dev

parents 40358e43 57f3d463
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -4135,6 +4135,14 @@ public class WindowManagerService extends IWindowManager.Stub
            for (int i = 0; i < windowsCount; i++) {
                WindowState win = wtoken.allAppWindows.get(i);
                if (win == wtoken.startingWindow) {
                    // Starting window that's exiting will be removed when the animation
                    // finishes. Mark all relevant flags for that finishExit will proceed
                    // all the way to actually remove it.
                    if (!visible && win.isVisibleNow() && wtoken.mAppAnimator.isAnimating()) {
                        win.mAnimatingExit = true;
                        win.mRemoveOnExit = true;
                        win.mWindowRemovalAllowed = true;
                    }
                    continue;
                }