Skip to content

Commit

Permalink
Fix sendAccessibilityEvent in Fabric
Browse files Browse the repository at this point in the history
Summary:
This logic got reversed.

Changelog: [internal]

Differential Revision: D26070642

fbshipit-source-id: 4c68e4af25d4907746a09e7a3afe175d88a25f95
  • Loading branch information
JoshuaGross authored and facebook-github-bot committed Jan 26, 2021
1 parent 9e16ac9 commit 335d9d8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ public void receiveCommand(
*/
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")
Expand Down

0 comments on commit 335d9d8

Please sign in to comment.