diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-02-22 21:08:29 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-02-22 21:08:29 +0100 |
commit | 56864ad75bc94164696f27b56c8db02e79b72191 (patch) | |
tree | 654391cb7ca2c88a793ed63a5a30d63e5c7ec597 /src/main/java | |
parent | bda381d3bb9db2b9d6e84292e090ddc20305beeb (diff) |
mark error notifications as sensitve and local only
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/de/pixart/messenger/services/NotificationService.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/de/pixart/messenger/services/NotificationService.java b/src/main/java/de/pixart/messenger/services/NotificationService.java index 0544380be..7ce896814 100644 --- a/src/main/java/de/pixart/messenger/services/NotificationService.java +++ b/src/main/java/de/pixart/messenger/services/NotificationService.java @@ -815,8 +815,10 @@ public class NotificationService { mXmppConnectionService.getString(R.string.try_again), createTryAgainIntent()); mBuilder.setDeleteIntent(createDismissErrorIntent()); - mBuilder.setVisibility(NotificationCompat.VISIBILITY_PUBLIC); + mBuilder.setVisibility(NotificationCompat.VISIBILITY_PRIVATE); mBuilder.setSmallIcon(R.drawable.ic_warning_white_24dp); + mBuilder.setLocalOnly(true); + mBuilder.setPriority(NotificationCompat.PRIORITY_LOW); if (errors.size() == 1) { Intent intent = new Intent(mXmppConnectionService, EditAccountActivity.class); Account mAccount = mXmppConnectionService.getAccounts().get(0); @@ -832,7 +834,6 @@ public class NotificationService { new Intent(mXmppConnectionService, ManageAccountActivity.class), PendingIntent.FLAG_UPDATE_CURRENT)); } - notificationManager.notify(ERROR_NOTIFICATION_ID, mBuilder.build()); } |