mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-04 03:43:55 +01:00
Default enable notification channel lights
This commit is contained in:
@@ -1555,6 +1555,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||
channel.setGroup("contacts");
|
||||
channel.setDescription(from.getPersonal());
|
||||
channel.setLockscreenVisibility(Notification.VISIBILITY_PRIVATE);
|
||||
channel.enableLights(true);
|
||||
nm.createNotificationChannel(channel);
|
||||
onActionEditChannel();
|
||||
}
|
||||
|
||||
@@ -310,6 +310,7 @@ public class ApplicationEx extends Application {
|
||||
getString(R.string.channel_notification),
|
||||
NotificationManager.IMPORTANCE_HIGH);
|
||||
notification.setLockscreenVisibility(Notification.VISIBILITY_PRIVATE);
|
||||
notification.enableLights(true);
|
||||
nm.createNotificationChannel(notification);
|
||||
|
||||
NotificationChannel warning = new NotificationChannel(
|
||||
|
||||
@@ -116,6 +116,7 @@ public class EntityAccount extends EntityOrder implements Serializable {
|
||||
NotificationManager.IMPORTANCE_HIGH);
|
||||
channel.setGroup(name);
|
||||
channel.setLockscreenVisibility(Notification.VISIBILITY_PRIVATE);
|
||||
channel.enableLights(true);
|
||||
nm.createNotificationChannel(channel);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -81,6 +81,7 @@ public class TupleFolderEx extends EntityFolder implements Serializable {
|
||||
NotificationManager.IMPORTANCE_HIGH);
|
||||
channel.setGroup(accountName);
|
||||
channel.setLockscreenVisibility(Notification.VISIBILITY_PRIVATE);
|
||||
channel.enableLights(true);
|
||||
nm.createNotificationChannel(channel);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user