Send: alert once always

This commit is contained in:
M66B 2022-02-20 14:26:42 +01:00
parent 9448cf7667
commit 1c1465daa2
1 changed files with 1 additions and 4 deletions

View File

@ -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)