diff --git a/services/core/java/com/android/server/notification/NotificationManagerService.java b/services/core/java/com/android/server/notification/NotificationManagerService.java index 4d33d1f18c66..63b163cb3b86 100755 --- a/services/core/java/com/android/server/notification/NotificationManagerService.java +++ b/services/core/java/com/android/server/notification/NotificationManagerService.java @@ -6082,7 +6082,7 @@ boolean canShowLightsLocked(final NotificationRecord record, boolean aboveThresh } private void forceShowLed(int color) { - if (color != -1) { + if (color != 0) { mNotificationLight.setColor(color); } else { mNotificationLight.turnOff(); @@ -6090,7 +6090,7 @@ private void forceShowLed(int color) { } private void forcePulseLed(int color, int onTime, int offTime) { - if (color != -1) { + if (color != 0) { mNotificationLight.setFlashing(color, Light.LIGHT_FLASH_TIMED, onTime, offTime); } else { mNotificationLight.turnOff();