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

@@ -225,6 +225,7 @@ public class ServiceSend extends ServiceBase {
@Override
public int onStartCommand(Intent intent, int flags, int startId) {
super.onStartCommand(intent, flags, startId);
startForeground(Helper.NOTIFICATION_SEND, getNotificationService(null, null).build());
return START_STICKY;
}