Show single notification as bigtext

Fix #10
This commit is contained in:
sim 2024-10-29 15:13:25 +00:00
parent dfeec5cc43
commit c2a27b5233

View File

@ -19,10 +19,10 @@ import java.util.concurrent.atomic.AtomicBoolean
import java.util.concurrent.atomic.AtomicInteger
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 const val NOTIFICATION_ID_WARNING = 51215
private const val NOTIFICATION_ID_NO_START = 51315
private const val NOTIFICATION_ID_LOW_KEEPALIVE = 51315
private const val NOTIFICATION_ID_NO_PING = 51515
data class ChannelData(
val id: String,
@ -141,7 +141,7 @@ open class AppNotification(
fun showSingle() {
if (!shown.getAndSet(true)) {
show(notificationId, create())
show(notificationId, create(true))
}
}