mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2025-02-09 16:08:41 +01:00
fixing a condition check
This commit is contained in:
parent
c7d88f3a33
commit
d89e68d062
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user