Skip to content

Commit

Permalink
Fix crash in touch location get first object
Browse files Browse the repository at this point in the history
  • Loading branch information
levinli303 committed Mar 31, 2020
1 parent a0b7291 commit 4d42434
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class CelestiaView(context: Context) : GLSurfaceView(context), Choreographer.Fra
touchActive = false
} else if (touchLocations.size == 1) {
// Canceled convert to one finger tap
val loc = touchLocations[0]!!
val loc = touchLocations.map { it.value }[0]
Log.d(TAG, "One finger tap action")
val point = loc.point
queueEvent {
Expand Down

0 comments on commit 4d42434

Please sign in to comment.