* commit '6b1f3acdf0f0806c0b3826d1c4ea43bd6cc6f021': Make sure to turn off led after pulse()
This commit is contained in:
@@ -78,6 +78,7 @@ public class LightsService extends SystemService {
|
|||||||
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