瀏覽代碼

Fix reader action sheet not opening

arkon 3 年之前
父節點
當前提交
1b699bb814
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/GestureDetectorWithLongTap.kt

+ 1 - 2
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 -> {