Skip to content

Commit

Permalink
Fix app crash when removing tracked entry from tracker (jobobby04#1380)
Browse files Browse the repository at this point in the history
(cherry picked from commit 6de0641)
  • Loading branch information
cuong-tran authored and jobobby04 committed Oct 27, 2024
1 parent 633a189 commit f3e9055
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
}
}
}

Expand Down

0 comments on commit f3e9055

Please sign in to comment.