LocationService: invoke startForeground in onCreate().
This commit is contained in:
parent
6586c3e52a
commit
e0421b509c
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue