Changed Nnotification level for Android8+

Enable heads-up notification and fix notification delay on android 9
This commit is contained in:
darkestDark
2019-09-29 11:55:37 +02:00
committed by GitHub
parent 21f118d60b
commit 86a11618b8
@@ -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")) {