--- /tmp/tmp-status-mobile-65370082b/tmp.ZT96tMu4Rb/ModalContentLayout.kt 2024-09-16 22:51:02.779796000 +0530 +++ ./node_modules/react-native-navigation/lib/android/app/src/reactNative71/java/com/reactnativenavigation/react/modal/ModalContentLayout.kt 2024-09-16 22:52:23.327090657 +0530 @@ -49,17 +49,17 @@ updateFirstChildView() } } - override fun onChildStartedNativeGesture(child: View, androidEvent: MotionEvent?) { + override fun onChildStartedNativeGesture(child: View, androidEvent: MotionEvent) { mJSTouchDispatcher.onChildStartedNativeGesture(androidEvent, this.getEventDispatcher()) } - override fun onChildStartedNativeGesture(androidEvent: MotionEvent?) { + override fun onChildStartedNativeGesture(androidEvent: MotionEvent) { mJSTouchDispatcher.onChildStartedNativeGesture(androidEvent, this.getEventDispatcher()) } - override fun onChildEndedNativeGesture(child: View, androidEvent: MotionEvent?) { + override fun onChildEndedNativeGesture(child: View, androidEvent: MotionEvent) { mJSTouchDispatcher.onChildEndedNativeGesture(androidEvent, this.getEventDispatcher()) } override fun requestDisallowInterceptTouchEvent(disallowIntercept: Boolean) {} - private fun getEventDispatcher(): EventDispatcher? { + private fun getEventDispatcher(): EventDispatcher { val reactContext: ReactContext = this.getReactContext() return reactContext.getNativeModule(UIManagerModule::class.java)!!.eventDispatcher } @@ -73,15 +73,15 @@ return this.context as ReactContext } - override fun onInterceptTouchEvent(event: MotionEvent?): Boolean { + override fun onInterceptTouchEvent(event: MotionEvent): Boolean { mJSTouchDispatcher.handleTouchEvent(event, getEventDispatcher()) return super.onInterceptTouchEvent(event) } - override fun onTouchEvent(event: MotionEvent?): Boolean { + override fun onTouchEvent(event: MotionEvent): Boolean { mJSTouchDispatcher.handleTouchEvent(event, getEventDispatcher()) super.onTouchEvent(event) return true } -} \ No newline at end of file +}