Skip to content

Commit 7428271

Browse files
KevinGVargasfacebook-github-bot
authored andcommitted
Remove code that would cause accessibility header role to be spoken twice (#27496)
Summary: The header role is being said twice in android. Stopped that from happening. ## Changelog [General] [Added] - removed code that would cause accessibility header role to be spoken twice Pull Request resolved: #27496 Test Plan: Test plan is testing in RNTester making sure the examples work ## Note: generatedComponentApiDocs.js was modified by lint commands. I can submit a PR without it if preferred. Differential Revision: D18973520 Pulled By: hramos fbshipit-source-id: 9a7cc2d3fac1d0fc79dedb443d5ca365026b3b15
1 parent 5ddf00e commit 7428271

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactAccessibilityDelegate.java

-1
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,6 @@ public static void setRole(
367367
} else if (role.equals(AccessibilityRole.SUMMARY)) {
368368
nodeInfo.setRoleDescription(context.getString(R.string.summary_description));
369369
} else if (role.equals(AccessibilityRole.HEADER)) {
370-
nodeInfo.setRoleDescription(context.getString(R.string.header_description));
371370
final AccessibilityNodeInfoCompat.CollectionItemInfoCompat itemInfo =
372371
AccessibilityNodeInfoCompat.CollectionItemInfoCompat.obtain(0, 1, 0, 1, true);
373372
nodeInfo.setCollectionItemInfo(itemInfo);

0 commit comments

Comments
 (0)