mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-05-16 15:02:54 +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)
|
||||
.setContentIntent(pendingIntent);
|
||||
|
||||
NotificationManagerCompat notificationManager = NotificationManagerCompat.from(this);
|
||||
notificationManager.notify(NOTIFICATION_VAULT_UNLOCKED, builder.build());
|
||||
startForeground(NOTIFICATION_VAULT_UNLOCKED, builder.build());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue