Skip to content

Commit 082e59c

Browse files
committed
Bypass DND
1 parent cb72819 commit 082e59c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/src/main/java/eu/faircode/netguard/ApplicationEx.java

+2
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,12 @@ private void createNotificationChannels() {
6767

6868
NotificationChannel notify = new NotificationChannel("notify", getString(R.string.channel_notify), NotificationManager.IMPORTANCE_DEFAULT);
6969
notify.setSound(null, Notification.AUDIO_ATTRIBUTES_DEFAULT);
70+
notify.setBypassDnd(true);
7071
nm.createNotificationChannel(notify);
7172

7273
NotificationChannel access = new NotificationChannel("access", getString(R.string.channel_access), NotificationManager.IMPORTANCE_DEFAULT);
7374
access.setSound(null, Notification.AUDIO_ATTRIBUTES_DEFAULT);
75+
access.setBypassDnd(true);
7476
nm.createNotificationChannel(access);
7577
}
7678
}

0 commit comments

Comments
 (0)