[Android] Fix double tap timing issue

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


vlc-android | branch: master | Nicolas Pomepuy <nicolas.pomepuy at gmail.com> | Mon Dec 16 12:16:30 2019 +0100| [a3d7b4f20164c2cd53642efebf2c5e61b94dc20b] | committer: Nicolas Pomepuy

Fix double tap timing issue

Fixes #1118

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

 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