Skip to content

Commit

Permalink
EditText child component
Browse files Browse the repository at this point in the history
  • Loading branch information
fabOnReact committed May 27, 2022
1 parent 9d72a70 commit 9d1bf23
Showing 1 changed file with 19 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1026,10 +1026,27 @@ public static CharSequence getTalkbackDescription(
// EditText
if (hasNodeText) {
// skipped status checks above for EditText
//
// password
if (node.isPassword()) {
talkbackSegments.append("password" + delimiter);
}

// description
talkbackSegments.append(nodeText);
return talkbackSegments;
talkbackSegments.append(nodeText + delimiter);

// role
if (roleDescription != null) {
String roleString = roleDescription.toString();
talkbackSegments.append(roleString + delimiter);
}

// disabled
if (disabled) {
talkbackSegments.append("disabled" + delimiter);
}

return removeFinalDelimiter(talkbackSegments);
}

// If there are child views and no contentDescription the text of all non-focusable children,
Expand Down

0 comments on commit 9d1bf23

Please sign in to comment.