LocationService: invoke startForeground in onCreate().

This commit is contained in:
Johannes Mockenhaupt 2019-08-21 17:41:54 +02:00
parent 6586c3e52a
commit e0421b509c
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -86,6 +86,8 @@ public class LocationService extends Service {
@Override
public void onCreate() {
super.onCreate();
startForeground(PersistentNotificationPlugin.ONGOING_NOTIFICATION_ID, PersistentNotificationPlugin.getPlugin().updateNotification());
if (L.isEnabled(L.LOCATION))
log.debug("onCreate");