[Android] Keep PlaybackService alive if media are loaded
Geoffrey Métais
git at videolan.org
Tue Jan 19 18:51:50 CET 2016
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Jan 19 18:51:06 2016 +0100| [ca3c401e20c72f520f4ca9922d22f5410d85ed0e] | committer: Geoffrey Métais
Keep PlaybackService alive if media are loaded
> https://code.videolan.org/videolan/vlc-android/commit/ca3c401e20c72f520f4ca9922d22f5410d85ed0e
---
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 c1457df..149559f 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -323,7 +323,7 @@ public class PlaybackService extends Service implements IVLCVout.Callback {
@Override
public boolean onUnbind(Intent intent) {
- if (!isPlaying())
+ if (!hasCurrentMedia())
stopSelf();
return true;
}
More information about the Android
mailing list