From 6de06419f8afd842f7037e3ecb51200037af3a85 Mon Sep 17 00:00:00 2001 From: Cuong-Tran Date: Sat, 26 Oct 2024 21:12:34 +0700 Subject: [PATCH] Fix app crash when removing tracked entry from tracker (#1380) --- .../eu/kanade/tachiyomi/ui/manga/track/TrackInfoDialog.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/track/TrackInfoDialog.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/track/TrackInfoDialog.kt index 4dd6310f3..3541be7ac 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/track/TrackInfoDialog.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/track/TrackInfoDialog.kt @@ -824,7 +824,11 @@ private data class TrackerRemoveScreen( fun deleteMangaFromService() { screenModelScope.launchNonCancellable { - (tracker as DeletableTracker).delete(track) + try { + (tracker as DeletableTracker).delete(track) + } catch (e: Exception) { + logcat(LogPriority.ERROR, e) { "Failed to delete entry from service" } + } } }