Start foreground on start command too

This shouldn't be necessary ...
This commit is contained in:
M66B
2019-07-31 08:18:05 +02:00
parent 5f71c31357
commit 0606dac914
3 changed files with 5 additions and 0 deletions

View File

@@ -48,6 +48,9 @@ public class ServiceExternal extends Service {
Log.i("Received intent=" + intent);
Log.logExtras(intent);
super.onStartCommand(intent, flags, startId);
startForeground(Helper.NOTIFICATION_EXTERNAL, getNotification().build());
if (intent == null)
return START_NOT_STICKY;