[Android] Fix double tap timing issue

Nicolas Pomepuy git at videolan.org
Mon Dec 16 14:49:43 CET 2019


vlc-android | branch: 3.2.x | Nicolas Pomepuy <nicolas.pomepuy at gmail.com> | Mon Dec 16 11:16:30 2019 +0000| [33bc61dbebdda576496d5f592669a03db45accd1] | committer: Geoffrey Métais

Fix double tap timing issue

Fixes #1118


(cherry picked from commit a3d7b4f20164c2cd53642efebf2c5e61b94dc20b)

> https://code.videolan.org/videolan/vlc-android/commit/33bc61dbebdda576496d5f592669a03db45accd1
---

 vlc-android/src/org/videolan/vlc/gui/video/VideoTouchDelegate.kt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoTouchDelegate.kt b/vlc-android/src/org/videolan/vlc/gui/video/VideoTouchDelegate.kt
index f3003c893..d038e69ab 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoTouchDelegate.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoTouchDelegate.kt
@@ -201,7 +201,7 @@ class VideoTouchDelegate(private val player: VideoPlayerActivity,
 
                         handler.removeCallbacksAndMessages(null)
 
-                        if (now - touchDownMs > ViewConfiguration.getTapTimeout()) {
+                        if (now - touchDownMs > ViewConfiguration.getDoubleTapTimeout()) {
                             //it was not a tap
                             numberOfTaps = 0
                             lastTapTimeMs = 0



More information about the Android mailing list