summaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/tor/TorNotificationManager.java4
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;
}