Skip to content
Permalink
Browse files
Remove code that would cause accessibility header role to be spoken t…
…wice (#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
  • Loading branch information
KevinGVargas authored and facebook-github-bot committed Dec 19, 2019
1 parent 5ddf00e commit 7428271995adf21b2b31b188ed83b785ce1e9189
Showing 1 changed file with 0 additions and 1 deletion.
@@ -367,7 +367,6 @@ public static void setRole(
} else if (role.equals(AccessibilityRole.SUMMARY)) {
nodeInfo.setRoleDescription(context.getString(R.string.summary_description));
} else if (role.equals(AccessibilityRole.HEADER)) {
nodeInfo.setRoleDescription(context.getString(R.string.header_description));
final AccessibilityNodeInfoCompat.CollectionItemInfoCompat itemInfo =
AccessibilityNodeInfoCompat.CollectionItemInfoCompat.obtain(0, 1, 0, 1, true);
nodeInfo.setCollectionItemInfo(itemInfo);

0 comments on commit 7428271

Please sign in to comment.