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

Commit d9ad8cbb authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix light status bar when transitioning home -> recents" into oc-mr1-dev

parents ce30e909 b7202a83
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -1484,7 +1484,7 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP
    // TODO: Another visibility method that was added late in the release to minimize risk.
    @Override
    public boolean canAffectSystemUiFlags() {
        final boolean shown = mWinAnimator.getShown() && mWinAnimator.mShownAlpha > 0f;
        final boolean shown = mWinAnimator.getShown();

        // We only consider the app to be exiting when the animation has started. After the app
        // transition is executed the windows are marked exiting before the new windows have been
@@ -1498,7 +1498,12 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP

        final boolean exiting = exitingSelf || mDestroying || appExiting;
        final boolean translucent = mAttrs.alpha == 0.0f;
        return shown && !exiting && !translucent;

        // If we are entering with a dummy animation, avoid affecting SystemUI flags until the
        // transition is starting.
        final boolean enteringWithDummyAnimation =
                mWinAnimator.isDummyAnimation() && mWinAnimator.mShownAlpha == 0f;
        return shown && !exiting && !translucent && !enteringWithDummyAnimation;
    }

    /**