Skip to content

Commit ce521ee

Browse files
deferGerrit Code Review
authored andcommitted
services: battery: Don't blink with an hvdcp charger
Quick charging doesn't really turn the device into a ticking time bomb so there is no use in frantically blinking the led while charging. This is a partial revert of the lights changes in a qualcomm commit (ec43b6d). Change-Id: I42fdaa4a0af1bfa96c598b4209cbe9936d0de35d Ticket: MARMITE-441
1 parent 2d6cf0c commit ce521ee

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

services/core/java/com/android/server/BatteryService.java

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1123,14 +1123,8 @@ public void updateLightsLocked() {
11231123
// Battery is full or charging and nearly full
11241124
mBatteryLight.setColor(mBatteryFullARGB);
11251125
} else {
1126-
if (isHvdcpPresent()) {
1127-
// Blinking orange if HVDCP charger
1128-
mBatteryLight.setFlashing(mBatteryMediumARGB, Light.LIGHT_FLASH_TIMED,
1129-
mBatteryLedOn, mBatteryLedOn);
1130-
} else {
1131-
// Battery is charging and halfway full
1132-
mBatteryLight.setColor(mBatteryMediumARGB);
1133-
}
1126+
// Battery is charging and halfway full
1127+
mBatteryLight.setColor(mBatteryMediumARGB);
11341128
}
11351129
} else {
11361130
// No lights if not charging and not low

0 commit comments

Comments
 (0)