From d1061df181cefb2be6d1b1677e450fb0fb4ee318 Mon Sep 17 00:00:00 2001 From: sim Date: Sun, 26 Mar 2023 22:11:45 +0200 Subject: [PATCH] Fix notifications' id --- .../distributor/nextpush/utils/NotificationUtils.kt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/org/unifiedpush/distributor/nextpush/utils/NotificationUtils.kt b/app/src/main/java/org/unifiedpush/distributor/nextpush/utils/NotificationUtils.kt index 06d716f..1eeb44c 100644 --- a/app/src/main/java/org/unifiedpush/distributor/nextpush/utils/NotificationUtils.kt +++ b/app/src/main/java/org/unifiedpush/distributor/nextpush/utils/NotificationUtils.kt @@ -16,6 +16,9 @@ import org.unifiedpush.distributor.nextpush.activities.MainActivity const val NOTIFICATION_ID_FOREGROUND = 51115 const val NOTIFICATION_ID_WARNING = 51215 +const val NOTIFICATION_ID_NO_START = 51315 +const val NOTIFICATION_ID_LOW_KEEPALIVE = 51315 +const val NOTIFICATION_ID_NO_PING = 51515 private data class ChannelData( val id: String, @@ -196,7 +199,7 @@ object NotificationUtils { true ) - show(context, NOTIFICATION_ID_WARNING, notification) + show(context, NOTIFICATION_ID_NO_START, notification) } fun showLowKeepaliveNotification(context: Context, keepalive: Int) { @@ -215,7 +218,7 @@ object NotificationUtils { true ) - show(context, NOTIFICATION_ID_WARNING, notification) + show(context, NOTIFICATION_ID_LOW_KEEPALIVE, notification) } fun showNoPingNotification(context: Context) { @@ -234,6 +237,6 @@ object NotificationUtils { true ) - show(context, NOTIFICATION_ID_WARNING, notification) + show(context, NOTIFICATION_ID_NO_PING, notification) } }