From 44387d8a627e1f06cac7540e6557a07772d85a4e Mon Sep 17 00:00:00 2001 From: Udam Saini Date: Thu, 18 Feb 2016 13:51:01 -0800 Subject: [PATCH] Fixes talkback accessibility on learn more link. Uses the LinkTextView, which handles partial url talkback in textviews for accessibility. Also cleans up some string spacing and changed an instance of Tap & hold to Touch and hold for clarity. bug:27171497 bug:26562712 Change-Id: I059a782a952ac962537c374959ee740962d6016f --- res/layout/suw_item_link_description.xml | 71 ++++++++++++++++++++++ res/values/strings.xml | 6 +- res/xml/fingerprint_enroll_introduction_items.xml | 9 +-- .../fingerprint/FingerprintEnrollIntroduction.java | 4 +- 4 files changed, 77 insertions(+), 13 deletions(-) create mode 100644 res/layout/suw_item_link_description.xml diff --git a/res/layout/suw_item_link_description.xml b/res/layout/suw_item_link_description.xml new file mode 100644 index 0000000000..5396de1e6b --- /dev/null +++ b/res/layout/suw_item_link_description.xml @@ -0,0 +1,71 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/res/values/strings.xml b/res/values/strings.xml index 9644171fbe..7d2775281d 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -740,9 +740,7 @@ Unlock with fingerprint - Just touch the fingerprint sensor to unlock your phone, authorize purchases, or sign in to apps. \n\n Be careful whose fingerprints you add - any fingerprints added will be able to do these things. - - Note: Your fingerprint may be less secure than a strong pattern or PIN. Learn more + Just touch the fingerprint sensor to unlock your phone, authorize purchases, or sign in to apps. Be careful whose fingerprints you add. Even one added print can do any of these things.\n\nNote: Your fingerprint may be less secure than a strong pattern or PIN. Learn more Cancel @@ -3825,7 +3823,7 @@ Off - 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. + 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: Touch and 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 diff --git a/res/xml/fingerprint_enroll_introduction_items.xml b/res/xml/fingerprint_enroll_introduction_items.xml index 336884359c..4cb18a6f40 100644 --- a/res/xml/fingerprint_enroll_introduction_items.xml +++ b/res/xml/fingerprint_enroll_introduction_items.xml @@ -19,13 +19,8 @@ - - + android:id="@+id/fingerprint_introduction_message" + android:layout="@layout/suw_item_link_description"/>