Default enable notification channel lights

pull/156/head
M66B 6 years ago
parent 3dbbff1fb5
commit 537bf56951

@ -1555,6 +1555,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
channel.setGroup("contacts"); channel.setGroup("contacts");
channel.setDescription(from.getPersonal()); channel.setDescription(from.getPersonal());
channel.setLockscreenVisibility(Notification.VISIBILITY_PRIVATE); channel.setLockscreenVisibility(Notification.VISIBILITY_PRIVATE);
channel.enableLights(true);
nm.createNotificationChannel(channel); nm.createNotificationChannel(channel);
onActionEditChannel(); onActionEditChannel();
} }

@ -310,6 +310,7 @@ public class ApplicationEx extends Application {
getString(R.string.channel_notification), getString(R.string.channel_notification),
NotificationManager.IMPORTANCE_HIGH); NotificationManager.IMPORTANCE_HIGH);
notification.setLockscreenVisibility(Notification.VISIBILITY_PRIVATE); notification.setLockscreenVisibility(Notification.VISIBILITY_PRIVATE);
notification.enableLights(true);
nm.createNotificationChannel(notification); nm.createNotificationChannel(notification);
NotificationChannel warning = new NotificationChannel( NotificationChannel warning = new NotificationChannel(

@ -116,6 +116,7 @@ public class EntityAccount extends EntityOrder implements Serializable {
NotificationManager.IMPORTANCE_HIGH); NotificationManager.IMPORTANCE_HIGH);
channel.setGroup(name); channel.setGroup(name);
channel.setLockscreenVisibility(Notification.VISIBILITY_PRIVATE); channel.setLockscreenVisibility(Notification.VISIBILITY_PRIVATE);
channel.enableLights(true);
nm.createNotificationChannel(channel); nm.createNotificationChannel(channel);
} }
} }

@ -81,6 +81,7 @@ public class TupleFolderEx extends EntityFolder implements Serializable {
NotificationManager.IMPORTANCE_HIGH); NotificationManager.IMPORTANCE_HIGH);
channel.setGroup(accountName); channel.setGroup(accountName);
channel.setLockscreenVisibility(Notification.VISIBILITY_PRIVATE); channel.setLockscreenVisibility(Notification.VISIBILITY_PRIVATE);
channel.enableLights(true);
nm.createNotificationChannel(channel); nm.createNotificationChannel(channel);
} }
} }

Loading…
Cancel
Save