From 956428a49fb275709b5092dc90d1dcf2d4a6a321 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Mon, 21 Nov 2022 15:08:55 +0100 Subject: [PATCH] fix unresponsive controls --- .../com/github/libretube/ui/interfaces/DoubleTapListener.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/github/libretube/ui/interfaces/DoubleTapListener.kt b/app/src/main/java/com/github/libretube/ui/interfaces/DoubleTapListener.kt index 3bfd2803c..24fd9b1eb 100644 --- a/app/src/main/java/com/github/libretube/ui/interfaces/DoubleTapListener.kt +++ b/app/src/main/java/com/github/libretube/ui/interfaces/DoubleTapListener.kt @@ -38,7 +38,7 @@ abstract class DoubleTapListener : View.OnClickListener { } private fun recentDoubleClick(): Boolean { - return elapsedTime() - lastDoubleClick < MAX_TIME_DIFF + return elapsedTime() - lastDoubleClick < MAX_TIME_DIFF / 2 } fun elapsedTime() = SystemClock.elapsedRealtime()