diff --git a/integrations/java/app/revanced/integrations/swipecontrols/controller/gesture/ClassicSwipeController.kt b/integrations/java/app/revanced/integrations/swipecontrols/controller/gesture/ClassicSwipeController.kt index 7e2185783..52f937d6a 100644 --- a/integrations/java/app/revanced/integrations/swipecontrols/controller/gesture/ClassicSwipeController.kt +++ b/integrations/java/app/revanced/integrations/swipecontrols/controller/gesture/ClassicSwipeController.kt @@ -70,7 +70,7 @@ class ClassicSwipeController( return false } - override fun onDoubleTapEvent(motionEvent: MotionEvent?): Boolean { + override fun onDoubleTapEvent(motionEvent: MotionEvent): Boolean { MotionEvent.obtain(motionEvent).let { controller.dispatchDownstreamTouchEvent(it) it.recycle() @@ -79,7 +79,7 @@ class ClassicSwipeController( return super.onDoubleTapEvent(motionEvent) } - override fun onLongPress(motionEvent: MotionEvent?) { + override fun onLongPress(motionEvent: MotionEvent) { MotionEvent.obtain(motionEvent).let { controller.dispatchDownstreamTouchEvent(it) it.recycle()