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

Commit 17a76443 authored by Michael Lentine's avatar Michael Lentine Committed by Android (Google) Code Review
Browse files

Merge "Dismiss color fade when it is no longer used." into mnc-dr-dev

parents 79490dba 19356000
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -837,6 +837,7 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call
        if (mPendingScreenOff && target != Display.STATE_OFF) {
            setScreenState(Display.STATE_OFF);
            mPendingScreenOff = false;
            mPowerState.dismissColorFade();
        }

        if (target == Display.STATE_ON) {
@@ -910,6 +911,7 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call
                // A black surface is already hiding the contents of the screen.
                setScreenState(Display.STATE_OFF);
                mPendingScreenOff = false;
                mPowerState.dismissColorFade();
            } else if (performScreenOffTransition
                    && mPowerState.prepareColorFade(mContext,
                            mColorFadeFadesConfig ?