[Android] Speed up long press action on +/- buttons

Geoffrey Métais git at videolan.org
Wed Jun 8 09:55:53 CEST 2016


vlc-android | branch: 2.0.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Jun  7 15:21:07 2016 +0200| [1e42c8a4b935f26b105d2715596dd666621f9077] | committer: Geoffrey Métais

Speed up long press action on +/- buttons

(cherry picked from commit 999534103306dc0333d6ac72d739a456c4123fac)

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

 vlc-android/src/org/videolan/vlc/gui/helpers/OnRepeatListener.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/helpers/OnRepeatListener.java b/vlc-android/src/org/videolan/vlc/gui/helpers/OnRepeatListener.java
index 3b451ab..f83ec25 100644
--- a/vlc-android/src/org/videolan/vlc/gui/helpers/OnRepeatListener.java
+++ b/vlc-android/src/org/videolan/vlc/gui/helpers/OnRepeatListener.java
@@ -35,8 +35,8 @@ public class OnRepeatListener implements View.OnTouchListener {
     private static final int ACTION_ONCLICK = 0;
 
     //Default values in milliseconds
-    private static final int DEFAULT_INITIAL_DELAY = 1000;
-    private static final int DEFAULT_NORMAL_DELAY = 300;
+    private static final int DEFAULT_INITIAL_DELAY = 500;
+    private static final int DEFAULT_NORMAL_DELAY = 150;
 
     private int mInitialInterval;
     private final int mNormalInterval;



More information about the Android mailing list