From d78cdc5c6bb7efc7b30ca7a51ad9651df8d2f578 Mon Sep 17 00:00:00 2001 From: CappielloAntonio Date: Wed, 3 Nov 2021 19:36:07 +0100 Subject: [PATCH] Set notification's importance to low --- .../play/ui/notification/PlayingNotification.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/cappielloantonio/play/ui/notification/PlayingNotification.java b/app/src/main/java/com/cappielloantonio/play/ui/notification/PlayingNotification.java index 51007758..02c6e39b 100644 --- a/app/src/main/java/com/cappielloantonio/play/ui/notification/PlayingNotification.java +++ b/app/src/main/java/com/cappielloantonio/play/ui/notification/PlayingNotification.java @@ -158,7 +158,7 @@ public class PlayingNotification { private void createNotificationChannel() { NotificationChannel notificationChannel = notificationManager.getNotificationChannel(NOTIFICATION_CHANNEL_ID); if (notificationChannel == null) { - notificationChannel = new NotificationChannel(NOTIFICATION_CHANNEL_ID, service.getString(R.string.playing_notification_name), NotificationManager.IMPORTANCE_DEFAULT); + notificationChannel = new NotificationChannel(NOTIFICATION_CHANNEL_ID, service.getString(R.string.playing_notification_name), NotificationManager.IMPORTANCE_LOW); notificationChannel.setDescription(service.getString(R.string.playing_notification_description)); notificationChannel.enableLights(false); notificationChannel.enableVibration(false);