If "Pulse notification light" is off, don't flash the LED even once.

If it is on, flash repeatedly.

Bug: 5242350
Change-Id: I7da195a7c49c68c0a1fca12eecfc4a4e06dd0b61
This commit is contained in:
Amith Yamasani
2011-09-20 14:48:52 -07:00
parent ee0835b95d
commit ebfc0e5d70

View File

@@ -1085,9 +1085,6 @@ public class NotificationManagerService extends INotificationManager.Stub
// pulse repeatedly
mNotificationLight.setFlashing(ledARGB, LightsService.LIGHT_FLASH_TIMED,
ledOnMS, ledOffMS);
} else {
// pulse only once
mNotificationLight.pulse(ledARGB, ledOnMS);
}
}
}