mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-05-16 06:53:01 +00:00
Start NotificationService as a foreground service
This should prevent the notification from remaining after the app has been killed by Android. Fixes #1037.
This commit is contained in:
parent
f8d89d5754
commit
ef759eb15e
1 changed files with 1 additions and 2 deletions
|
@ -47,8 +47,7 @@ public class NotificationService extends Service {
|
||||||
.setOngoing(true)
|
.setOngoing(true)
|
||||||
.setContentIntent(pendingIntent);
|
.setContentIntent(pendingIntent);
|
||||||
|
|
||||||
NotificationManagerCompat notificationManager = NotificationManagerCompat.from(this);
|
startForeground(NOTIFICATION_VAULT_UNLOCKED, builder.build());
|
||||||
notificationManager.notify(NOTIFICATION_VAULT_UNLOCKED, builder.build());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue