Skip to content

Commit

Permalink
Notification light: Fix white color [3/3]
Browse files Browse the repository at this point in the history
Change-Id: Ic82eabd90c28e7312700e63d11c688a3736e79bb
  • Loading branch information
dmd79 authored and dinosnore1 committed Mar 19, 2020
1 parent 2945f2b commit ad575ac
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6082,15 +6082,15 @@ boolean canShowLightsLocked(final NotificationRecord record, boolean aboveThresh
}

private void forceShowLed(int color) {
if (color != -1) {
if (color != 0) {
mNotificationLight.setColor(color);
} else {
mNotificationLight.turnOff();
}
}

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();
Expand Down

0 comments on commit ad575ac

Please sign in to comment.