[Android] Fix the initial double tap delay in the video player
Nicolas Pomepuy
git at videolan.org
Mon May 9 11:39:03 UTC 2022
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Fri May 6 13:30:05 2022 +0200| [c955d0b3cfee285e9024268bf6898a8ec911d482] | committer: Duncan McNamara
Fix the initial double tap delay in the video player
Fixes #2506
> https://code.videolan.org/videolan/vlc-android/commit/c955d0b3cfee285e9024268bf6898a8ec911d482
---
application/tools/src/main/java/org/videolan/tools/Settings.kt | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/application/tools/src/main/java/org/videolan/tools/Settings.kt b/application/tools/src/main/java/org/videolan/tools/Settings.kt
index dbbebcde0..21dc626cd 100644
--- a/application/tools/src/main/java/org/videolan/tools/Settings.kt
+++ b/application/tools/src/main/java/org/videolan/tools/Settings.kt
@@ -23,7 +23,7 @@ object Settings : SingletonHolder<SharedPreferences, Context>({ init(it.applicat
var showAudioTrackInfo = false
var videoJumpDelay = 10
var videoLongJumpDelay = 20
- var videoDoubleTapJumpDelay = 20
+ var videoDoubleTapJumpDelay = 10
var audioJumpDelay = 10
var audioLongJumpDelay = 20
private var audioControlsChangeListener: (() -> Unit)? = null
@@ -42,7 +42,7 @@ object Settings : SingletonHolder<SharedPreferences, Context>({ init(it.applicat
showAudioTrackInfo = prefs.getBoolean(KEY_SHOW_TRACK_INFO, false)
videoJumpDelay = prefs.getInt(KEY_VIDEO_JUMP_DELAY, 10)
videoLongJumpDelay = prefs.getInt(KEY_VIDEO_LONG_JUMP_DELAY, 20)
- videoDoubleTapJumpDelay = prefs.getInt(KEY_VIDEO_DOUBLE_TAP_JUMP_DELAY, 20)
+ videoDoubleTapJumpDelay = prefs.getInt(KEY_VIDEO_DOUBLE_TAP_JUMP_DELAY, 10)
audioJumpDelay = prefs.getInt(KEY_AUDIO_JUMP_DELAY, 10)
audioLongJumpDelay = prefs.getInt(KEY_AUDIO_LONG_JUMP_DELAY, 20)
return prefs
More information about the Android
mailing list