From d89e68d0628666540e69d2a1e2d95f098efa05aa Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 30 Oct 2022 13:01:39 +0100 Subject: [PATCH] fixing a condition check --- .../com/simplemobiletools/camera/activities/MainActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/camera/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/camera/activities/MainActivity.kt index e6389b1c..9b1a89fa 100644 --- a/app/src/main/kotlin/com/simplemobiletools/camera/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/camera/activities/MainActivity.kt @@ -389,7 +389,7 @@ class MainActivity : SimpleActivity(), PhotoProcessor.MediaSavedListener, Camera val gestureDetector = GestureDetector(this, object : GestureDetector.SimpleOnGestureListener() { override fun onFling(event1: MotionEvent, event2: MotionEvent, velocityX: Float, velocityY: Float): Boolean { // these can be null even if the docs say they cannot - if (event1 == null && event2 == null) { + if (event1 == null || event2 == null) { return true }