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

Bug: 62038345
Change-Id: I4b86a1b9ab56f560e863663b9f89195ae1187ab4
This commit is contained in:
Julius D'souza
2017-06-27 06:48:51 -07:00
parent fef074ad29
commit 789954fb69

View File

@@ -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();