aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cm/lib/main/java/org/cyanogenmod/platform/internal/display/AmbientLuxObserver.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/cm/lib/main/java/org/cyanogenmod/platform/internal/display/AmbientLuxObserver.java b/cm/lib/main/java/org/cyanogenmod/platform/internal/display/AmbientLuxObserver.java
index f0d67aa..3bca9cb 100644
--- a/cm/lib/main/java/org/cyanogenmod/platform/internal/display/AmbientLuxObserver.java
+++ b/cm/lib/main/java/org/cyanogenmod/platform/internal/display/AmbientLuxObserver.java
@@ -118,6 +118,7 @@ public class AmbientLuxObserver {
// check again in case we didn't get any
// more readings because the sensor settled
if (mRingBuffer.size() > 1) {
+ removeMessages(MSG_TRANSITION);
sendEmptyMessageDelayed(MSG_TRANSITION, mThresholdDuration / 2);
}
break;