DO NOT MERGE: Add dynamic doze check for the active doze light sensor.
Bug: 62038345 Change-Id: I4b86a1b9ab56f560e863663b9f89195ae1187ab4
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user