Adjust notification channel names to include their corresponding gotify priorities
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user