summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorOskar Andero <oskar.andero@sonymobile.com>2013-12-03 17:41:27 +0100
committerJohan Redestig <johan.redestig@sonymobile.com>2014-01-24 10:43:53 +0100
commite8467194dc8d56b5cf418b025b041737754b98b3 (patch)
treefe3c1a61b26b08808b90da846216cbd87f7f3983 /services
parentc9a60b0f77525244ac4f970258703b8dc62ee140 (diff)
downloadframeworks_base-e8467194dc8d56b5cf418b025b041737754b98b3.zip
frameworks_base-e8467194dc8d56b5cf418b025b041737754b98b3.tar.gz
frameworks_base-e8467194dc8d56b5cf418b025b041737754b98b3.tar.bz2
Make sure to turn off led after pulse()
setLightLocked() will update mColor. This will cause the led to not be turned off after the pulse. When notificationManager starts a attention pulse the led will be kept on. Since attention is of highest prio nothing can turn it off. This is fixed by resetting mColor back to 0 after the call. Change-Id: Id60ef96e5c21b47c23002f0bcf2fae7fb3f2ca10
Diffstat (limited to 'services')
-rw-r--r--services/java/com/android/server/LightsService.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/services/java/com/android/server/LightsService.java b/services/java/com/android/server/LightsService.java
index a1d655b..e99a3a4 100644
--- a/services/java/com/android/server/LightsService.java
+++ b/services/java/com/android/server/LightsService.java
@@ -96,6 +96,7 @@ public class LightsService {
synchronized (this) {
if (mColor == 0 && !mFlashing) {
setLightLocked(color, LIGHT_FLASH_HARDWARE, onMS, 1000, BRIGHTNESS_MODE_USER);
+ mColor = 0;
mH.sendMessageDelayed(Message.obtain(mH, 1, this), onMS);
}
}