mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-22 12:21:15 +00:00
Show notification badge if user interaction is required (#1310)
This commit is contained in:
parent
6a36c2d5c0
commit
cc4d1b4fcf
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue