Skip to content

Commit

Permalink
moving getRoleDescription to another branch
Browse files Browse the repository at this point in the history
  • Loading branch information
fabOnReact committed Jun 1, 2022
1 parent 2dc702e commit 8622c13
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,6 @@ public static CharSequence getTalkbackDescription(

final boolean hasNodeText = !TextUtils.isEmpty(nodeText);
final boolean isEditText = view instanceof EditText;
CharSequence roleDescription = node.getRoleDescription();
// The original flipper implementation would check isActionableForAccessibility
// The check was removed for this reason https://bit.ly/3wPnmPE
boolean disabled = !node.isEnabled();
Expand All @@ -1012,11 +1011,6 @@ public static CharSequence getTalkbackDescription(

// next add content description
talkbackSegments.append(contentDescription + delimiter);
// then role
if (roleDescription != null) {
String roleString = roleDescription.toString();
talkbackSegments.append(roleString + delimiter);
}

// lastly disabled is appended if applicable
if (disabled) {
Expand All @@ -1038,12 +1032,6 @@ public static CharSequence getTalkbackDescription(
// description
talkbackSegments.append(nodeText + delimiter);

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

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

0 comments on commit 8622c13

Please sign in to comment.