am 267e6214: am 445f4308: NotificationManagerService: Only blink red battery low LED when not charging.
Merge commit '267e621468516e4e5da82707f8a2d84ada164131' * commit '267e621468516e4e5da82707f8a2d84ada164131': NotificationManagerService: Only blink red battery low LED when not charging.
This commit is contained in:
11
services/java/com/android/server/NotificationManagerService.java
Normal file → Executable file
11
services/java/com/android/server/NotificationManagerService.java
Normal file → Executable file
@@ -957,8 +957,15 @@ class NotificationManagerService extends INotificationManager.Stub
|
||||
{
|
||||
// Battery low always shows, other states only show if charging.
|
||||
if (mBatteryLow) {
|
||||
mHardware.setLightFlashing_UNCHECKED(HardwareService.LIGHT_ID_BATTERY, BATTERY_LOW_ARGB,
|
||||
HardwareService.LIGHT_FLASH_TIMED, BATTERY_BLINK_ON, BATTERY_BLINK_OFF);
|
||||
if (mBatteryCharging) {
|
||||
mHardware.setLightColor_UNCHECKED(HardwareService.LIGHT_ID_BATTERY,
|
||||
BATTERY_LOW_ARGB);
|
||||
} else {
|
||||
// Flash when battery is low and not charging
|
||||
mHardware.setLightFlashing_UNCHECKED(HardwareService.LIGHT_ID_BATTERY,
|
||||
BATTERY_LOW_ARGB, HardwareService.LIGHT_FLASH_TIMED,
|
||||
BATTERY_BLINK_ON, BATTERY_BLINK_OFF);
|
||||
}
|
||||
} else if (mBatteryCharging) {
|
||||
if (mBatteryFull) {
|
||||
mHardware.setLightColor_UNCHECKED(HardwareService.LIGHT_ID_BATTERY,
|
||||
|
||||
Reference in New Issue
Block a user