[Android] Start playbackservice foreground when needed
Geoffrey Métais
git at videolan.org
Mon Oct 9 16:56:03 CEST 2017
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Oct 9 16:55:22 2017 +0200| [6d583a3922697d530b3fc6b64291e163a06555e6] | committer: Geoffrey Métais
Start playbackservice foreground when needed
> https://code.videolan.org/videolan/vlc-android/commit/6d583a3922697d530b3fc6b64291e163a06555e6
---
vlc-android/src/org/videolan/vlc/PlaybackService.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.java b/vlc-android/src/org/videolan/vlc/PlaybackService.java
index f5bef23df..c861f81fc 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -2590,7 +2590,7 @@ public class PlaybackService extends MediaBrowserServiceCompat implements IVLCVo
}
private static void startService(Context context) {
- context.startService(getServiceIntent(context));
+ Util.startService(context, getServiceIntent(context));
}
private static void stopService(Context context) {
@@ -2609,7 +2609,7 @@ public class PlaybackService extends MediaBrowserServiceCompat implements IVLCVo
if (mBound)
throw new IllegalStateException("already connected");
final Intent serviceIntent = getServiceIntent(mContext);
- mContext.startService(serviceIntent);
+ Util.startService(mContext, serviceIntent);
mBound = mContext.bindService(serviceIntent, mServiceConnection, BIND_AUTO_CREATE);
}
More information about the Android
mailing list