am 445f4308: NotificationManagerService: Only blink red battery low LED when not charging.
Merge commit '445f43081e207ee704a5152a5333054d7b4e13a4' into eclair-plus-aosp * commit '445f43081e207ee704a5152a5333054d7b4e13a4': 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.
|
// Battery low always shows, other states only show if charging.
|
||||||
if (mBatteryLow) {
|
if (mBatteryLow) {
|
||||||
mHardware.setLightFlashing_UNCHECKED(HardwareService.LIGHT_ID_BATTERY, BATTERY_LOW_ARGB,
|
if (mBatteryCharging) {
|
||||||
HardwareService.LIGHT_FLASH_TIMED, BATTERY_BLINK_ON, BATTERY_BLINK_OFF);
|
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) {
|
} else if (mBatteryCharging) {
|
||||||
if (mBatteryFull) {
|
if (mBatteryFull) {
|
||||||
mHardware.setLightColor_UNCHECKED(HardwareService.LIGHT_ID_BATTERY,
|
mHardware.setLightColor_UNCHECKED(HardwareService.LIGHT_ID_BATTERY,
|
||||||
|
|||||||
Reference in New Issue
Block a user