From cc4d1b4fcf1eb10a10bedf141f68710ec3e48632 Mon Sep 17 00:00:00 2001 From: Catfriend1 Date: Sat, 27 Apr 2019 10:14:39 +0200 Subject: [PATCH] Show notification badge if user interaction is required (#1310) --- .../nutomic/syncthingandroid/service/NotificationHandler.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/nutomic/syncthingandroid/service/NotificationHandler.java b/app/src/main/java/com/nutomic/syncthingandroid/service/NotificationHandler.java index 3ef66efd..d1fcfbc4 100644 --- a/app/src/main/java/com/nutomic/syncthingandroid/service/NotificationHandler.java +++ b/app/src/main/java/com/nutomic/syncthingandroid/service/NotificationHandler.java @@ -57,7 +57,7 @@ public class NotificationHandler { mPersistentChannel.enableLights(false); mPersistentChannel.enableVibration(false); mPersistentChannel.setSound(null, null); - mPersistentChannel.setShowBadge(false); // Disables the dot next to the app icon + mPersistentChannel.setShowBadge(false); mNotificationManager.createNotificationChannel(mPersistentChannel); mPersistentChannelWaiting = new NotificationChannel( @@ -66,6 +66,7 @@ public class NotificationHandler { mPersistentChannelWaiting.enableLights(false); mPersistentChannelWaiting.enableVibration(false); mPersistentChannelWaiting.setSound(null, null); + mPersistentChannelWaiting.setShowBadge(false); mNotificationManager.createNotificationChannel(mPersistentChannelWaiting); mInfoChannel = new NotificationChannel( @@ -73,6 +74,7 @@ public class NotificationHandler { NotificationManager.IMPORTANCE_LOW); mPersistentChannel.enableVibration(false); mPersistentChannel.setSound(null, null); + mPersistentChannel.setShowBadge(true); mNotificationManager.createNotificationChannel(mInfoChannel); } else { mPersistentChannel = null;