mirror of
https://github.com/home-assistant/android
synced 2024-07-22 19:04:20 +00:00
Remove toast when failing to send notification clear event (#2576)
This commit is contained in:
parent
809c7a4f09
commit
cfafffd27f
|
@ -4,14 +4,12 @@ import android.content.BroadcastReceiver
|
|||
import android.content.Context
|
||||
import android.content.Intent
|
||||
import android.util.Log
|
||||
import android.widget.Toast
|
||||
import androidx.core.app.NotificationManagerCompat
|
||||
import dagger.hilt.android.AndroidEntryPoint
|
||||
import io.homeassistant.companion.android.common.data.integration.IntegrationRepository
|
||||
import io.homeassistant.companion.android.common.util.cancelGroupIfNeeded
|
||||
import kotlinx.coroutines.runBlocking
|
||||
import javax.inject.Inject
|
||||
import io.homeassistant.companion.android.common.R as commonR
|
||||
|
||||
@AndroidEntryPoint
|
||||
class NotificationDeleteReceiver : BroadcastReceiver() {
|
||||
|
@ -44,11 +42,6 @@ class NotificationDeleteReceiver : BroadcastReceiver() {
|
|||
Log.d(TAG, "Notification cleared event successful!")
|
||||
} catch (e: Exception) {
|
||||
Log.e(TAG, "Issue sending event to Home Assistant", e)
|
||||
Toast.makeText(
|
||||
context,
|
||||
commonR.string.notification_clear_failure,
|
||||
Toast.LENGTH_LONG
|
||||
).show()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -374,7 +374,6 @@
|
|||
<string name="none">None</string>
|
||||
<string name="none_selected">None selected</string>
|
||||
<string name="not_private">Your connection to this site is not private.</string>
|
||||
<string name="notification_clear_failure">Failed to send event on notification cleared</string>
|
||||
<string name="notification_data">Full Notification Data</string>
|
||||
<string name="notification_dismiss_failure">Failed to send event on notification dismissed</string>
|
||||
<string name="notification_history_summary">History of Notifications (currently displays the last 25 notifications received)</string>
|
||||
|
|
Loading…
Reference in a new issue