OSDN Git Service

[Lock screen] Add a11y string for password
authorRohan Shah <shahrk@google.com>
Fri, 4 May 2018 22:54:19 +0000 (15:54 -0700)
committerRohan Shah <shahrk@google.com>
Sat, 5 May 2018 00:53:27 +0000 (17:53 -0700)
Added "device password" a11y string to be consistent with other
callouts such as for the PIN.

Test: Checked talkback string
Fixes: 77605737
Change-Id: Ie27eba47486ecb494693e8f4a9458f398dbabd1c

packages/SystemUI/res-keyguard/layout/keyguard_password_view.xml
packages/SystemUI/res-keyguard/values/strings.xml

index 9fdb00e..11bd98f 100644 (file)
@@ -49,6 +49,7 @@
          <EditText android:id="@+id/passwordEntry"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
+             android:contentDescription="@string/keyguard_accessibility_password"
              android:gravity="center_horizontal"
              android:singleLine="true"
              android:textStyle="normal"
index ed63089..513d848 100644 (file)
 
     <!-- Accessibility description of the PIN password view. [CHAR_LIMIT=none] -->
     <string name="keyguard_accessibility_pin_area">PIN area</string>
+    <!-- Accessibility description of the normal password view. [CHAR_LIMIT=none] -->
+    <string name="keyguard_accessibility_password">Device password</string>
+
     <!-- Accessibility description of the SIM PIN password view. [CHAR_LIMIT=none] -->
     <string name="keyguard_accessibility_sim_pin_area">SIM PIN area</string>
     <!-- Accessibility description of the SIM PUK password view. [CHAR_LIMIT=none] -->