mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix sendAccessibilityEvent in Fabric
Summary: This logic got reversed. Changelog: [internal] Differential Revision: D26070642 fbshipit-source-id: 4c68e4af25d4907746a09e7a3afe175d88a25f95
This commit is contained in:
committed by
Facebook GitHub Bot
parent
9e16ac93ed
commit
335d9d88e1
@@ -252,7 +252,7 @@ public class MountingManager {
|
||||
*/
|
||||
public void sendAccessibilityEvent(int surfaceId, int reactTag, int eventType) {
|
||||
UiThreadUtil.assertOnUiThread();
|
||||
if (surfaceId != -1) {
|
||||
if (surfaceId == View.NO_ID) {
|
||||
getSurfaceManagerForViewEnforced(reactTag).sendAccessibilityEvent(reactTag, eventType);
|
||||
} else {
|
||||
getSurfaceManagerEnforced(surfaceId, "sendAccessibilityEvent")
|
||||
|
||||
Reference in New Issue
Block a user