Send alert once

This commit is contained in:
M66B 2021-02-04 12:31:27 +01:00
parent 3248eb5b7a
commit 3a9b9a3c34
1 changed files with 1 additions and 0 deletions

View File

@ -205,6 +205,7 @@ public class ServiceSend extends ServiceBase implements SharedPreferences.OnShar
.setContentIntent(getPendingIntent(this))
.setAutoCancel(false)
.setShowWhen(true)
.setOnlyAlertOnce(true)
.setDefaults(0) // disable sound on pre Android 8
.setLocalOnly(true)
.setPriority(NotificationCompat.PRIORITY_MIN)