Enabled DND for all new message notifications by default

This commit is contained in:
M66B 2021-10-20 07:26:49 +02:00
parent 876f3a21ab
commit cdfbe9c76c
3 changed files with 3 additions and 0 deletions

View File

@ -3959,6 +3959,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
channel.setGroup("contacts");
channel.setDescription(from.getPersonal());
channel.setLockscreenVisibility(Notification.VISIBILITY_PRIVATE);
channel.setBypassDnd(true);
channel.enableLights(true);
nm.createNotificationChannel(channel);
onActionEditChannel();

View File

@ -216,6 +216,7 @@ public class EntityAccount extends EntityOrder implements Serializable {
NotificationManager.IMPORTANCE_HIGH);
channel.setGroup(group.getId());
channel.setLockscreenVisibility(Notification.VISIBILITY_PRIVATE);
channel.setBypassDnd(true);
channel.enableLights(true);
nm.createNotificationChannel(channel);
}

View File

@ -96,6 +96,7 @@ public class TupleFolderEx extends EntityFolder implements Serializable {
NotificationManager.IMPORTANCE_HIGH);
channel.setGroup(group.getId());
channel.setLockscreenVisibility(Notification.VISIBILITY_PRIVATE);
channel.setBypassDnd(true);
channel.enableLights(true);
nm.createNotificationChannel(channel);
}