From f32950a96d7111b992962d61da0148e0f31d76f7 Mon Sep 17 00:00:00 2001 From: David Vacca Date: Mon, 12 Feb 2024 19:20:05 -0800 Subject: [PATCH] Update nullability for usages of handleTouchEvent (#42961) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/42961 Update nullability for usages of handleTouchEvent changelog: [internal] internal Reviewed By: cortinico Differential Revision: D53652922 fbshipit-source-id: ed26bffcbc3ddcfb82605e9e5439f9a9516459fc --- .../java/com/facebook/react/uimanager/JSTouchDispatcher.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/JSTouchDispatcher.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/JSTouchDispatcher.java index 275fe49d7639e4..8f931f4254368c 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/JSTouchDispatcher.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/JSTouchDispatcher.java @@ -59,8 +59,9 @@ public void onChildEndedNativeGesture(MotionEvent androidEvent, EventDispatcher * Main catalyst view is responsible for collecting and sending touch events to JS. This method * reacts for an incoming android native touch events ({@link MotionEvent}) and calls into {@link * com.facebook.react.uimanager.events.EventDispatcher} when appropriate. It uses {@link - * com.facebook.react.uimanager.TouchTargetHelper#findTouchTargetView} helper method for figuring - * out a react view ID in the case of ACTION_DOWN event (when the gesture starts). + * com.facebook.react.uimanager.TouchTargetHelper#findTargetTagAndCoordinatesForTouch} helper + * method for figuring out a react view ID in the case of ACTION_DOWN event (when the gesture + * starts). */ public void handleTouchEvent(MotionEvent ev, EventDispatcher eventDispatcher) { int action = ev.getAction() & MotionEvent.ACTION_MASK;