Display AccessibilityNodeInfoCompat.isScreenReaderFocusable() property (fixes #1756) (#2925)

Summary:
Add screenreader-focusable property to AccessibilityUtil#getAccessibilityNodeInfoData

The accessibility hierarchy displays various AccessibilityNodeInfo properties. However, it was missing the screenreader-focusable property.

## Changelog
Display screenreader-focusable property in the accessibility hierarchy.

Pull Request resolved: https://github.com/facebook/flipper/pull/2925

Test Plan: Test suite passes and code lints.

Reviewed By: mweststrate

Differential Revision: D31312381

Pulled By: passy

fbshipit-source-id: c5044cef6aabe5bd2d2ce5e315f5aafd6990a137
This commit is contained in:
kodak
2021-10-01 08:57:13 -07:00
committed by Facebook GitHub Bot
parent 9ce424adf7
commit b43dde8a6a

View File

@@ -603,6 +603,7 @@ public final class AccessibilityUtil {
.put("long-clickable", nodeInfo.isLongClickable())
.put("multiline", nodeInfo.isMultiLine())
.put("password", nodeInfo.isPassword())
.put("screenreader-focusable", nodeInfo.isScreenReaderFocusable())
.put("scrollable", nodeInfo.isScrollable())
.put("selected", nodeInfo.isSelected())
.put("text", nodeInfo.getText())