OSDN Git Service

Added contentDescription for fingerprint on the confirmCredential screen
authorSelim Cinek <cinek@google.com>
Tue, 23 Jun 2015 21:48:48 +0000 (17:48 -0400)
committerSelim Cinek <cinek@google.com>
Tue, 23 Jun 2015 21:48:48 +0000 (17:48 -0400)
Bug: 21850269
Change-Id: Ia3720451a74e69e119b60121d7906274c522f70a

res/layout/confirm_lock_password_base.xml
res/layout/confirm_lock_pattern_base.xml
res/values/strings.xml

index 069708f..b20131a 100644 (file)
@@ -85,6 +85,7 @@
         android:layout_height="wrap_content"
         android:layout_alignParentBottom="true"
         android:layout_marginBottom="24dp"
+        android:contentDescription="@string/confirm_fingerprint_icon_content_description"
         android:visibility="gone"/>
 
 </com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient>
\ No newline at end of file
index cd2cbef..a69d297 100644 (file)
@@ -88,6 +88,7 @@
             android:layout_height="wrap_content"
             android:layout_alignParentBottom="true"
             android:layout_marginBottom="24dp"
+            android:contentDescription="@string/confirm_fingerprint_icon_content_description"
             android:visibility="gone"/>
     </LinearLayout>
 
index 120c701..667d07f 100644 (file)
     <!-- Text shown when "Add fingerprint" button is disabled -->
     <string name="fingerprint_add_max">You can add up to <xliff:g id="count" example="5">%d</xliff:g> fingerprints</string>
 
+    <!-- Content description for the fingerprint icon when the user is prompted to enter his credentials. Not shown on the screen. [CHAR LIMIT=NONE] -->
+    <string name="confirm_fingerprint_icon_content_description">Use your fingerprint to continue.</string>
+
     <!-- Title of the preferences category for preference items to control encryption -->
     <string name="crypt_keeper_settings_title">Encryption</string>