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

Commit 75c6e9e4 authored by Chong Zhang's avatar Chong Zhang Committed by android-build-merger
Browse files

Merge "Clear mPendingScreenOff and stop color fade animiation if screen is on"...

Merge "Clear mPendingScreenOff and stop color fade animiation if screen is on" into nyc-dev am: a02f1685
am: c68c5074

* commit 'c68c5074':
  Clear mPendingScreenOff and stop color fade animiation if screen is on
parents 9193a058 c68c5074
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -840,8 +840,12 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call
        // If there is already an animation in progress, don't interfere with it.
        if (mColorFadeOnAnimator.isStarted()
                || mColorFadeOffAnimator.isStarted()) {
            if (target != Display.STATE_ON) {
                return;
            }
            // If display state changed to on, proceed and stop the color fade and turn screen on.
            mPendingScreenOff = false;
        }

        // If we were in the process of turning off the screen but didn't quite
        // finish.  Then finish up now to prevent a jarring transition back