Skip to content
Snippets Groups Projects
Commit 6d583a39 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Start playbackservice foreground when needed

parent 69784466
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment