mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-02-04 08:13:07 +00:00
Set notification's importance to low
This commit is contained in:
@@ -158,7 +158,7 @@ public class PlayingNotification {
|
|||||||
private void createNotificationChannel() {
|
private void createNotificationChannel() {
|
||||||
NotificationChannel notificationChannel = notificationManager.getNotificationChannel(NOTIFICATION_CHANNEL_ID);
|
NotificationChannel notificationChannel = notificationManager.getNotificationChannel(NOTIFICATION_CHANNEL_ID);
|
||||||
if (notificationChannel == null) {
|
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.setDescription(service.getString(R.string.playing_notification_description));
|
||||||
notificationChannel.enableLights(false);
|
notificationChannel.enableLights(false);
|
||||||
notificationChannel.enableVibration(false);
|
notificationChannel.enableVibration(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user