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

Commit 9919595a authored by Iliyan Malchev's avatar Iliyan Malchev Committed by Android Git Automerger
Browse files

am 6afc0e24: am ee98610f: Merge "Set the brightness to zero on screen-off" into jb-mr1-dev

* commit '6afc0e24':
  Set the brightness to zero on screen-off
parents a3404158 6afc0e24
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -242,8 +242,8 @@ final class DisplayPowerState {
                mElectronBeam.draw(mElectronBeamLevel);
            }

            if ((mDirty & DIRTY_BRIGHTNESS) != 0) {
                mScreenBrightnessModulator.setBrightness(mScreenBrightness);
            if ((mDirty & (DIRTY_BRIGHTNESS | DIRTY_SCREEN_ON)) != 0) {
                mScreenBrightnessModulator.setBrightness(mScreenOn ? mScreenBrightness : 0);
            }

            if ((mDirty & DIRTY_SCREEN_ON) != 0 && mScreenOn) {