diff --git a/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java b/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java index acb3f2704..007480cd4 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java +++ b/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java @@ -60,7 +60,6 @@ public class ReactRootView extends SizeMonitoringFrameLayout implements RootView private @Nullable String mJSModuleName; private @Nullable Bundle mLaunchOptions; private @Nullable CustomGlobalLayoutListener mCustomGlobalLayoutListener; - private @Nullable OnGenericMotionListener mOnGenericMotionListener; private int mRootViewTag; private boolean mWasMeasured = false; private boolean mIsAttachedToInstance = false; @@ -110,10 +109,6 @@ public class ReactRootView extends SizeMonitoringFrameLayout implements RootView EventDispatcher eventDispatcher = reactContext.getNativeModule(UIManagerModule.class) .getEventDispatcher(); mJSTouchDispatcher.onChildStartedNativeGesture(androidEvent, eventDispatcher); - // Hook for containers or fragments to get informed of the on touch events to perform actions. - if (mOnGenericMotionListener != null) { - mOnGenericMotionListener.onGenericMotion(this, androidEvent); - } } @Override @@ -131,10 +126,6 @@ public class ReactRootView extends SizeMonitoringFrameLayout implements RootView return true; } - public void setOnGenericMotionListener(OnGenericMotionListener listener) { - mOnGenericMotionListener = listener; - } - private void dispatchJSTouchEvent(MotionEvent event) { if (mReactInstanceManager == null || !mIsAttachedToInstance || mReactInstanceManager.getCurrentReactContext() == null) {