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

Commit 0aee0e6a authored by Zaiyue Xue's avatar Zaiyue Xue
Browse files

Change battery usage dropdown list item texts from "Breakdown by ..." to "By ..."

mock: https://screenshot.googleplex.com/C8ZbSL6UfJ9jRJx.png
screenshot: https://screenshot.googleplex.com/4nqRv3UA2iGoQuK.png

Bug: 278986376
Fix: 278986376
Test: manual
Change-Id: Iccb67c3695b21b62d5d26a96a791ca46a1ba7e0a
parent 85e51741
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -5474,9 +5474,9 @@
    <!-- [CHAR_LIMIT=NONE] Device screen on time category for a selected slot -->
    <!-- [CHAR_LIMIT=NONE] Device screen on time category for a selected slot -->
    <string name="screen_time_category_for_slot">Screen time for <xliff:g id="slot">%s</xliff:g></string>
    <string name="screen_time_category_for_slot">Screen time for <xliff:g id="slot">%s</xliff:g></string>
    <!-- [CHAR_LIMIT=NONE] The spinner item text in the battery usage breakdown. -->
    <!-- [CHAR_LIMIT=NONE] The spinner item text in the battery usage breakdown. -->
    <string name="battery_usage_spinner_breakdown_by_apps">Breakdown by apps</string>
    <string name="battery_usage_spinner_by_apps">By apps</string>
    <!-- [CHAR_LIMIT=NONE] The spinner item text in the battery usage breakdown. -->
    <!-- [CHAR_LIMIT=NONE] The spinner item text in the battery usage breakdown. -->
    <string name="battery_usage_spinner_breakdown_by_system">Breakdown by system</string>
    <string name="battery_usage_spinner_by_systems">By systems</string>
    <!-- [CHAR_LIMIT=NONE] Less than some percentage, e.g. < 1% -->
    <!-- [CHAR_LIMIT=NONE] Less than some percentage, e.g. < 1% -->
    <string name="battery_usage_less_than_percent">&lt; <xliff:g id="percentage">%1$s</xliff:g></string>
    <string name="battery_usage_less_than_percent">&lt; <xliff:g id="percentage">%1$s</xliff:g></string>
    <!-- Process Stats strings -->
    <!-- Process Stats strings -->
+2 −2
Original line number Original line Diff line number Diff line
@@ -177,8 +177,8 @@ public class BatteryUsageBreakdownController extends BasePreferenceController
        mAppListPreferenceGroup.setOrderingAsAdded(false);
        mAppListPreferenceGroup.setOrderingAsAdded(false);
        mSpinnerPreference.initializeSpinner(
        mSpinnerPreference.initializeSpinner(
                new String[]{
                new String[]{
                        mPrefContext.getString(R.string.battery_usage_spinner_breakdown_by_apps),
                        mPrefContext.getString(R.string.battery_usage_spinner_by_apps),
                        mPrefContext.getString(R.string.battery_usage_spinner_breakdown_by_system)
                        mPrefContext.getString(R.string.battery_usage_spinner_by_systems)
                },
                },
                new AdapterView.OnItemSelectedListener() {
                new AdapterView.OnItemSelectedListener() {
                    @Override
                    @Override