Update the chargeLabel when battery level is full
Before this cl, it will show "100% - charging", which doesn't make sense. This cl removes "- charging", and only show "100%" in this case Bug: 62559153 Test: RunSettingsRoboTests Change-Id: Id124fe4098e21b4a69c4a7d3d522fa227faab65d
This commit is contained in:
@@ -227,8 +227,9 @@ public class BatteryInfo {
|
||||
final String chargeStatusLabel = resources.getString(
|
||||
R.string.battery_info_status_charging_lower);
|
||||
info.remainingLabel = null;
|
||||
info.chargeLabel = resources.getString(
|
||||
R.string.power_charging, info.batteryPercentString, chargeStatusLabel);
|
||||
info.chargeLabel = info.batteryLevel == 100 ? info.batteryPercentString :
|
||||
resources.getString(R.string.power_charging, info.batteryPercentString,
|
||||
chargeStatusLabel);
|
||||
}
|
||||
}
|
||||
return info;
|
||||
|
||||
Reference in New Issue
Block a user