Fix notifications' id

This commit is contained in:
sim 2023-03-26 22:11:45 +02:00
parent bea744db18
commit d1061df181
1 changed files with 6 additions and 3 deletions

View File

@ -16,6 +16,9 @@ import org.unifiedpush.distributor.nextpush.activities.MainActivity
const val NOTIFICATION_ID_FOREGROUND = 51115 const val NOTIFICATION_ID_FOREGROUND = 51115
const val NOTIFICATION_ID_WARNING = 51215 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( private data class ChannelData(
val id: String, val id: String,
@ -196,7 +199,7 @@ object NotificationUtils {
true true
) )
show(context, NOTIFICATION_ID_WARNING, notification) show(context, NOTIFICATION_ID_NO_START, notification)
} }
fun showLowKeepaliveNotification(context: Context, keepalive: Int) { fun showLowKeepaliveNotification(context: Context, keepalive: Int) {
@ -215,7 +218,7 @@ object NotificationUtils {
true true
) )
show(context, NOTIFICATION_ID_WARNING, notification) show(context, NOTIFICATION_ID_LOW_KEEPALIVE, notification)
} }
fun showNoPingNotification(context: Context) { fun showNoPingNotification(context: Context) {
@ -234,6 +237,6 @@ object NotificationUtils {
true true
) )
show(context, NOTIFICATION_ID_WARNING, notification) show(context, NOTIFICATION_ID_NO_PING, notification)
} }
} }