From 22160a6a95e0613e163190627a383b128da6d3d9 Mon Sep 17 00:00:00 2001 From: mueller-ma Date: Mon, 8 Jul 2024 22:14:08 +0200 Subject: [PATCH] Update summary notification for any notificationId There's no guarantee that the hash of the string id is greater than 0. Signed-off-by: mueller-ma --- .../openhab/habdroid/core/NotificationDismissedReceiver.kt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/mobile/src/main/java/org/openhab/habdroid/core/NotificationDismissedReceiver.kt b/mobile/src/main/java/org/openhab/habdroid/core/NotificationDismissedReceiver.kt index 98fdc3d77a..21c17ac699 100644 --- a/mobile/src/main/java/org/openhab/habdroid/core/NotificationDismissedReceiver.kt +++ b/mobile/src/main/java/org/openhab/habdroid/core/NotificationDismissedReceiver.kt @@ -22,10 +22,7 @@ import org.openhab.habdroid.core.NotificationHelper.Companion.NOTIFICATION_ID_EX class NotificationDismissedReceiver : BroadcastReceiver() { override fun onReceive(context: Context, intent: Intent) { Log.d(TAG, "onReceive(): $intent") - val notificationId = intent.getIntExtra(NOTIFICATION_ID_EXTRA, -1) - if (notificationId < 0) { - return - } + val notificationId = intent.getIntExtra(NOTIFICATION_ID_EXTRA, 0) Log.d(TAG, "Dismissed notification $notificationId") NotificationHelper(context).updateGroupNotification() }