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

Commit 6eb14c30 authored by Mike Lockwood's avatar Mike Lockwood
Browse files

PowerManagerService: Do not enable light sensor if hardware backlight management is being used.



Change-Id: Ic652ac22ec3256d71d12504148927349dfbd3384
Signed-off-by: default avatarMike Lockwood <lockwood@android.com>
parent bf96aaad
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1286,7 +1286,7 @@ class PowerManagerService extends IPowerManager.Stub

    private int setScreenStateLocked(boolean on) {
        int err = Power.setScreenState(on);
        if (err == 0) {
        if (err == 0 && !mHasHardwareAutoBrightness) {
            enableLightSensor(on && mAutoBrightessEnabled);
            if (!on) {
                // make sure button and key backlights are off too