From 3a9b9a3c344b41c2a052f6fd5eee72f7e83324df Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 4 Feb 2021 12:31:27 +0100 Subject: [PATCH] Send alert once --- app/src/main/java/eu/faircode/email/ServiceSend.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/eu/faircode/email/ServiceSend.java b/app/src/main/java/eu/faircode/email/ServiceSend.java index 9851a69d0e..a0b44a698f 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSend.java +++ b/app/src/main/java/eu/faircode/email/ServiceSend.java @@ -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)