From 50583cec5ab2148209ea8b050712aa5f1878ed64 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Sun, 29 Jul 2018 15:21:39 -0700 Subject: Lower notification channel importance so it doesn't play a ding every time a song changes... --- app/src/main/java/github/daneren2005/dsub/util/Notifications.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/src/main/java/github/daneren2005') diff --git a/app/src/main/java/github/daneren2005/dsub/util/Notifications.java b/app/src/main/java/github/daneren2005/dsub/util/Notifications.java index ac36c99d..428c33e0 100644 --- a/app/src/main/java/github/daneren2005/dsub/util/Notifications.java +++ b/app/src/main/java/github/daneren2005/dsub/util/Notifications.java @@ -349,7 +349,7 @@ public final class Notifications { @TargetApi(Build.VERSION_CODES.O) private static NotificationChannel getPlayingNotificationChannel(Context context) { if(playingChannel == null) { - playingChannel = new NotificationChannel("now-playing-channel", "Now Playing", NotificationManager.IMPORTANCE_DEFAULT); + playingChannel = new NotificationChannel("now-playing-channel", "Now Playing", NotificationManager.IMPORTANCE_LOW); playingChannel.setDescription("Now playing notification"); NotificationManager notificationManager = context.getSystemService(NotificationManager.class); @@ -431,7 +431,7 @@ public final class Notifications { @TargetApi(Build.VERSION_CODES.O) private static NotificationChannel getDownloadingNotificationChannel(Context context) { if(downloadingChannel == null) { - downloadingChannel = new NotificationChannel("downloading-channel", "Downloading Notification", NotificationManager.IMPORTANCE_DEFAULT); + downloadingChannel = new NotificationChannel("downloading-channel", "Downloading Notification", NotificationManager.IMPORTANCE_LOW); downloadingChannel.setDescription("Ongoing downloading notification to keep the service alive"); NotificationManager notificationManager = context.getSystemService(NotificationManager.class); @@ -504,7 +504,7 @@ public final class Notifications { @TargetApi(Build.VERSION_CODES.O) private static NotificationChannel getSyncNotificationChannel(Context context) { if(syncChannel == null) { - syncChannel = new NotificationChannel("sync-channel", "Sync Notifications", NotificationManager.IMPORTANCE_LOW); + syncChannel = new NotificationChannel("sync-channel", "Sync Notifications", NotificationManager.IMPORTANCE_MIN); syncChannel.setDescription("Sync notifications"); NotificationManager notificationManager = context.getSystemService(NotificationManager.class); -- cgit v1.2.3