Rename notification dismissed to notification cleared for event type limit (#1041)

This commit is contained in:
Daniel Shokouhi 2020-10-13 09:29:32 -07:00 committed by GitHub
parent 120d1c26f6
commit 1f5943e102
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -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()
}

View file

@ -139,7 +139,7 @@ Home Assistant instance</string>
<string name="manual_setup">enter address manually</string>
<string name="map">Map</string>
<string name="need_help">Need Help?</string>
<string name="notification_dismiss_failure">Failed to send event on notification dismissed</string>
<string name="notification_clear_failure">Failed to send event on notification cleared</string>
<string name="nfc_btn_create_duplicate">Create duplicate</string>
<string name="rate_limit_title">Notification Rate Limit</string>
<string name="rate_limit_summary">Rate limit data</string>