[Android] Audio player: stop also on header play-pause button long click

Adrien Maglo git at videolan.org
Sun Feb 2 21:16:22 CET 2014


vlc-ports/android | branch: master | Adrien Maglo <magsoft at videolan.org> | Sun Feb  2 21:15:55 2014 +0100| [217819880d2f8b0627aeb59b128a3273dfddaf0a] | committer: Adrien Maglo

Audio player: stop also on header play-pause button long click

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=217819880d2f8b0627aeb59b128a3273dfddaf0a
---

 vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.java |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.java
index 8d9dc7b..440b02d 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.java
@@ -166,6 +166,13 @@ public class AudioPlayer extends Fragment implements IAudioPlayer {
                 onPlayPauseClick(v);
             }
         });
+        mHeaderPlayPause.setOnLongClickListener(new View.OnLongClickListener() {
+            @Override
+            public boolean onLongClick(View v) {
+                onStopClick(v);
+                return true;
+            }
+        });
         mNext.setOnClickListener(new View.OnClickListener() {
             @Override
             public void onClick(View v) {



More information about the Android mailing list