mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-29 15:51:17 +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.enableLights(false);
|
||||||
mPersistentChannel.enableVibration(false);
|
mPersistentChannel.enableVibration(false);
|
||||||
mPersistentChannel.setSound(null, null);
|
mPersistentChannel.setSound(null, null);
|
||||||
|
mPersistentChannel.setShowBadge(false);
|
||||||
mNotificationManager.createNotificationChannel(mPersistentChannel);
|
mNotificationManager.createNotificationChannel(mPersistentChannel);
|
||||||
|
|
||||||
mPersistentChannelWaiting = new NotificationChannel(
|
mPersistentChannelWaiting = new NotificationChannel(
|
||||||
|
@ -65,6 +66,7 @@ public class NotificationHandler {
|
||||||
mPersistentChannelWaiting.enableLights(false);
|
mPersistentChannelWaiting.enableLights(false);
|
||||||
mPersistentChannelWaiting.enableVibration(false);
|
mPersistentChannelWaiting.enableVibration(false);
|
||||||
mPersistentChannelWaiting.setSound(null, null);
|
mPersistentChannelWaiting.setSound(null, null);
|
||||||
|
mPersistentChannelWaiting.setShowBadge(false);
|
||||||
mNotificationManager.createNotificationChannel(mPersistentChannelWaiting);
|
mNotificationManager.createNotificationChannel(mPersistentChannelWaiting);
|
||||||
|
|
||||||
mInfoChannel = new NotificationChannel(
|
mInfoChannel = new NotificationChannel(
|
||||||
|
@ -72,6 +74,7 @@ public class NotificationHandler {
|
||||||
NotificationManager.IMPORTANCE_LOW);
|
NotificationManager.IMPORTANCE_LOW);
|
||||||
mPersistentChannel.enableVibration(false);
|
mPersistentChannel.enableVibration(false);
|
||||||
mPersistentChannel.setSound(null, null);
|
mPersistentChannel.setSound(null, null);
|
||||||
|
mPersistentChannel.setShowBadge(true);
|
||||||
mNotificationManager.createNotificationChannel(mInfoChannel);
|
mNotificationManager.createNotificationChannel(mInfoChannel);
|
||||||
} else {
|
} else {
|
||||||
mPersistentChannel = null;
|
mPersistentChannel = null;
|
||||||
|
|
Loading…
Reference in a new issue