Enabled DND for all new message notifications by default

pull/206/head
M66B 4 years ago
parent 876f3a21ab
commit cdfbe9c76c

@ -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();

@ -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);
}

@ -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);
}

Loading…
Cancel
Save