Skip to content

Commit

Permalink
Try quick fix to handle changed interface
Browse files Browse the repository at this point in the history
  • Loading branch information
amberin committed Oct 24, 2024
1 parent 5297788 commit e972c94
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit e972c94

Please sign in to comment.