Update talkback output in flipper accessibility utils for password fields
Summary: Talkback prepends "password" on focus for password editText outputs. Flipper's AccessibilityUtil should include this case. Reviewed By: blavalla Differential Revision: D16427345 fbshipit-source-id: 28afdd196973539618b73824671ef02128a4e9ab
This commit is contained in:
committed by
Facebook Github Bot
parent
66bed16333
commit
a646c4e2ff
@@ -494,11 +494,22 @@ public final class AccessibilityUtil {
|
|||||||
|
|
||||||
// EditText
|
// EditText
|
||||||
if (hasNodeText) {
|
if (hasNodeText) {
|
||||||
// skip status checks for EditText, but description, role, and disabled are included
|
// skipped status checks above for EditText
|
||||||
|
|
||||||
|
// password
|
||||||
|
if (node.isPassword()) {
|
||||||
|
talkbackSegments.append("password" + delimiter);
|
||||||
|
}
|
||||||
|
|
||||||
|
// description
|
||||||
talkbackSegments.append(nodeText + delimiter);
|
talkbackSegments.append(nodeText + delimiter);
|
||||||
|
|
||||||
|
// role
|
||||||
if (roleString.length() > 0) {
|
if (roleString.length() > 0) {
|
||||||
talkbackSegments.append(roleString + delimiter);
|
talkbackSegments.append(roleString + delimiter);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// disabled
|
||||||
if (disabled) {
|
if (disabled) {
|
||||||
talkbackSegments.append("disabled" + delimiter);
|
talkbackSegments.append("disabled" + delimiter);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user