[Android] Restore repeat on playbackspeed + and - buttons

Geoffrey Métais git at videolan.org
Mon Jun 27 14:21:00 CEST 2016


vlc-android | branch: 2.0.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Jun 27 12:25:32 2016 +0200| [e62da6a2c8767837c643a2b2cbe75baf05ab08f6] | committer: Geoffrey Métais

Restore repeat on playbackspeed + and - buttons

(cherry picked from commit 378df9191a62d3ae9bf5386d45c079fc5e6d95be)

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

 vlc-android/src/org/videolan/vlc/gui/dialogs/PlaybackSpeedDialog.java | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/vlc-android/src/org/videolan/vlc/gui/dialogs/PlaybackSpeedDialog.java b/vlc-android/src/org/videolan/vlc/gui/dialogs/PlaybackSpeedDialog.java
index 5ebcebd..d826f0b 100644
--- a/vlc-android/src/org/videolan/vlc/gui/dialogs/PlaybackSpeedDialog.java
+++ b/vlc-android/src/org/videolan/vlc/gui/dialogs/PlaybackSpeedDialog.java
@@ -35,6 +35,7 @@ import android.widget.TextView;
 import org.videolan.vlc.PlaybackService;
 import org.videolan.vlc.R;
 import org.videolan.vlc.gui.PlaybackServiceFragment;
+import org.videolan.vlc.gui.helpers.OnRepeatListener;
 import org.videolan.vlc.gui.helpers.UiTools;
 import org.videolan.vlc.util.Strings;
 
@@ -85,6 +86,8 @@ public class PlaybackSpeedDialog extends DialogFragment implements PlaybackServi
         mPlaybackSpeedPlus.setOnClickListener(mSpeedUpListener);
         mPlaybackSpeedMinus.setOnClickListener(mSpeedDownListener);
         mSpeedValue.setOnClickListener(mResetListener);
+        mPlaybackSpeedMinus.setOnTouchListener(new OnRepeatListener(mSpeedDownListener));
+        mPlaybackSpeedPlus.setOnTouchListener(new OnRepeatListener(mSpeedUpListener));
 
         mTextColor = mSpeedValue.getCurrentTextColor();
 



More information about the Android mailing list