startForeground in onCreate
This commit is contained in:
parent
e4a3b0656e
commit
43c0ce25ba
|
@ -38,6 +38,8 @@ public class AlarmSoundService extends Service {
|
|||
super.onCreate();
|
||||
if (L.isEnabled(L.CORE))
|
||||
log.debug("onCreate");
|
||||
Notification notification = PersistentNotificationPlugin.getPlugin().getLastNotification();
|
||||
startForeground(PersistentNotificationPlugin.ONGOING_NOTIFICATION_ID, notification);
|
||||
}
|
||||
|
||||
public int onStartCommand(Intent intent, int flags, int startId) {
|
||||
|
|
Loading…
Reference in a new issue