Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix RN accessibility links with UIAutomator
Summary: D34687371 (7b5b114) unfortunately caused a regression with UIAutomator, where it would no longer be able to see any Views that have the ReactAccessibilityDelegate attached to them. This was because the delegate was changed to extend ExploreByTouchHelper which implements its own default AccessibilityNodeProvider, which does nothing in the case of a view without any virtual children. This diff simply *only* uses the node provider if the view in question has virtual children, otherwise defaulting to the standard behavior from the View class. Changelog: [Android][Fixed] - Fixed issue where any node with an AccessibilityDelegate set (which was any node with any accessibility propoerty), was using ExploreByTouchHelper's built in AccessibilityNodeProvider, and not properly populating their AccessibilityNodeInfo's, leading to focus issues and issues with automated test services like UIAutomator. Reviewed By: kacieb Differential Revision: D35601320 fbshipit-source-id: 92e009c6e8b4ddcab860e2c91e6bd1a8f95359f0
- Loading branch information