From 0285c806647ad7e84302044587b56e9d1c918b85 Mon Sep 17 00:00:00 2001 From: Anna Galusza Date: Fri, 29 Jan 2016 17:32:19 -0800 Subject: [PATCH] UI fixes (back arrow, blue switch bar, append whether Talkback is on to summary), Talkback no longer disabled when preference is tapped, fixes SettingsPreferenceFragment to not check parent class to determine whether to show options menu. Change-Id: I3345e1a878f51b4387ca1bfe89855339617a94d6 --- res/values/attrs.xml | 1 + res/values/strings.xml | 8 ++- res/values/themes.xml | 9 ++- ...ccessibility_settings_for_setup_wizard.xml | 2 +- .../settings/SettingsPreferenceFragment.java | 14 ++++- .../AccessibilitySettingsForSetupWizard.java | 62 +++++++++---------- ...ibilitySettingsForSetupWizardActivity.java | 48 +++++++------- .../android/settings/widget/SwitchBar.java | 10 ++- 8 files changed, 91 insertions(+), 63 deletions(-) diff --git a/res/values/attrs.xml b/res/values/attrs.xml index b048b71e293..d94ff13d1be 100644 --- a/res/values/attrs.xml +++ b/res/values/attrs.xml @@ -109,6 +109,7 @@ + diff --git a/res/values/strings.xml b/res/values/strings.xml index bc2076a1d69..8623e855f3e 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -3745,8 +3745,10 @@ Adjust these settings now to assist you through the remainder of the set up process. You can adjust them any time in device settings. Services - - Screenreader tool primarily for people with blindness and low vision + + Talkback + + Screenreader tool primarily for people with blindness and low vision\n%1$s System @@ -3756,7 +3758,7 @@ Magnification gestures - Zoom in and out by triple-tapping the screen with one finger.\n\nWhile zoomed in, you can:\n
  • Pan: Drag two or more fingers across the screen.
  • \n
  • Adjust zoom level: Pinch two or more fingers together or spread them apart.
  • \n
  • Temporariliy magnify: Triple-tap, hold, and drag your finger to explore different parts of the screen. Lift your finger to return to our previous state.
\n\nTriple-tap for magnification works everywhere except the keyboard and navigation bar.
+ Zoom in and out by triple-tapping the screen with one finger.\n\nWhile zoomed in, you can:\n
  • Pan: Drag two or more fingers across the screen.
  • \n
  • Adjust zoom level: Pinch two or more fingers together or spread them apart.
  • \n
  • Temporariliy magnify: Triple-tap, hold, and drag your finger to explore different parts of the screen. Lift your finger to return to your previous state.
\n\nTriple-tap for magnification works everywhere except the keyboard and navigation bar.
Accessibility shortcut diff --git a/res/values/themes.xml b/res/values/themes.xml index da74348722b..1cae46c27b8 100644 --- a/res/values/themes.xml +++ b/res/values/themes.xml @@ -118,7 +118,11 @@ @color/material_blue_700 @color/material_blue_700 @style/PreferenceTheme - @style/ThemeOverlay.SwitchBar.Settings + @style/SetupWizardAccessibilitySwitchBarTheme + + + @color/switch_accent_color + @color/switchbar_background_color