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

Commit 45903344 authored by kai.cao's avatar kai.cao Committed by Gerrit Code Review
Browse files

autobrightness: Fix the brightness dialog is not work when first enable auto-backlight

Change-Id: I1699397650e1d375fbebe1134e42e468bb7952ec
parent 9d5132c8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -266,6 +266,7 @@ class AutomaticBrightnessController {
        if (enable) {
            if (!mLightSensorEnabled) {
                mLightSensorEnabled = true;
                mAmbientLuxValid = true;
                mLightSensorEnableTime = SystemClock.uptimeMillis();

                mSensorManager.registerListener(mLightSensorListener, mLightSensor,