From 86a11618b80e4728366371a2f5ffc620d26d9981 Mon Sep 17 00:00:00 2001 From: darkestDark <36689074+darkestDark@users.noreply.github.com> Date: Sun, 29 Sep 2019 11:55:37 +0200 Subject: [PATCH] Changed Nnotification level for Android8+ Enable heads-up notification and fix notification delay on android 9 --- .../securesms/notifications/AbstractNotificationBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/thoughtcrime/securesms/notifications/AbstractNotificationBuilder.java b/src/org/thoughtcrime/securesms/notifications/AbstractNotificationBuilder.java index 95d9e500d..e65116cd8 100644 --- a/src/org/thoughtcrime/securesms/notifications/AbstractNotificationBuilder.java +++ b/src/org/thoughtcrime/securesms/notifications/AbstractNotificationBuilder.java @@ -158,7 +158,7 @@ abstract class AbstractNotificationBuilder extends NotificationCompat.Builder { // we cannot change the settings, however, this is handled by using different values for chId if(!channelExists) { NotificationChannel channel = new NotificationChannel(chId, - "New messages", NotificationManager.IMPORTANCE_DEFAULT); + "New messages", NotificationManager.IMPORTANCE_HIGH); channel.setDescription("Informs about new messages."); if (!ledColor.equals("none")) {