[Android] Restore repeat on playbackspeed + and - buttons
Geoffrey Métais
git at videolan.org
Mon Jun 27 14:18:40 CEST 2016
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Jun 27 12:25:32 2016 +0200| [378df9191a62d3ae9bf5386d45c079fc5e6d95be] | committer: Geoffrey Métais
Restore repeat on playbackspeed + and - buttons
> https://code.videolan.org/videolan/vlc-android/commit/378df9191a62d3ae9bf5386d45c079fc5e6d95be
---
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