diff options
author | Svetoslav Ganov <svetoslavganov@google.com> | 2011-12-05 12:54:53 -0800 |
---|---|---|
committer | Svetoslav Ganov <svetoslavganov@google.com> | 2011-12-05 13:09:27 -0800 |
commit | 7e8dcbea65356807ca052ee5e98c9b25b7f0b1ca (patch) | |
tree | 4646d9f5e75e68cafbb95a03dbd182272f758cb6 /res | |
parent | bbcc300c87d702aede31de311f88571b0caf9113 (diff) | |
download | packages_apps_Settings-7e8dcbea65356807ca052ee5e98c9b25b7f0b1ca.zip packages_apps_Settings-7e8dcbea65356807ca052ee5e98c9b25b7f0b1ca.tar.gz packages_apps_Settings-7e8dcbea65356807ca052ee5e98c9b25b7f0b1ca.tar.bz2 |
Adding a system preference whether to speak passwords in accessibility mode (settings).
By default we do not speak passwords if the user has no headset. However,
many users find this too restrictive and would like a way to enable
password announcement. While we cannot speak the passwords all the time
,to avoid leaking them, we expose a preference so each user can choose
the option that best works for him/her.
bug:5712607
Change-Id: I1a6e95c392c18dc8d7406b1cef49705756b31254
Diffstat (limited to 'res')
-rw-r--r-- | res/values/strings.xml | 2 | ||||
-rw-r--r-- | res/xml/accessibility_settings.xml | 12 |
2 files changed, 11 insertions, 3 deletions
diff --git a/res/values/strings.xml b/res/values/strings.xml index bca1d09..aa3b94f 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -2760,6 +2760,8 @@ found in the list of installed apps.</string> <string name="accessibility_toggle_large_text_title">Large text</string> <!-- Title for the accessibility preference to power button to end a call. [CHAR LIMIT=35] --> <string name="accessibility_power_button_ends_call_title">Power button ends call</string> + <!-- Title for the accessibility preference to speak passwords. [CHAR LIMIT=35] --> + <string name="accessibility_speak_password_title">Speak passwords</string> <!-- Title for accessibility preference to enable touch exploration mode. [CHAR LIMIT=35] --> <string name="accessibility_touch_exploration_title">Explore by touch</string> <!-- Summary for accessibility of the touch exploration mode. [CHAR LIMIT=NONE] --> diff --git a/res/xml/accessibility_settings.xml b/res/xml/accessibility_settings.xml index 45f1dce..90bdfd9 100644 --- a/res/xml/accessibility_settings.xml +++ b/res/xml/accessibility_settings.xml @@ -45,11 +45,17 @@ android:persistent="false" android:order="3"/> + <CheckBoxPreference + android:key="toggle_speak_password_preference" + android:title="@string/accessibility_speak_password_title" + android:persistent="false" + android:order="4"/> + <PreferenceScreen android:key="toggle_touch_exploration_preference" android:title="@string/accessibility_touch_exploration_title" android:fragment="com.android.settings.AccessibilitySettings$ToggleTouchExplorationFragment" - android:order="4" > + android:order="5" > <extra android:name="title" android:value="@string/accessibility_touch_exploration_title" /> <extra android:name="summary" android:value="@string/accessibility_touch_exploration_summary" /> <extra android:name="enable_warning_title" android:value="@android:string/dialog_alert_title" /> @@ -63,7 +69,7 @@ android:entries="@array/long_press_timeout_selector_titles" android:entryValues="@array/long_press_timeout_selector_values" android:persistent="false" - android:order="5"/> + android:order="6"/> <com.android.settings.AccessibilityEnableScriptInjectionPreference android:key="toggle_script_injection_preference" @@ -74,7 +80,7 @@ android:positiveButtonText="@string/accessibility_script_injection_button_allow" android:negativeButtonText="@string/accessibility_script_injection_button_disallow" android:persistent="false" - android:order="6"/> + android:order="7"/> </PreferenceCategory> |