Adjust notification channel names to include their corresponding gotify priorities

This commit is contained in:
schwma
2018-11-11 15:22:22 +01:00
parent 52d9329f50
commit 63af9d458d

View File

@@ -40,19 +40,19 @@ public class NotificationSupport {
NotificationChannel messagesImportanceMin = NotificationChannel messagesImportanceMin =
new NotificationChannel( new NotificationChannel(
Channel.MESSAGES_IMPORTANCE_MIN, Channel.MESSAGES_IMPORTANCE_MIN,
"Min importance Gotify messages", "Min priority messages (<1)",
NotificationManager.IMPORTANCE_MIN); NotificationManager.IMPORTANCE_MIN);
NotificationChannel messagesImportanceLow = NotificationChannel messagesImportanceLow =
new NotificationChannel( new NotificationChannel(
Channel.MESSAGES_IMPORTANCE_LOW, Channel.MESSAGES_IMPORTANCE_LOW,
"Low importance Gotify messages", "Low priority messages (1-3)",
NotificationManager.IMPORTANCE_LOW); NotificationManager.IMPORTANCE_LOW);
NotificationChannel messagesImportanceDefault = NotificationChannel messagesImportanceDefault =
new NotificationChannel( new NotificationChannel(
Channel.MESSAGES_IMPORTANCE_DEFAULT, Channel.MESSAGES_IMPORTANCE_DEFAULT,
"Default importance Gotify messages", "Normal priority messages (4-7)",
NotificationManager.IMPORTANCE_DEFAULT); NotificationManager.IMPORTANCE_DEFAULT);
messagesImportanceDefault.enableLights(true); messagesImportanceDefault.enableLights(true);
messagesImportanceDefault.setLightColor(Color.CYAN); messagesImportanceDefault.setLightColor(Color.CYAN);
@@ -60,7 +60,7 @@ public class NotificationSupport {
NotificationChannel messagesImportanceHigh = NotificationChannel messagesImportanceHigh =
new NotificationChannel( new NotificationChannel(
Channel.MESSAGES_IMPORTANCE_HIGH, Channel.MESSAGES_IMPORTANCE_HIGH,
"High importance Gotify messages", "High priority messages (>7)",
NotificationManager.IMPORTANCE_HIGH); NotificationManager.IMPORTANCE_HIGH);
messagesImportanceHigh.enableLights(true); messagesImportanceHigh.enableLights(true);
messagesImportanceHigh.setLightColor(Color.CYAN); messagesImportanceHigh.setLightColor(Color.CYAN);