[Android] Always resume medialibrary bg ops on playback stop
Geoffrey Métais
git at videolan.org
Mon Sep 25 10:51:20 CEST 2017
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Sep 25 10:33:12 2017 +0200| [9583179e331a8f2b323b4b3e14544f5bbd288ed6] | committer: Geoffrey Métais
Always resume medialibrary bg ops on playback stop
See #371
> https://code.videolan.org/videolan/vlc-android/commit/9583179e331a8f2b323b4b3e14544f5bbd288ed6
---
vlc-android/src/org/videolan/vlc/PlaybackService.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.java b/vlc-android/src/org/videolan/vlc/PlaybackService.java
index 2d2984665..4b7c6e958 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -627,7 +627,6 @@ public class PlaybackService extends MediaBrowserServiceCompat implements IVLCVo
mWakeLock.release();
break;
case MediaPlayer.Event.Stopped:
- mMedialibrary.resumeBackgroundOperations();
Log.i(TAG, "MediaPlayer.Event.Stopped");
onPlaybackStopped();
break;
@@ -682,6 +681,7 @@ public class PlaybackService extends MediaBrowserServiceCompat implements IVLCVo
private void onPlaybackStopped() {
if (mStopped)
return;
+ mMedialibrary.resumeBackgroundOperations();
mStopped = true;
mCurrentIndex = -1;
hideNotification();
More information about the Android
mailing list