Loading services/core/java/com/android/server/notification/NotificationManagerService.java +8 −2 Original line number Diff line number Diff line Loading @@ -5052,10 +5052,16 @@ public class NotificationManagerService extends SystemService { mNotificationLight.turnOff(); } else { mNotificationLight.setModes(ledValues.getBrightness()); // we are using 1:0 to indicate LED should stay always on if (ledValues.getOnMs() == 1 && ledValues.getOffMs() == 0) { mNotificationLight.setColor(ledValues.getColor()); } else { mNotificationLight.setFlashing(ledValues.getColor(), Light.LIGHT_FLASH_TIMED, ledValues.getOnMs(), ledValues.getOffMs()); } } } private boolean isLedForcedOn(NotificationRecord nr) { return nr != null ? Loading Loading
services/core/java/com/android/server/notification/NotificationManagerService.java +8 −2 Original line number Diff line number Diff line Loading @@ -5052,10 +5052,16 @@ public class NotificationManagerService extends SystemService { mNotificationLight.turnOff(); } else { mNotificationLight.setModes(ledValues.getBrightness()); // we are using 1:0 to indicate LED should stay always on if (ledValues.getOnMs() == 1 && ledValues.getOffMs() == 0) { mNotificationLight.setColor(ledValues.getColor()); } else { mNotificationLight.setFlashing(ledValues.getColor(), Light.LIGHT_FLASH_TIMED, ledValues.getOnMs(), ledValues.getOffMs()); } } } private boolean isLedForcedOn(NotificationRecord nr) { return nr != null ? Loading