[Android] Stop button stops & exits audio playback on TV

Geoffrey Métais git at videolan.org
Mon Aug 10 12:25:34 CEST 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Aug  7 17:04:48 2015 +0200| [619de3def03e43c5fb2ae99bac960c36294acdf9] | committer: Geoffrey Métais

Stop button stops & exits audio playback on TV

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

 .../org/videolan/vlc/gui/tv/audioplayer/AudioPlayerActivity.java    |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/vlc-android/tv/src/org/videolan/vlc/gui/tv/audioplayer/AudioPlayerActivity.java b/vlc-android/tv/src/org/videolan/vlc/gui/tv/audioplayer/AudioPlayerActivity.java
index 8b8d5ab..0af0a2c 100644
--- a/vlc-android/tv/src/org/videolan/vlc/gui/tv/audioplayer/AudioPlayerActivity.java
+++ b/vlc-android/tv/src/org/videolan/vlc/gui/tv/audioplayer/AudioPlayerActivity.java
@@ -201,7 +201,8 @@ public class AudioPlayerActivity extends BaseTvActivity implements PlaybackServi
                 togglePlayPause();
                 return true;
             case KeyEvent.KEYCODE_MEDIA_STOP:
-                pause();
+                mService.stop();
+                finish();
                 return true;
             case KeyEvent.KEYCODE_F:
             case KeyEvent.KEYCODE_BUTTON_R1:



More information about the Android mailing list