Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f27c73f3 authored by jackqdyulei's avatar jackqdyulei
Browse files

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
parent b3c33f63
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -811,6 +811,8 @@
    <string name="battery_info_status_unknown">Unknown</string>
    <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.  -->
    <!-- [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>
    <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 -->
    <!-- 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>
    <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 -->
    <!-- Battery Info screen. Value for a status item.  Used for diagnostic info screens, precise translation isn't needed -->
+3 −1
Original line number Original line Diff line number Diff line
@@ -171,9 +171,11 @@ public class BatteryInfo {
                info.mChargeLabelString = resources.getString(resId, info.batteryPercentString,
                info.mChargeLabelString = resources.getString(resId, info.batteryPercentString,
                        timeString);
                        timeString);
            } else {
            } else {
                final String chargeStatusLabel = resources.getString(
                        R.string.battery_info_status_charging_lower);
                info.remainingLabel = null;
                info.remainingLabel = null;
                info.mChargeLabelString = resources.getString(
                info.mChargeLabelString = resources.getString(
                        R.string.power_charging, info.batteryPercentString, info.statusLabel);
                        R.string.power_charging, info.batteryPercentString, chargeStatusLabel);
            }
            }
        }
        }
        return info;
        return info;