aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2017-03-04 17:00:27 +0100
committerChristian Schneppe <christian@pix-art.de>2017-03-04 17:00:27 +0100
commitd6b2f54a4e77dbf1fb4f3ab7d1a3c84932a9cf9e (patch)
treec7015173a9884aedd1efa4b9da7899ae0ad787be
parent98b73cf0fe9e170c0c521ec94a78ee02e2961512 (diff)
use priority low when creating notification without sound/vibration
-rw-r--r--src/main/java/de/pixart/messenger/services/NotificationService.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/services/NotificationService.java b/src/main/java/de/pixart/messenger/services/NotificationService.java
index 13a525bfb..f294be493 100644
--- a/src/main/java/de/pixart/messenger/services/NotificationService.java
+++ b/src/main/java/de/pixart/messenger/services/NotificationService.java
@@ -252,6 +252,7 @@ public class NotificationService {
if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
mBuilder.setCategory(Notification.CATEGORY_MESSAGE);
}
+ mBuilder.setPriority(notify ? NotificationCompat.PRIORITY_HIGH : NotificationCompat.PRIORITY_LOW);
setNotificationColor(mBuilder);
mBuilder.setDefaults(0);
if (led) {