Shorten main settings battery string
This string will be too long in other languages so we're shortening it for the main settings screen. Test: robotests updated Bug: 64124535 Change-Id: I5ccad99b1023f84ee72a144e07b1ea60f3fc01d5
This commit is contained in:
@@ -219,10 +219,8 @@ public class BatteryInfo {
|
||||
CharSequence timeString = Utils.formatElapsedTime(context,
|
||||
BatteryUtils.convertUsToMs(drainTimeUs), false /* withSeconds */);
|
||||
info.remainingLabel = TextUtils.expandTemplate(context.getText(shortString ?
|
||||
(basedOnUsage ?
|
||||
R.string.power_remaining_duration_only_short_enhanced :
|
||||
R.string.power_remaining_duration_only_short) :
|
||||
(basedOnUsage ?
|
||||
R.string.power_remaining_duration_only_short :
|
||||
(basedOnUsage ?
|
||||
R.string.power_remaining_duration_only_enhanced :
|
||||
R.string.power_remaining_duration_only)), timeString);
|
||||
info.chargeLabel = TextUtils.expandTemplate(context.getText(
|
||||
|
Reference in New Issue
Block a user