From 1b699bb814ac68b72098e09073dd2b6eeb11e569 Mon Sep 17 00:00:00 2001 From: arkon Date: Sat, 28 Aug 2021 17:24:42 -0400 Subject: [PATCH] Fix reader action sheet not opening --- .../tachiyomi/ui/reader/viewer/GestureDetectorWithLongTap.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/GestureDetectorWithLongTap.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/GestureDetectorWithLongTap.kt index 5d3f74ed3..e53ee8b72 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/GestureDetectorWithLongTap.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/GestureDetectorWithLongTap.kt @@ -6,7 +6,6 @@ import android.os.Looper import android.view.GestureDetector import android.view.MotionEvent import android.view.ViewConfiguration -import androidx.core.os.postDelayed import kotlin.math.abs /** @@ -44,7 +43,7 @@ open class GestureDetectorWithLongTap( if (ev.downTime - lastUp > doubleTapTime) { downX = ev.rawX downY = ev.rawY - handler.postDelayed(longTapTime) { longTapFn } + handler.postDelayed(longTapFn, longTapTime) } } MotionEvent.ACTION_MOVE -> {