Explicitly mark service notifications as ongoing

This commit is contained in:
M66B
2022-04-24 19:03:29 +02:00
parent a4265be2d4
commit d0a9e49221
3 changed files with 5 additions and 2 deletions

View File

@@ -137,7 +137,8 @@ public class ServiceExternal extends Service {
.setPriority(NotificationCompat.PRIORITY_MIN)
.setCategory(NotificationCompat.CATEGORY_SERVICE)
.setVisibility(NotificationCompat.VISIBILITY_SECRET)
.setLocalOnly(true);
.setLocalOnly(true)
.setOngoing(true);
return builder;
}