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

Commit 35bc6b5f authored by Amith Yamasani's avatar Amith Yamasani
Browse files

Wifi disconnect policy summary text should not contain "mobile data".

Bug: 4026299

Change the summary if it is a wifi-only device.

Change-Id: I433113d9fc430ab06efec81b6934a03dbb17ca1b
parent 3a695a12
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1029,6 +1029,8 @@
    <string name="wifi_setting_sleep_policy_title">Wi-Fi disconnect policy</string>
    <!-- Setting summary for setting the wifi sleep policy -->
    <string name="wifi_setting_sleep_policy_summary">Specify when to switch from Wi-Fi to mobile data</string>
    <!-- Setting summary for setting the wifi sleep policy for wifi-only devices [CHAR LIMIT=100] -->
    <string name="wifi_setting_sleep_policy_summary_wifi_only">Specify when to disconnect from Wi-Fi</string>
    <!-- Generic error message when the sleep policy could not be set. -->
    <string name="wifi_setting_sleep_policy_error">There was a problem changing the setting</string>
    <!-- Action message to manually add a wifi network -->
+1 −0
Original line number Diff line number Diff line
@@ -214,6 +214,7 @@ public class WifiSettings extends SettingsPreferenceFragment
            if (pref != null) {
                if (Utils.isWifiOnly()) {
                    pref.setEntries(R.array.wifi_sleep_policy_entries_wifi_only);
                    pref.setSummary(R.string.wifi_setting_sleep_policy_summary_wifi_only);
                }
                pref.setOnPreferenceChangeListener(this);
                int value = Settings.System.getInt(getContentResolver(),