From 1f5943e102a93e1a316f14670de5ccf9dbf5f35a Mon Sep 17 00:00:00 2001 From: Daniel Shokouhi Date: Tue, 13 Oct 2020 09:29:32 -0700 Subject: [PATCH] Rename notification dismissed to notification cleared for event type limit (#1041) --- .../android/notifications/NotificationDeleteReceiver.kt | 6 +++--- app/src/main/res/values/strings.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/full/java/io/homeassistant/companion/android/notifications/NotificationDeleteReceiver.kt b/app/src/full/java/io/homeassistant/companion/android/notifications/NotificationDeleteReceiver.kt index e97390ce6..347c0b2bd 100644 --- a/app/src/full/java/io/homeassistant/companion/android/notifications/NotificationDeleteReceiver.kt +++ b/app/src/full/java/io/homeassistant/companion/android/notifications/NotificationDeleteReceiver.kt @@ -45,13 +45,13 @@ class NotificationDeleteReceiver : BroadcastReceiver() { runBlocking { try { - integrationRepository.fireEvent("mobile_app_notification_dismissed", hashData) - Log.d(TAG, "Notification dismiss event successful!") + integrationRepository.fireEvent("mobile_app_notification_cleared", hashData) + Log.d(TAG, "Notification cleared event successful!") } catch (e: Exception) { Log.e(TAG, "Issue sending event to Home Assistant", e) Toast.makeText( context, - R.string.notification_dismiss_failure, + R.string.notification_clear_failure, Toast.LENGTH_LONG ).show() } diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 38a30551d..57246f304 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -139,7 +139,7 @@ Home Assistant instance enter address manually Map Need Help? - Failed to send event on notification dismissed + Failed to send event on notification cleared Create duplicate Notification Rate Limit Rate limit data