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

Commit 789954fb authored by Julius D'souza's avatar Julius D'souza
Browse files

DO NOT MERGE: Add dynamic doze check for the active doze light sensor.

Bug: 62038345
Change-Id: I4b86a1b9ab56f560e863663b9f89195ae1187ab4
parent fef074ad
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -277,7 +277,7 @@ class AutomaticBrightnessController {
            mActiveDozeLightSensor = false;
        } else if (!enableSensor && mLightSensorEnabled) {
            // keep the light sensor active until another light sample is taken while dozing
            mActiveDozeLightSensor = true;
            mActiveDozeLightSensor = mLuxLevels.hasDynamicDozeBrightness();
            adjustLightSensorRate(mInitialLightSensorRate);
            if (mUseNewSensorSamplesForDoze) {
                mAmbientLightRingBuffer.clear();