Add lower case charging string.

The previous charging string is "75% - Charging", this cl add lower
case string to make it "75% - charging".

Bug: 36558216
Test: Build
Change-Id: I683843de0b6cbd45bea6a465c7b6d8ee0b7c4f93
This commit is contained in:
jackqdyulei
2017-04-03 11:31:40 -07:00
parent b3c33f63ed
commit f27c73f3e8
2 changed files with 5 additions and 1 deletions

View File

@@ -811,6 +811,8 @@
<string name="battery_info_status_unknown">Unknown</string>
<!-- [CHAR_LIMIT=20] Battery use screen. Battery status shown in chart label when charging from an unknown source. -->
<string name="battery_info_status_charging">Charging</string>
<!-- [CHAR_LIMIT=20] Battery use screen with lower case. Battery status shown in chart label when charging from an unknown source. -->
<string name="battery_info_status_charging_lower">charging</string>
<!-- Battery Info screen. Value for a status item. Used for diagnostic info screens, precise translation isn't needed -->
<string name="battery_info_status_discharging">Not charging</string>
<!-- Battery Info screen. Value for a status item. Used for diagnostic info screens, precise translation isn't needed -->

View File

@@ -171,9 +171,11 @@ public class BatteryInfo {
info.mChargeLabelString = resources.getString(resId, info.batteryPercentString,
timeString);
} else {
final String chargeStatusLabel = resources.getString(
R.string.battery_info_status_charging_lower);
info.remainingLabel = null;
info.mChargeLabelString = resources.getString(
R.string.power_charging, info.batteryPercentString, info.statusLabel);
R.string.power_charging, info.batteryPercentString, chargeStatusLabel);
}
}
return info;