Revert "Remove duplicate strings."
Revert submission 19748582-settings_yesno Reason for revert: Common strings in English could be translated into different strings in other languages. Reverted changes: /q/submissionid:19748582-settings_yesno Bug: 272603842 Test: build and open Settings app Test: atest SettingsRoboTests Change-Id: Iaad301c5513478fb95e40987ea3ccb4f923d71fa
This commit is contained in:
@@ -266,8 +266,8 @@ public class AccessibilitySettings extends DashboardFragment {
|
||||
: context.getText(R.string.accessibility_summary_shortcut_disabled);
|
||||
} else {
|
||||
serviceState = serviceEnabled
|
||||
? context.getText(R.string.on)
|
||||
: context.getText(R.string.off);
|
||||
? context.getText(R.string.accessibility_summary_state_enabled)
|
||||
: context.getText(R.string.accessibility_summary_state_disabled);
|
||||
}
|
||||
|
||||
final CharSequence serviceSummary = info.loadSummary(context.getPackageManager());
|
||||
|
@@ -422,7 +422,7 @@ public abstract class AccessibilityShortcutPreferenceFragment extends Restricted
|
||||
}
|
||||
|
||||
if (!mShortcutPreference.isChecked()) {
|
||||
return context.getText(R.string.off);
|
||||
return context.getText(R.string.switch_off_text);
|
||||
}
|
||||
|
||||
final int shortcutTypes = PreferredShortcuts.retrieveUserShortcutType(context,
|
||||
|
@@ -130,7 +130,8 @@ public final class AccessibilityUtil {
|
||||
static CharSequence getSummary(Context context, String settingsSecureKey) {
|
||||
final boolean enabled = Settings.Secure.getInt(context.getContentResolver(),
|
||||
settingsSecureKey, State.OFF) == State.ON;
|
||||
final int resId = enabled ? R.string.on : R.string.off;
|
||||
final int resId = enabled ? R.string.accessibility_feature_state_on
|
||||
: R.string.accessibility_feature_state_off;
|
||||
return context.getResources().getText(resId);
|
||||
}
|
||||
|
||||
|
@@ -53,7 +53,7 @@ public class AutoclickPreferenceController extends BasePreferenceController {
|
||||
final boolean enabled = Settings.Secure.getInt(mContext.getContentResolver(),
|
||||
Settings.Secure.ACCESSIBILITY_AUTOCLICK_ENABLED, OFF) == ON;
|
||||
if (!enabled) {
|
||||
return mContext.getResources().getText(R.string.off);
|
||||
return mContext.getResources().getText(R.string.accessibility_feature_state_off);
|
||||
}
|
||||
final int delayMillis = Settings.Secure.getInt(mContext.getContentResolver(),
|
||||
Settings.Secure.ACCESSIBILITY_AUTOCLICK_DELAY,
|
||||
|
@@ -87,7 +87,8 @@ public class MagnificationGesturesPreferenceController extends TogglePreferenceC
|
||||
resId = R.string.accessibility_screen_magnification_short_summary;
|
||||
} else {
|
||||
final boolean enabled = isChecked();
|
||||
resId = (enabled ? R.string.on : R.string.off);
|
||||
resId = (enabled ? R.string.accessibility_feature_state_on :
|
||||
R.string.accessibility_feature_state_off);
|
||||
}
|
||||
return mContext.getString(resId);
|
||||
}
|
||||
|
@@ -94,7 +94,8 @@ public class MagnificationNavbarPreferenceController extends TogglePreferenceCon
|
||||
resId = R.string.accessibility_screen_magnification_navbar_short_summary;
|
||||
} else {
|
||||
final boolean enabled = isChecked();
|
||||
resId = (enabled ? R.string.on : R.string.off);
|
||||
resId = (enabled ? R.string.accessibility_feature_state_on :
|
||||
R.string.accessibility_feature_state_off);
|
||||
}
|
||||
return mContext.getText(resId);
|
||||
}
|
||||
|
@@ -658,7 +658,7 @@ public abstract class ToggleFeaturePreferenceFragment extends DashboardFragment
|
||||
}
|
||||
|
||||
if (!mShortcutPreference.isChecked()) {
|
||||
return context.getText(R.string.off);
|
||||
return context.getText(R.string.switch_off_text);
|
||||
}
|
||||
|
||||
final int shortcutTypes = PreferredShortcuts.retrieveUserShortcutType(context,
|
||||
|
@@ -431,7 +431,7 @@ public class ToggleScreenMagnificationPreferenceFragment extends
|
||||
@Override
|
||||
protected CharSequence getShortcutTypeSummary(Context context) {
|
||||
if (!mShortcutPreference.isChecked()) {
|
||||
return context.getText(R.string.off);
|
||||
return context.getText(R.string.switch_off_text);
|
||||
}
|
||||
|
||||
final int shortcutTypes = PreferredShortcuts.retrieveUserShortcutType(context,
|
||||
@@ -752,6 +752,6 @@ public class ToggleScreenMagnificationPreferenceFragment extends
|
||||
final int uerShortcutType = getUserShortcutTypeFromSettings(context);
|
||||
return (uerShortcutType != AccessibilityUtil.UserShortcutType.EMPTY)
|
||||
? context.getText(R.string.accessibility_summary_shortcut_enabled)
|
||||
: context.getText(R.string.off);
|
||||
: context.getText(R.string.accessibility_summary_shortcut_disabled);
|
||||
}
|
||||
}
|
||||
|
@@ -44,6 +44,9 @@ public class VibrationPreferenceController extends BasePreferenceController {
|
||||
public CharSequence getSummary() {
|
||||
final boolean isVibrateOn = Settings.System.getInt(mContext.getContentResolver(),
|
||||
Settings.System.VIBRATE_ON, ON) == ON;
|
||||
return mContext.getText(isVibrateOn ? R.string.on : R.string.off);
|
||||
return mContext.getText(
|
||||
isVibrateOn
|
||||
? R.string.accessibility_vibration_settings_state_on
|
||||
: R.string.accessibility_vibration_settings_state_off);
|
||||
}
|
||||
}
|
||||
|
@@ -99,11 +99,11 @@ public class AppNotificationPreferenceController extends AppInfoPreferenceContro
|
||||
return "";
|
||||
}
|
||||
if (appRow.banned) {
|
||||
return context.getText(R.string.off);
|
||||
return context.getText(R.string.notifications_disabled);
|
||||
} else if (appRow.channelCount == 0) {
|
||||
return NotificationBackend.getSentSummary(context, appRow.sentByApp, false);
|
||||
} else if (appRow.channelCount == appRow.blockedChannelCount) {
|
||||
return context.getText(R.string.off);
|
||||
return context.getText(R.string.notifications_disabled);
|
||||
} else {
|
||||
if (appRow.blockedChannelCount == 0) {
|
||||
return NotificationBackend.getSentSummary(context, appRow.sentByApp, false);
|
||||
|
@@ -54,7 +54,8 @@ public class BackupDataPreferenceController extends BasePreferenceController {
|
||||
public CharSequence getSummary() {
|
||||
if (!mPSCD.isBackupGray()) {
|
||||
return mPSCD.isBackupEnabled()
|
||||
? mContext.getText(R.string.on) : mContext.getText(R.string.off);
|
||||
? mContext.getText(R.string.accessibility_feature_state_on)
|
||||
: mContext.getText(R.string.accessibility_feature_state_off);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
@@ -58,7 +58,8 @@ public class BackupSettingsHelper {
|
||||
UserManager userManager = (UserManager) mContext.getSystemService(Context.USER_SERVICE);
|
||||
if (userManager.getUserProfiles().size() == 1) {
|
||||
try {
|
||||
int resId = mBackupManager.isBackupEnabled() ? R.string.on : R.string.off;
|
||||
int resId = mBackupManager.isBackupEnabled()
|
||||
? R.string.backup_summary_state_on : R.string.backup_summary_state_off;
|
||||
return mContext.getText(resId).toString();
|
||||
} catch (RemoteException e) {
|
||||
Log.e(TAG, "Error getting isBackupEnabled", e);
|
||||
|
@@ -74,7 +74,7 @@ public final class BluetoothSummaryUpdater extends SummaryUpdater implements Blu
|
||||
@Override
|
||||
public String getSummary() {
|
||||
if (mBluetoothAdapter == null || !mBluetoothAdapter.isEnabled()) {
|
||||
return mContext.getString(R.string.off);
|
||||
return mContext.getString(R.string.bluetooth_disabled);
|
||||
}
|
||||
switch (mBluetoothAdapter.getConnectionState()) {
|
||||
case BluetoothAdapter.STATE_CONNECTED:
|
||||
@@ -95,7 +95,7 @@ public final class BluetoothSummaryUpdater extends SummaryUpdater implements Blu
|
||||
final Set<BluetoothDevice> devices = mBluetoothAdapter.getBondedDevices();
|
||||
if (devices == null) {
|
||||
Log.e(TAG, "getConnectedDeviceSummary, bonded devices are null");
|
||||
return mContext.getString(R.string.off);
|
||||
return mContext.getString(R.string.bluetooth_disabled);
|
||||
} else if (devices.isEmpty()) {
|
||||
Log.e(TAG, "getConnectedDeviceSummary, no bonded devices");
|
||||
return mContext.getString(R.string.disconnected);
|
||||
|
@@ -54,9 +54,9 @@ public class NfcAndPaymentFragmentController extends BasePreferenceController {
|
||||
public CharSequence getSummary() {
|
||||
if (mNfcAdapter != null) {
|
||||
if (mNfcAdapter.isEnabled()) {
|
||||
return mContext.getText(R.string.on);
|
||||
return mContext.getText(R.string.nfc_setting_on);
|
||||
} else {
|
||||
return mContext.getText(R.string.off);
|
||||
return mContext.getText(R.string.nfc_setting_off);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
|
@@ -44,7 +44,7 @@ public class DataSaverPreference extends Preference implements DataSaverBackend.
|
||||
|
||||
@Override
|
||||
public void onDataSaverChanged(boolean isDataSaving) {
|
||||
setSummary(isDataSaving ? R.string.on : R.string.off);
|
||||
setSummary(isDataSaving ? R.string.data_saver_on : R.string.data_saver_off);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@@ -57,7 +57,9 @@ public class AutoBrightnessPreferenceController extends TogglePreferenceControll
|
||||
|
||||
@Override
|
||||
public CharSequence getSummary() {
|
||||
return mContext.getText(isChecked() ? R.string.on : R.string.off);
|
||||
return mContext.getText(isChecked()
|
||||
? R.string.auto_brightness_summary_on
|
||||
: R.string.auto_brightness_summary_off);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@@ -175,7 +175,7 @@ public class SmartAutoRotatePreferenceController extends TogglePreferenceControl
|
||||
|
||||
@Override
|
||||
public CharSequence getSummary() {
|
||||
int activeStringId = R.string.off;
|
||||
int activeStringId = R.string.auto_rotate_option_off;
|
||||
if (!RotationPolicy.isRotationLocked(mContext)) {
|
||||
final int cameraRotate = Settings.Secure.getIntForUser(
|
||||
mContext.getContentResolver(),
|
||||
@@ -186,7 +186,7 @@ public class SmartAutoRotatePreferenceController extends TogglePreferenceControl
|
||||
&& !isCameraLocked()
|
||||
&& !isPowerSaveMode()
|
||||
? R.string.auto_rotate_option_face_based
|
||||
: R.string.on;
|
||||
: R.string.auto_rotate_option_on;
|
||||
}
|
||||
return mContext.getString(activeStringId);
|
||||
}
|
||||
|
@@ -95,7 +95,8 @@ public class EmergencyGestureEntrypointPreferenceController extends BasePreferen
|
||||
public CharSequence getSummary() {
|
||||
return mContext.getText(
|
||||
mEmergencyNumberUtils.getEmergencyGestureEnabled()
|
||||
? R.string.on : R.string.off);
|
||||
? R.string.gesture_setting_on
|
||||
: R.string.gesture_setting_off);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -97,7 +97,7 @@ public class BatterySaverController extends BasePreferenceController
|
||||
public CharSequence getSummary() {
|
||||
final boolean isPowerSaveOn = mPowerManager.isPowerSaveMode();
|
||||
if (isPowerSaveOn) {
|
||||
return mContext.getString(R.string.on);
|
||||
return mContext.getString(R.string.battery_saver_on_summary);
|
||||
}
|
||||
|
||||
final ContentResolver resolver = mContext.getContentResolver();
|
||||
@@ -109,7 +109,7 @@ public class BatterySaverController extends BasePreferenceController
|
||||
return percent != 0 ?
|
||||
mContext.getString(R.string.battery_saver_off_scheduled_summary,
|
||||
Utils.formatPercentage(percent)) :
|
||||
mContext.getString(R.string.off);
|
||||
mContext.getString(R.string.battery_saver_off_summary);
|
||||
} else {
|
||||
return mContext.getString(R.string.battery_saver_pref_auto_routine_summary);
|
||||
}
|
||||
|
@@ -128,7 +128,8 @@ public class AssistGestureSettingsPreferenceController extends GesturePreference
|
||||
if (!mAssistOnly) {
|
||||
isEnabled = isEnabled || isSilenceGestureEnabled();
|
||||
}
|
||||
return mContext.getText(isEnabled ? R.string.on : R.string.off);
|
||||
return mContext.getText(
|
||||
isEnabled ? R.string.gesture_setting_on : R.string.gesture_setting_off);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@@ -60,7 +60,8 @@ public abstract class GesturePreferenceController extends TogglePreferenceContro
|
||||
|
||||
@Override
|
||||
public CharSequence getSummary() {
|
||||
return mContext.getText(isChecked() ? R.string.on : R.string.off);
|
||||
return mContext.getText(
|
||||
isChecked() ? R.string.gesture_setting_on : R.string.gesture_setting_off);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@@ -51,7 +51,7 @@ public class OneHandedEnablePreferenceController extends BasePreferenceControlle
|
||||
public CharSequence getSummary() {
|
||||
return mContext.getText(
|
||||
OneHandedSettingsUtils.isOneHandedModeEnabled(mContext)
|
||||
? R.string.on : R.string.off);
|
||||
? R.string.gesture_setting_on : R.string.gesture_setting_off);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@@ -104,7 +104,7 @@ public class PreventRingingParentPreferenceController extends TogglePreferenceCo
|
||||
break;
|
||||
// VOLUME_HUSH_OFF
|
||||
default:
|
||||
summary = mContext.getText(R.string.off);
|
||||
summary = mContext.getText(R.string.switch_off_text);
|
||||
}
|
||||
preference.setEnabled(true);
|
||||
mPreference.setSwitchEnabled(true);
|
||||
|
@@ -66,7 +66,7 @@ public class SpellCheckerPreferenceController extends AbstractPreferenceControll
|
||||
return;
|
||||
}
|
||||
if (!mTextServicesManager.isSpellCheckerEnabled()) {
|
||||
preference.setSummary(R.string.off);
|
||||
preference.setSummary(R.string.switch_off_text);
|
||||
} else {
|
||||
final SpellCheckerInfo sci = mTextServicesManager.getCurrentSpellChecker();
|
||||
if (sci != null) {
|
||||
|
@@ -44,7 +44,8 @@ public class LocationForWorkPreferenceController extends LocationBasePreferenceC
|
||||
final boolean switchState = mPreference.isChecked();
|
||||
mUserManager.setUserRestriction(UserManager.DISALLOW_SHARE_LOCATION, !switchState,
|
||||
Utils.getManagedProfile(mUserManager));
|
||||
mPreference.setSummary(switchState ? R.string.on : R.string.off);
|
||||
mPreference.setSummary(switchState
|
||||
? R.string.switch_on_text : R.string.switch_off_text);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
@@ -80,11 +81,11 @@ public class LocationForWorkPreferenceController extends LocationBasePreferenceC
|
||||
mLocationEnabler.isManagedProfileRestrictedByBase();
|
||||
if (isRestrictedByBase || !enabled) {
|
||||
mPreference.setChecked(false);
|
||||
summaryResId = enabled ? R.string.off
|
||||
summaryResId = enabled ? R.string.switch_off_text
|
||||
: R.string.location_app_permission_summary_location_off;
|
||||
} else {
|
||||
mPreference.setChecked(true);
|
||||
summaryResId = R.string.on;
|
||||
summaryResId = R.string.switch_on_text;
|
||||
}
|
||||
mPreference.setSummary(summaryResId);
|
||||
}
|
||||
|
@@ -46,7 +46,8 @@ public class LocationServicesBluetoothScanningPreferenceController extends
|
||||
public CharSequence getSummary() {
|
||||
final boolean bleScanOn = Settings.Global.getInt(mContext.getContentResolver(),
|
||||
Settings.Global.BLE_SCAN_ALWAYS_AVAILABLE, 0) == 1;
|
||||
final int resId = bleScanOn ? R.string.on : R.string.off;
|
||||
int resId =
|
||||
bleScanOn ? R.string.scanning_status_text_on : R.string.scanning_status_text_off;
|
||||
return mContext.getString(resId);
|
||||
}
|
||||
|
||||
|
@@ -47,7 +47,8 @@ public class LocationServicesWifiScanningPreferenceController extends BasePrefer
|
||||
@Override
|
||||
public CharSequence getSummary() {
|
||||
final boolean wifiScanOn = mWifiManager.isScanAlwaysAvailable();
|
||||
final int resId = wifiScanOn ? R.string.on : R.string.off;
|
||||
int resId =
|
||||
wifiScanOn ? R.string.scanning_status_text_on : R.string.scanning_status_text_off;
|
||||
return mContext.getString(resId);
|
||||
}
|
||||
|
||||
|
@@ -58,7 +58,7 @@ public class TopLevelLocationPreferenceController extends BasePreferenceControll
|
||||
}
|
||||
return sSummary;
|
||||
} else {
|
||||
return mContext.getString(R.string.off);
|
||||
return mContext.getString(R.string.location_settings_summary_location_off);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -48,7 +48,7 @@ public class AdaptiveConnectivityPreferenceController extends BasePreferenceCont
|
||||
public CharSequence getSummary() {
|
||||
return Settings.Secure.getInt(mContext.getContentResolver(),
|
||||
Settings.Secure.ADAPTIVE_CONNECTIVITY_ENABLED, 1) == 1
|
||||
? mContext.getString(R.string.on)
|
||||
: mContext.getString(R.string.off);
|
||||
? mContext.getString(R.string.adaptive_connectivity_switch_on)
|
||||
: mContext.getString(R.string.adaptive_connectivity_switch_off);
|
||||
}
|
||||
}
|
||||
|
@@ -130,7 +130,7 @@ public class PrivateDnsPreferenceController extends BasePreferenceController
|
||||
case PRIVATE_DNS_MODE_OFF:
|
||||
return res.getString(R.string.private_dns_mode_off);
|
||||
case PRIVATE_DNS_MODE_OPPORTUNISTIC:
|
||||
return dnsesResolved ? res.getString(R.string.on)
|
||||
return dnsesResolved ? res.getString(R.string.private_dns_mode_on)
|
||||
: res.getString(R.string.private_dns_mode_opportunistic);
|
||||
case PRIVATE_DNS_MODE_PROVIDER_HOSTNAME:
|
||||
return dnsesResolved
|
||||
|
@@ -65,7 +65,7 @@ public class AndroidBeamEnabler extends BaseNfcEnabler {
|
||||
if (mNfcAdapter.isNdefPushEnabled() && mPreference.isEnabled()) {
|
||||
mPreference.setSummary(R.string.android_beam_on_summary);
|
||||
} else {
|
||||
mPreference.setSummary(R.string.off);
|
||||
mPreference.setSummary(R.string.android_beam_off_summary);
|
||||
}
|
||||
break;
|
||||
case NfcAdapter.STATE_TURNING_ON:
|
||||
|
@@ -44,7 +44,7 @@ public class BubbleSummaryNotificationPreferenceController extends BasePreferenc
|
||||
return mContext.getString(
|
||||
areBubblesEnabled()
|
||||
? R.string.notifications_bubble_setting_on_summary
|
||||
: R.string.off);
|
||||
: R.string.switch_off_text);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@@ -71,7 +71,7 @@ public class SpatialAudioParentPreferenceController extends BasePreferenceContro
|
||||
return mContext.getString(R.string.spatial_summary_on_one,
|
||||
mContext.getString(R.string.spatial_audio_wired_headphones));
|
||||
} else {
|
||||
return mContext.getString(R.string.off);
|
||||
return mContext.getString(R.string.spatial_summary_off);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -194,7 +194,7 @@ public class ZenModeSettings extends ZenModeSettingsBase {
|
||||
String description = ZenModeConfig.getDescription(mContext, true, config, false);
|
||||
|
||||
if (description == null) {
|
||||
return mContext.getString(R.string.on);
|
||||
return mContext.getString(R.string.zen_mode_sound_summary_on);
|
||||
} else {
|
||||
return mContext.getString(R.string.zen_mode_sound_summary_on_with_info,
|
||||
description);
|
||||
|
@@ -274,7 +274,7 @@ public class ZenModeSettingsFooterPreferenceController extends AbstractZenModePr
|
||||
}
|
||||
|
||||
private int getAllowRes(boolean allow) {
|
||||
return allow ? R.string.on : R.string.off;
|
||||
return allow ? R.string.zen_mode_sound_summary_on : R.string.switch_off_text;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@@ -165,7 +165,7 @@ public class ZenRulePreference extends PrimarySwitchPreference {
|
||||
}
|
||||
|
||||
return (rule == null || !rule.isEnabled())
|
||||
? mContext.getResources().getString(R.string.off)
|
||||
: mContext.getResources().getString(R.string.on);
|
||||
? mContext.getResources().getString(R.string.switch_off_text)
|
||||
: mContext.getResources().getString(R.string.switch_on_text);
|
||||
}
|
||||
}
|
||||
|
@@ -117,7 +117,7 @@ public class PrintSettingPreferenceController extends BasePreferenceController i
|
||||
final List<PrintServiceInfo> services =
|
||||
mPrintManager.getPrintServices(PrintManager.ENABLED_SERVICES);
|
||||
if (services == null || services.isEmpty()) {
|
||||
return mContext.getText(R.string.off);
|
||||
return mContext.getText(R.string.print_settings_summary_no_service);
|
||||
} else {
|
||||
return StringUtil.getIcuPluralsString(mContext, services.size(),
|
||||
R.string.print_settings_summary);
|
||||
|
@@ -204,9 +204,9 @@ public class PrintSettingsFragment extends ProfileSettingsPreferenceFragment
|
||||
preference.setPersistent(false);
|
||||
|
||||
if (service.isEnabled()) {
|
||||
preference.setSummary(getString(R.string.on));
|
||||
preference.setSummary(getString(R.string.print_feature_state_on));
|
||||
} else {
|
||||
preference.setSummary(getString(R.string.off));
|
||||
preference.setSummary(getString(R.string.print_feature_state_off));
|
||||
}
|
||||
|
||||
Drawable drawable = service.getResolveInfo().loadIcon(pm);
|
||||
|
@@ -38,7 +38,7 @@ public class ScreenPinningPreferenceController extends BasePreferenceController
|
||||
public CharSequence getSummary() {
|
||||
return Settings.System.getInt(mContext.getContentResolver(),
|
||||
Settings.System.LOCK_TO_APP_ENABLED, 0) != 0
|
||||
? mContext.getText(R.string.on)
|
||||
: mContext.getText(R.string.off);
|
||||
? mContext.getText(R.string.screen_pinning_switch_on_text)
|
||||
: mContext.getText(R.string.screen_pinning_switch_off_text);
|
||||
}
|
||||
}
|
||||
|
@@ -134,7 +134,7 @@ public class SwitchBar extends LinearLayout implements CompoundButton.OnCheckedC
|
||||
lp.setMarginEnd(switchBarMarginEnd);
|
||||
setBackgroundColor(mBackgroundColor);
|
||||
|
||||
setSwitchBarText(R.string.on, R.string.off);
|
||||
setSwitchBarText(R.string.switch_on_text, R.string.switch_off_text);
|
||||
|
||||
addOnSwitchChangeListener(
|
||||
(switchView, isChecked) -> setTextViewLabelAndBackground(isChecked));
|
||||
|
@@ -87,7 +87,7 @@ public final class WifiSummaryUpdater extends SummaryUpdater {
|
||||
@Override
|
||||
public String getSummary() {
|
||||
if (!mWifiTracker.enabled) {
|
||||
return mContext.getString(R.string.off);
|
||||
return mContext.getString(R.string.switch_off_text);
|
||||
}
|
||||
if (!mWifiTracker.connected) {
|
||||
return mContext.getString(R.string.disconnected);
|
||||
|
Reference in New Issue
Block a user