From 1c1465daa2509e55eedf787b58c8c1c8c85c483a Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 20 Feb 2022 14:26:42 +0100 Subject: [PATCH] Send: alert once always --- app/src/main/java/eu/faircode/email/ServiceSend.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ServiceSend.java b/app/src/main/java/eu/faircode/email/ServiceSend.java index 3b43db2276..793f8ee760 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSend.java +++ b/app/src/main/java/eu/faircode/email/ServiceSend.java @@ -214,9 +214,6 @@ public class ServiceSend extends ServiceBase implements SharedPreferences.OnShar } NotificationCompat.Builder getNotificationService() { - SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this); - boolean alert_once = prefs.getBoolean("alert_once", true); - NotificationCompat.Builder builder = new NotificationCompat.Builder(this, "send") .setSmallIcon(R.drawable.baseline_send_white_24) @@ -224,7 +221,7 @@ public class ServiceSend extends ServiceBase implements SharedPreferences.OnShar .setContentIntent(getPendingIntent(this)) .setAutoCancel(false) .setShowWhen(true) - .setOnlyAlertOnce(alert_once) + .setOnlyAlertOnce(true) .setDefaults(0) // disable sound on pre Android 8 .setLocalOnly(true) .setPriority(NotificationCompat.PRIORITY_MIN)