Fix notification shown attribute

This commit is contained in:
sim 2023-08-31 08:16:38 +02:00
parent 747beb7620
commit 780370494c
1 changed files with 4 additions and 2 deletions

View File

@ -43,8 +43,6 @@ open class AppNotification(
private val notificationData: NotificationData, private val notificationData: NotificationData,
private val channelData: ChannelData, private val channelData: ChannelData,
) { ) {
private val shown = AtomicBoolean(false)
private fun createNotificationChannel() { private fun createNotificationChannel() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
val notificationManager = val notificationManager =
@ -143,6 +141,10 @@ open class AppNotification(
deleteNotification(notificationId) deleteNotification(notificationId)
} }
} }
companion object {
private val shown = AtomicBoolean(false)
}
} }
private val Context.warningChannelData: ChannelData private val Context.warningChannelData: ChannelData