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

Commit f41e8826 authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

Run layout when exiting window

Such that a layout with canAffectSystemUiFlags() return false
happens immediately after starting the exit animation.

Test: Open dialog on top of light bar app, close dialog, observe
icons changing color in sync with window animation
Test: go/wm-smoke
Fixes: 77690715

Change-Id: I8c255a34f91c47261c1d14174f620142a2c49eb7
parent 706fbe7e
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1998,6 +1998,11 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP
                    // Try starting an animation.
                    if (mWinAnimator.applyAnimationLocked(transit, false)) {
                        mAnimatingExit = true;

                        // mAnimatingExit affects canAffectSystemUiFlags(). Run layout such that
                        // any change from that is performed immediately.
                        setDisplayLayoutNeeded();
                        mService.requestTraversal();
                    }
                    //TODO (multidisplay): Magnification is supported only for the default display.
                    if (mService.mAccessibilityController != null && displayId == DEFAULT_DISPLAY) {