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

@@ -1314,7 +1314,8 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
.setDefaults(0) // disable sound on pre Android 8
.setCategory(NotificationCompat.CATEGORY_SERVICE)
.setVisibility(NotificationCompat.VISIBILITY_SECRET)
.setLocalOnly(true);
.setLocalOnly(true)
.setOngoing(true);
if (lastAccounts > 0)
builder.setContentTitle(getResources().getQuantityString(