mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 14:17:03 +02:00
Added channel descriptions
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user