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

Unverified Commit 7f1458d9 authored by Steve Kondik's avatar Steve Kondik Committed by Michael Bestas
Browse files

display: Don't enable keyboard lights when dozing

Change-Id: Ifd2e490da0af564315aa3c07002cb045377b78cd
parent bed7dc6e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -618,7 +618,7 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call
        // Disable button lights when dozing
        if (state == Display.STATE_DOZE || state == Display.STATE_DOZE_SUSPEND) {
            mLights.getLight(LightsManager.LIGHT_ID_BUTTONS).setBrightness(PowerManager.BRIGHTNESS_OFF);
            mLights.getLight(LightsManager.LIGHT_ID_KEYBOARD).setBrightness(brightness);
            mLights.getLight(LightsManager.LIGHT_ID_KEYBOARD).setBrightness(PowerManager.BRIGHTNESS_OFF);
        }

        // Configure auto-brightness.