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

Commit 2e05af24 authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

Hide windows immediately after policy visibility anim

We need to hide the surface in the same transaction when we finish
the hide animation, as otherwise we'll have a flicker, as it's
not guaranteed that layout transaction will happen in time.

Test: Open camera, make sure status bar disappears without flicker
Change-Id: I140214e26afaf90d09ed53da2b50ce4803dffb5c
parent 303f84fa
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2222,12 +2222,13 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP
                        mWinAnimator + ": " + mPolicyVisibilityAfterAnim);
            }
            mPolicyVisibility = mPolicyVisibilityAfterAnim;
            setDisplayLayoutNeeded();
            if (!mPolicyVisibility) {
                mWinAnimator.hide("checkPolicyVisibilityChange");
                if (mService.mCurrentFocus == this) {
                    if (DEBUG_FOCUS_LIGHT) Slog.i(TAG,
                            "setAnimationLocked: setting mFocusMayChange true");
                    mService.mFocusMayChange = true;
                    setDisplayLayoutNeeded();
                }
                // Window is no longer visible -- make sure if we were waiting
                // for it to be displayed before enabling the display, that