[Android] Do not end media session when service is killed

Geoffrey Métais git at videolan.org
Wed Nov 22 16:08:31 CET 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Nov 22 16:04:49 2017 +0100| [dcd7828e81e45ff399495a33ae6f098f4b57880b] | committer: Geoffrey Métais

Do not end media session when service is killed

> https://code.videolan.org/videolan/vlc-android/commit/dcd7828e81e45ff399495a33ae6f098f4b57880b
---

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

diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.java b/vlc-android/src/org/videolan/vlc/PlaybackService.java
index 931554b9a..d38ddbed4 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -357,7 +357,6 @@ public class PlaybackService extends MediaBrowserServiceCompat implements IVLCVo
         super.onDestroy();
         stop(true);
         if (mMediaSession != null) {
-            mMediaSession.setActive(false);
             mMediaSession.release();
             mMediaSession = null;
         }



More information about the Android mailing list