mirror of
https://github.com/home-assistant/android
synced 2024-09-18 23:52:51 +00:00
Rename notification dismissed to notification cleared for event type limit (#1041)
This commit is contained in:
parent
120d1c26f6
commit
1f5943e102
|
@ -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()
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue