[Android] Use OnRepeatListener on delay buttons
Geoffrey Métais
git at videolan.org
Thu Apr 30 17:02:29 CEST 2015
vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Apr 30 17:00:16 2015 +0200| [5d02b94d774e7c61a895ff0915d66f00e60af23a] | committer: Geoffrey Métais
Use OnRepeatListener on delay buttons
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=5d02b94d774e7c61a895ff0915d66f00e60af23a
---
vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
index b423896..e8eff38 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -115,6 +115,7 @@ import org.videolan.vlc.util.Strings;
import org.videolan.vlc.util.Util;
import org.videolan.vlc.util.VLCInstance;
import org.videolan.vlc.util.WeakHandler;
+import org.videolan.vlc.widget.OnRepeatListener;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
@@ -1101,6 +1102,8 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVideoPlay
showOverlayTimeout(OVERLAY_INFINITE);
mDelayMinus.setOnClickListener(mAudioDelayListener);
mDelayPlus.setOnClickListener(mAudioDelayListener);
+ mDelayMinus.setOnTouchListener(new OnRepeatListener(mAudioDelayListener));
+ mDelayPlus.setOnTouchListener(new OnRepeatListener(mAudioDelayListener));
mDelayMinus.setVisibility(View.VISIBLE);
mDelayPlus.setVisibility(View.VISIBLE);
initDelayInfo();
More information about the Android
mailing list