diff --git a/app/src/main/java/com/orgzly/android/ui/notes/OnSwipeListener.kt b/app/src/main/java/com/orgzly/android/ui/notes/OnSwipeListener.kt index 6598ae798..86cc424fd 100644 --- a/app/src/main/java/com/orgzly/android/ui/notes/OnSwipeListener.kt +++ b/app/src/main/java/com/orgzly/android/ui/notes/OnSwipeListener.kt @@ -9,7 +9,7 @@ import kotlin.math.atan2 */ open class OnSwipeListener : SimpleOnGestureListener() { override fun onFling( - e1: MotionEvent, + e1: MotionEvent?, e2: MotionEvent, velocityX: Float, velocityY: Float @@ -33,7 +33,7 @@ open class OnSwipeListener : SimpleOnGestureListener() { // C => it's a DOWN swipe // D => it's a LEFT swipe - val x1 = e1.x + val x1 = e1!!.x val y1 = e1.y val x2 = e2.x val y2 = e2.y