We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 141fc98 + 320a10a commit 9dc2021Copy full SHA for 9dc2021
services/java/com/android/server/PowerManagerService.java
@@ -3043,6 +3043,11 @@ private void enableLightSensorLocked(boolean enable) {
3043
}
3044
if (mSensorManager != null && mLightSensorEnabled != enable) {
3045
mLightSensorEnabled = enable;
3046
+ // clear previous values so we will adjust to current brightness when
3047
+ // auto-brightness is reenabled
3048
+ mHighestLightSensorValue = -1;
3049
+ mLightSensorValue = -1;
3050
+
3051
// clear calling identity so sensor manager battery stats are accurate
3052
long identity = Binder.clearCallingIdentity();
3053
try {
0 commit comments