diff options
author | Christian Schneppe <christian@pix-art.de> | 2017-03-04 22:02:02 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2017-03-04 22:02:02 +0100 |
commit | 96113cffafd281ee2c0041edbb40766decc78249 (patch) | |
tree | 9649dba778a5d5370588f47800806ed71554e341 | |
parent | 33f0f1561bb3e0bc23a49e5c84513d41849d2160 (diff) |
use default priority notifications. disables heads up notifications
-rw-r--r-- | src/main/java/de/pixart/messenger/services/NotificationService.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/services/NotificationService.java b/src/main/java/de/pixart/messenger/services/NotificationService.java index f294be493..3a29275ea 100644 --- a/src/main/java/de/pixart/messenger/services/NotificationService.java +++ b/src/main/java/de/pixart/messenger/services/NotificationService.java @@ -252,7 +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); + mBuilder.setPriority(notify ? NotificationCompat.PRIORITY_DEFAULT : NotificationCompat.PRIORITY_LOW); setNotificationColor(mBuilder); mBuilder.setDefaults(0); if (led) { |