[Android] Stop playback service on stop()

Geoffrey Métais git at videolan.org
Thu Nov 19 16:55:37 CET 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Nov 19 11:34:52 2015 +0100| [52dae00be8ff968c85bcbe2192339ed7f4c005ad] | committer: Geoffrey Métais

Stop playback service on stop()

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

 vlc-android/src/org/videolan/vlc/PlaybackService.java |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.java b/vlc-android/src/org/videolan/vlc/PlaybackService.java
index 2a5dce1..dac69b2 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -942,6 +942,8 @@ public class PlaybackService extends Service implements IVLCVout.Callback {
         executeUpdate();
         executeUpdateProgress();
         changeAudioFocus(false);
+
+        stopSelf();
     }
 
     private void determinePrevAndNextIndices() {



More information about the Android mailing list