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

Commit 3f2e3f75 authored by Abhisek Devkota's avatar Abhisek Devkota Committed by Gerrit Code Review
Browse files

Merge "base: Fix screen on stats after a boot" into cm-11.0

parents 1fa02a67 dda2a05b
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -642,6 +642,12 @@ final class DisplayPowerController {

        mScreenBrightnessRampAnimator = new RampAnimator<DisplayPowerState>(
                mPowerState, DisplayPowerState.SCREEN_BRIGHTNESS);

        if (mPowerState.isScreenOn()) {
            // If the screen is on then let the notifier know to ensure that
            // battery stats after a boot are correct.
            mNotifier.onScreenOn();
        }
    }

    private final Animator.AnimatorListener mAnimatorListener = new Animator.AnimatorListener() {