mirror of
https://github.com/home-assistant/android
synced 2024-09-19 08:01:31 +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 {
|
runBlocking {
|
||||||
try {
|
try {
|
||||||
integrationRepository.fireEvent("mobile_app_notification_dismissed", hashData)
|
integrationRepository.fireEvent("mobile_app_notification_cleared", hashData)
|
||||||
Log.d(TAG, "Notification dismiss event successful!")
|
Log.d(TAG, "Notification cleared event successful!")
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
Log.e(TAG, "Issue sending event to Home Assistant", e)
|
Log.e(TAG, "Issue sending event to Home Assistant", e)
|
||||||
Toast.makeText(
|
Toast.makeText(
|
||||||
context,
|
context,
|
||||||
R.string.notification_dismiss_failure,
|
R.string.notification_clear_failure,
|
||||||
Toast.LENGTH_LONG
|
Toast.LENGTH_LONG
|
||||||
).show()
|
).show()
|
||||||
}
|
}
|
||||||
|
|
|
@ -139,7 +139,7 @@ Home Assistant instance</string>
|
||||||
<string name="manual_setup">enter address manually</string>
|
<string name="manual_setup">enter address manually</string>
|
||||||
<string name="map">Map</string>
|
<string name="map">Map</string>
|
||||||
<string name="need_help">Need Help?</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="nfc_btn_create_duplicate">Create duplicate</string>
|
||||||
<string name="rate_limit_title">Notification Rate Limit</string>
|
<string name="rate_limit_title">Notification Rate Limit</string>
|
||||||
<string name="rate_limit_summary">Rate limit data</string>
|
<string name="rate_limit_summary">Rate limit data</string>
|
||||||
|
|
Loading…
Reference in a new issue