Default enable notification channel lights

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

@ -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);
}
}

Loading…
Cancel
Save