diff options
author | cyBerta <cyberta@riseup.net> | 2021-11-05 22:55:37 +0100 |
---|---|---|
committer | cyBerta <cyberta@riseup.net> | 2021-11-05 22:55:37 +0100 |
commit | f317ef54d24d987698f7fe26eaccc53b0a51fe12 (patch) | |
tree | d6cb7c1bff0a3b6020b36420552bb7ce6fedec2c /app/src | |
parent | 7b9cb67eb7aa3eadf99a5187d2ea79b83ab57380 (diff) |
tweak notification settings
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/main/java/se/leap/bitmaskclient/tor/TorNotificationManager.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/tor/TorNotificationManager.java b/app/src/main/java/se/leap/bitmaskclient/tor/TorNotificationManager.java index c8bc0e2d..507de4ae 100644 --- a/app/src/main/java/se/leap/bitmaskclient/tor/TorNotificationManager.java +++ b/app/src/main/java/se/leap/bitmaskclient/tor/TorNotificationManager.java @@ -61,6 +61,7 @@ public class TorNotificationManager { bigText(message)) .setTicker(message) .setContentTitle(state) + .setOnlyAlertOnce(true) .setContentText(message); if (progress > 0) { notificationBuilder.setProgress(100, progress, false); @@ -97,7 +98,8 @@ public class TorNotificationManager { NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(context, NOTIFICATION_CHANNEL_NEWSTATUS_ID); notificationBuilder. setDefaults(Notification.DEFAULT_ALL). - setAutoCancel(true); + setLocalOnly(true). + setAutoCancel(false); return notificationBuilder; } |