Merge "Separate Tether summary "Off" to dedicated string ID"
This commit is contained in:
committed by
Android (Google) Code Review
commit
ce71a7bba1
@@ -3245,6 +3245,8 @@
|
|||||||
|
|
||||||
<!-- Tethering setting summary when hotspot and tethering are off [CHAR LIMIT=NONE]-->
|
<!-- 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>
|
<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]-->
|
<!-- Tethering interface options [CHAR LIMIT=NONE]-->
|
||||||
<string name="tethering_interface_options">Tethering</string>
|
<string name="tethering_interface_options">Tethering</string>
|
||||||
|
@@ -217,7 +217,7 @@ public class TetherPreferenceController extends AbstractPreferenceController imp
|
|||||||
}
|
}
|
||||||
if (!hotSpotOn && !tetherOn) {
|
if (!hotSpotOn && !tetherOn) {
|
||||||
// Both off
|
// Both off
|
||||||
mPreference.setSummary(R.string.off);
|
updateSummaryToOff();
|
||||||
} else if (hotSpotOn && tetherOn) {
|
} else if (hotSpotOn && tetherOn) {
|
||||||
// Both on
|
// Both on
|
||||||
mPreference.setSummary(R.string.tether_settings_summary_hotspot_on_tether_on);
|
mPreference.setSummary(R.string.tether_settings_summary_hotspot_on_tether_on);
|
||||||
@@ -233,7 +233,7 @@ public class TetherPreferenceController extends AbstractPreferenceController imp
|
|||||||
// Preference is not ready yet.
|
// Preference is not ready yet.
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
mPreference.setSummary(R.string.off);
|
mPreference.setSummary(R.string.tether_preference_summary_off);
|
||||||
}
|
}
|
||||||
|
|
||||||
class SettingObserver extends ContentObserver {
|
class SettingObserver extends ContentObserver {
|
||||||
|
Reference in New Issue
Block a user