From d5c26eef64de98a89fe19f38fe5f06ec0139eb3c Mon Sep 17 00:00:00 2001 From: Anna Galusza Date: Mon, 8 Feb 2016 09:57:24 -0800 Subject: [PATCH] Update strings for A11y SUW. Change-Id: I1cd15ca81ffd258edf683d69a50261a403f97d42 --- res/values/strings.xml | 22 ++++++----- ...ccessibility_settings_for_setup_wizard.xml | 24 ++++++------ .../AccessibilitySettingsForSetupWizard.java | 39 ------------------- 3 files changed, 26 insertions(+), 59 deletions(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index ec4d220888d..21796c77583 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -148,7 +148,7 @@ Erase SD card - Make text on screen smaller or larger. + Make the text on screen smaller or larger. Small @@ -2109,6 +2109,8 @@ Wake screen when you pick up device or receive notifications Font size + + Make text larger or smaller %1$s @@ -3747,13 +3749,13 @@ Vision Settings - Adjust these settings now to assist you through the remainder of the set up process. You can adjust them any time in device settings. + You can customize this device to fit your needs. These accessibility features can be changed later in Settings. Services Talkback - Screenreader tool primarily for people with blindness and low vision\n%1$s + Screen reader primarily for people with blindness and low vision System @@ -3761,9 +3763,11 @@ Captions - Magnification gestures + Magnification gesture + + Tap 3 times to zoom - Zoom in and out by triple-tapping the screen with one finger.\n\nWhile zoomed in, you can:\n\n\nTriple-tap for magnification works everywhere except the keyboard and navigation bar. + To zoom in and out tap the screen 3 times with one finger.\n\nWhile zoomed in, you can:\n\n\nTo zoom temporarily, tap 3 times and hold on the last tap. While holding your finger down, drag to move around the screen. Lift your finger to zoom back out.\n\nNote: Magnification gesture works everywhere except the keyboard and navigation bar. Accessibility shortcut @@ -3774,8 +3778,6 @@ When this feature is turned on, you can quickly activate accessibility features in two steps:\n\nStep 1: Press and hold the power button until you hear a sound or feel a vibration.\n\nStep 2: Tap & hold two fingers until you hear audio confirmation.\n\nIf the device has multiple users, using this shortcut on the lock screen temporarily enables accessibility until the device is unlocked. High contrast text - - Screen magnification Auto update screen magnification @@ -6813,11 +6815,13 @@ Quickly open camera without unlocking your screen - Magnify display + Display size + + Make items on screen larger or smaller display density, screen zoom, scale, scaling - Make all items on screen smaller or larger. Some apps on your home screen may change position after changing this setting. + Make the items on your screen smaller or larger. Some apps on your screen may change position. Preview diff --git a/res/xml/accessibility_settings_for_setup_wizard.xml b/res/xml/accessibility_settings_for_setup_wizard.xml index 0e487b82fca..49a840b6f64 100644 --- a/res/xml/accessibility_settings_for_setup_wizard.xml +++ b/res/xml/accessibility_settings_for_setup_wizard.xml @@ -23,26 +23,28 @@ android:title="@string/vision_settings_description" android:layout="@layout/preference_multiline_title" /> - - - - + android:summary="@string/accessibility_screen_magnification_short_summary" /> + + + + diff --git a/src/com/android/settings/accessibility/AccessibilitySettingsForSetupWizard.java b/src/com/android/settings/accessibility/AccessibilitySettingsForSetupWizard.java index 22ea1f14a50..26f5f39afd4 100644 --- a/src/com/android/settings/accessibility/AccessibilitySettingsForSetupWizard.java +++ b/src/com/android/settings/accessibility/AccessibilitySettingsForSetupWizard.java @@ -48,7 +48,6 @@ public class AccessibilitySettingsForSetupWizard extends SettingsPreferenceFragm // Preference controls. private Preference mDisplayMagnificationPreference; - private Preference mFontSizePreference; private Preference mTalkbackPreference; @Override @@ -62,7 +61,6 @@ public class AccessibilitySettingsForSetupWizard extends SettingsPreferenceFragm addPreferencesFromResource(R.xml.accessibility_settings_for_setup_wizard); mDisplayMagnificationPreference = findPreference(DISPLAY_MAGNIFICATION_PREFERENCE); - mFontSizePreference = findPreference(FONT_SIZE_PREFERENCE); mTalkbackPreference = findPreference(TALKBACK_PREFERENCE); } @@ -72,12 +70,6 @@ public class AccessibilitySettingsForSetupWizard extends SettingsPreferenceFragm setHasOptionsMenu(false); } - @Override - public void onResume() { - super.onResume(); - updatePreferences(); - } - @Override public boolean onPreferenceChange(Preference preference, Object newValue) { return false; @@ -161,35 +153,4 @@ public class AccessibilitySettingsForSetupWizard extends SettingsPreferenceFragm return super.onPreferenceTreeClick(preference); } - - private void updatePreferences() { - updateFeatureSummary(Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_ENABLED, - mDisplayMagnificationPreference); - updateFontSizeSummary(mFontSizePreference); - updateTalkbackSummary(); - } - - private void updateFeatureSummary(String prefKey, Preference pref) { - final boolean enabled = Settings.Secure.getInt(getContentResolver(), prefKey, 0) == 1; - pref.setSummary(enabled ? R.string.accessibility_feature_state_on - : R.string.accessibility_feature_state_off); - } - - private void updateFontSizeSummary(Preference pref) { - final Resources res = getContext().getResources(); - final String[] entries = res.getStringArray(R.array.entries_font_size); - final String[] strEntryValues = res.getStringArray(R.array.entryvalues_font_size); - final int index = ToggleFontSizePreferenceFragment.fontSizeValueToIndex( - res.getConfiguration().fontScale, strEntryValues); - pref.setSummary(entries[index]); - } - - private void updateTalkbackSummary() { - final boolean enabled = Settings.Secure.getInt(getContentResolver(), - Settings.Secure.ACCESSIBILITY_ENABLED, 0) == 1; - final String enabledText = (enabled - ? getString(R.string.accessibility_feature_state_on) - : getString(R.string.accessibility_feature_state_off)); - mTalkbackPreference.setSummary(getString(R.string.talkback_summary, enabledText)); - } }