mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-26 06:11:19 +00:00
Ref.: Android 8.0
This commit is contained in:
parent
38f94ce34c
commit
0ca5d851f2
1 changed files with 3 additions and 0 deletions
|
@ -57,6 +57,7 @@ public class NotificationHandler {
|
|||
mPersistentChannel.enableLights(false);
|
||||
mPersistentChannel.enableVibration(false);
|
||||
mPersistentChannel.setSound(null, null);
|
||||
mPersistentChannel.setShowBadge(false);
|
||||
mNotificationManager.createNotificationChannel(mPersistentChannel);
|
||||
|
||||
mPersistentChannelWaiting = new NotificationChannel(
|
||||
|
@ -65,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(
|
||||
|
@ -72,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