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

Commit d0cd5492 authored by Weng Su's avatar Weng Su
Browse files

Separate Tether summary "Off" to dedicated string ID

- Separate Tether summary "Off" to dedicated string ID for special language translation

Bug: 228573128
Test: manual test
make RunSettingsRoboTests ROBOTEST_FILTER=TetherPreferenceControllerTest

Change-Id: I0615eb03d6329ef73b714af39e78836ae17ea408
parent f9b0a270
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -3243,6 +3243,8 @@
    <!-- Tethering setting summary when hotspot and tethering are off [CHAR LIMIT=NONE]-->
    <string name="tether_settings_summary_off">Not sharing internet with other devices</string>
    <!-- Tethering preference summary when hotspot and tethering are off [CHAR LIMIT=NONE]-->
    <string name="tether_preference_summary_off">Off</string>
    <!-- Tethering interface options [CHAR LIMIT=NONE]-->
    <string name="tethering_interface_options">Tethering</string>
+2 −2
Original line number Diff line number Diff line
@@ -216,7 +216,7 @@ public class TetherPreferenceController extends AbstractPreferenceController imp
        }
        if (!hotSpotOn && !tetherOn) {
            // Both off
            mPreference.setSummary(R.string.off);
            updateSummaryToOff();
        } else if (hotSpotOn && tetherOn) {
            // Both on
            mPreference.setSummary(R.string.tether_settings_summary_hotspot_on_tether_on);
@@ -232,7 +232,7 @@ public class TetherPreferenceController extends AbstractPreferenceController imp
            // Preference is not ready yet.
            return;
        }
        mPreference.setSummary(R.string.off);
        mPreference.setSummary(R.string.tether_preference_summary_off);
    }

    class SettingObserver extends ContentObserver {