From 72cf702e752d91bc7edbad3b4195aa37e1c6a3db Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Tue, 20 Feb 2018 08:22:08 +0100 Subject: [PATCH] mark error notifications as sensitve and local only. fixes #2795 --- .../eu/siacs/conversations/services/NotificationService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/services/NotificationService.java b/src/main/java/eu/siacs/conversations/services/NotificationService.java index 41ce31de3..4810c9a26 100644 --- a/src/main/java/eu/siacs/conversations/services/NotificationService.java +++ b/src/main/java/eu/siacs/conversations/services/NotificationService.java @@ -797,12 +797,13 @@ public class NotificationService { mXmppConnectionService.getString(R.string.try_again), createTryAgainIntent()); mBuilder.setDeleteIntent(createDismissErrorIntent()); - mBuilder.setVisibility(NotificationCompat.VISIBILITY_PUBLIC); + mBuilder.setVisibility(NotificationCompat.VISIBILITY_PRIVATE); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { mBuilder.setSmallIcon(R.drawable.ic_warning_white_24dp); } else { mBuilder.setSmallIcon(R.drawable.ic_stat_alert_warning); } + mBuilder.setLocalOnly(true); mBuilder.setPriority(NotificationCompat.PRIORITY_LOW); mBuilder.setContentIntent(PendingIntent.getActivity(mXmppConnectionService, 145,