[Android] Do not clear mediasession on stopPlayback
Geoffrey Métais
git at videolan.org
Mon Nov 14 18:28:02 CET 2016
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Nov 14 17:46:16 2016 +0100| [2cd1244b969fe19da02a5008c9ea8bfe43072e61] | committer: Geoffrey Métais
Do not clear mediasession on stopPlayback
Leads to crash on mediaSession next init
> https://code.videolan.org/videolan/vlc-android/commit/2cd1244b969fe19da02a5008c9ea8bfe43072e61
---
vlc-android/src/org/videolan/vlc/PlaybackService.java | 5 -----
1 file changed, 5 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.java b/vlc-android/src/org/videolan/vlc/PlaybackService.java
index e79f048..9a7126b 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -920,11 +920,6 @@ public class PlaybackService extends MediaBrowserServiceCompat implements IVLCVo
@MainThread
public void stopPlayback() {
- if (mMediaSession != null) {
- mMediaSession.setActive(false);
- mMediaSession.release();
- mMediaSession = null;
- }
removePopup();
if (mMediaPlayer == null)
return;
More information about the Android
mailing list