Remove toast when failing to send notification clear event (#2576)

This commit is contained in:
Aaron Wood 2022-08-29 17:31:49 -07:00 committed by GitHub
parent 809c7a4f09
commit cfafffd27f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 8 deletions

View file

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

View file

@ -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>