mirror of https://github.com/M66B/FairEmail.git
Enabled DND for all new message notifications by default
This commit is contained in:
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…
Reference in New Issue