Call startForeground onCreate for generic foreground service.

This commit is contained in:
Clark
2023-06-02 14:58:44 -04:00
committed by Cody Henthorne
parent c3499e538e
commit 59435e49c8

View File

@@ -55,6 +55,14 @@ public final class GenericForegroundService extends Service {
private @Nullable Entry lastPosted;
@Override
public void onCreate() {
super.onCreate();
synchronized (GenericForegroundService.class) {
updateNotification();
}
}
@Override
public int onStartCommand(Intent intent, int flags, int startId) {
if (intent == null) {