Added channel descriptions

pull/184/head
M66B 4 years ago
parent 3370520e39
commit 4d4deb91c7

@ -327,6 +327,7 @@ public class ApplicationEx extends Application {
NotificationChannel service = new NotificationChannel(
"service", getString(R.string.channel_service),
NotificationManager.IMPORTANCE_MIN);
service.setDescription(getString(R.string.channel_service_description));
service.setSound(null, Notification.AUDIO_ATTRIBUTES_DEFAULT);
service.setShowBadge(false);
service.setLockscreenVisibility(Notification.VISIBILITY_SECRET);
@ -336,6 +337,7 @@ public class ApplicationEx extends Application {
NotificationChannel send = new NotificationChannel(
"send", getString(R.string.channel_send),
NotificationManager.IMPORTANCE_DEFAULT);
send.setDescription(getString(R.string.channel_send_description));
send.setSound(null, Notification.AUDIO_ATTRIBUTES_DEFAULT);
send.setShowBadge(false);
send.setLockscreenVisibility(Notification.VISIBILITY_PRIVATE);
@ -345,6 +347,7 @@ public class ApplicationEx extends Application {
NotificationChannel notification = new NotificationChannel(
"notification", getString(R.string.channel_notification),
NotificationManager.IMPORTANCE_HIGH);
notification.setDescription(getString(R.string.channel_notification_description));
notification.setLockscreenVisibility(Notification.VISIBILITY_PRIVATE);
notification.enableLights(true);
notification.setLightColor(Color.YELLOW);

@ -19,6 +19,10 @@
<string name="channel_alert">Server alerts</string>
<string name="channel_group_contacts">Contacts</string>
<string name="channel_service_description">Synchronizing and monitoring of accounts</string>
<string name="channel_send_description">Sending of messages</string>
<string name="channel_notification_description">New message notifications</string>
<plurals name="page_conversation">
<item quantity="one">Conversation</item>
<item quantity="other">Conversations</item>

Loading…
Cancel
Save