Merge "Make sure to turn off led after pulse()"
This commit is contained in:
@@ -96,6 +96,7 @@ public class LightsService {
|
|||||||
synchronized (this) {
|
synchronized (this) {
|
||||||
if (mColor == 0 && !mFlashing) {
|
if (mColor == 0 && !mFlashing) {
|
||||||
setLightLocked(color, LIGHT_FLASH_HARDWARE, onMS, 1000, BRIGHTNESS_MODE_USER);
|
setLightLocked(color, LIGHT_FLASH_HARDWARE, onMS, 1000, BRIGHTNESS_MODE_USER);
|
||||||
|
mColor = 0;
|
||||||
mH.sendMessageDelayed(Message.obtain(mH, 1, this), onMS);
|
mH.sendMessageDelayed(Message.obtain(mH, 1, this), onMS);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user