[Android] Remove an unwanted delay for showing the video player hub

Nicolas Pomepuy git at videolan.org
Wed Jul 24 15:18:13 CEST 2019


vlc-android | branch: master | Nicolas Pomepuy <nicolas.pomepuy at gmail.com> | Mon Jul 22 07:28:14 2019 +0200| [893ece4493e9cd149012f091344020100c6ce152] | committer: Geoffrey Métais

Remove an unwanted delay for showing the video player hub

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

 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 9ba1ce1db..e7c0bf065 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoTouchDelegate.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoTouchDelegate.kt
@@ -203,7 +203,7 @@ class VideoTouchDelegate(private val player: VideoPlayerActivity,
 
                         handler.postDelayed({
                             when (numberOfTaps) {
-                                1 -> player.handler.sendEmptyMessageDelayed(if (player.isShowing) VideoPlayerActivity.HIDE_INFO else VideoPlayerActivity.SHOW_INFO, 200)
+                                1 -> player.handler.sendEmptyMessage(if (player.isShowing) VideoPlayerActivity.HIDE_INFO else VideoPlayerActivity.SHOW_INFO)
                             }
                         }, ViewConfiguration.getDoubleTapTimeout().toLong())
                     }



More information about the Android mailing list