aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2018-07-29 15:21:39 -0700
committerScott Jackson <daneren2005@gmail.com>2018-07-29 15:21:39 -0700
commit50583cec5ab2148209ea8b050712aa5f1878ed64 (patch)
treef5c417b2cfbbdb619d1d004fd0f676db99794025 /app
parentf8efd89f200ef7aadc1d2f2dd0ffb6475e927a59 (diff)
downloaddsub-50583cec5ab2148209ea8b050712aa5f1878ed64.tar.gz
dsub-50583cec5ab2148209ea8b050712aa5f1878ed64.tar.bz2
dsub-50583cec5ab2148209ea8b050712aa5f1878ed64.zip
Lower notification channel importance so it doesn't play a ding every time a song changes...
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/github/daneren2005/dsub/util/Notifications.java6
1 files changed, 3 insertions, 3 deletions
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);