mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-27 19:35:10 +01:00
Revert "Set bypass DND for high priority notifications"
This reverts commit b7366afaf9.
This commit is contained in:
@@ -74,7 +74,6 @@ class NotificationHelper {
|
||||
notification.enableLights(true);
|
||||
notification.setLightColor(Color.YELLOW);
|
||||
notification.setLockscreenVisibility(Notification.VISIBILITY_PRIVATE);
|
||||
notification.setBypassDnd(true);
|
||||
nm.createNotificationChannel(notification);
|
||||
|
||||
NotificationChannel progress = new NotificationChannel(
|
||||
@@ -92,7 +91,6 @@ class NotificationHelper {
|
||||
NotificationManager.IMPORTANCE_HIGH);
|
||||
update.setSound(null, Notification.AUDIO_ATTRIBUTES_DEFAULT);
|
||||
update.setLockscreenVisibility(Notification.VISIBILITY_PRIVATE);
|
||||
update.setBypassDnd(true);
|
||||
nm.createNotificationChannel(update);
|
||||
}
|
||||
|
||||
@@ -101,7 +99,6 @@ class NotificationHelper {
|
||||
"warning", context.getString(R.string.channel_warning),
|
||||
NotificationManager.IMPORTANCE_HIGH);
|
||||
warning.setLockscreenVisibility(Notification.VISIBILITY_PRIVATE);
|
||||
warning.setBypassDnd(true);
|
||||
nm.createNotificationChannel(warning);
|
||||
|
||||
// Errors
|
||||
@@ -110,7 +107,6 @@ class NotificationHelper {
|
||||
context.getString(R.string.channel_error),
|
||||
NotificationManager.IMPORTANCE_HIGH);
|
||||
error.setLockscreenVisibility(Notification.VISIBILITY_PRIVATE);
|
||||
error.setBypassDnd(true);
|
||||
nm.createNotificationChannel(error);
|
||||
|
||||
// Server alerts
|
||||
@@ -119,7 +115,6 @@ class NotificationHelper {
|
||||
context.getString(R.string.channel_alert),
|
||||
NotificationManager.IMPORTANCE_HIGH);
|
||||
alerts.setLockscreenVisibility(Notification.VISIBILITY_PRIVATE);
|
||||
alerts.setBypassDnd(true);
|
||||
nm.createNotificationChannel(alerts);
|
||||
|
||||
// Contacts grouping
|
||||
|
||||
Reference in New Issue
Block a user