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;
|
mActiveDozeLightSensor = false;
|
||||||
} else if (!enableSensor && mLightSensorEnabled) {
|
} else if (!enableSensor && mLightSensorEnabled) {
|
||||||
// keep the light sensor active until another light sample is taken while dozing
|
// keep the light sensor active until another light sample is taken while dozing
|
||||||
mActiveDozeLightSensor = true;
|
mActiveDozeLightSensor = mLuxLevels.hasDynamicDozeBrightness();
|
||||||
adjustLightSensorRate(mInitialLightSensorRate);
|
adjustLightSensorRate(mInitialLightSensorRate);
|
||||||
if (mUseNewSensorSamplesForDoze) {
|
if (mUseNewSensorSamplesForDoze) {
|
||||||
mAmbientLightRingBuffer.clear();
|
mAmbientLightRingBuffer.clear();
|
||||||
|
|||||||
Reference in New Issue
Block a user