Remove duplicate strings.
"Yes" and "no" were redefined many times with no clear benefit, so this consolidates them into one definition. Bug: 243843096 Test: Build, install, and open the Settings app Test: atest SettingsRoboTests Change-Id: I5f84d09f223efd478461ded93aeac82bf7b128d8
This commit is contained in:
@@ -216,7 +216,7 @@ public class TetherPreferenceController extends AbstractPreferenceController imp
|
||||
}
|
||||
if (!hotSpotOn && !tetherOn) {
|
||||
// Both off
|
||||
mPreference.setSummary(R.string.switch_off_text);
|
||||
mPreference.setSummary(R.string.off);
|
||||
} 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.switch_off_text);
|
||||
mPreference.setSummary(R.string.off);
|
||||
}
|
||||
|
||||
class SettingObserver extends ContentObserver {
|
||||
|
Reference in New Issue
Block a user