mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-21 20:47:03 -05:00
Fix app crash when removing tracked entry from tracker (#1380)
This commit is contained in:
parent
fc2f339ea1
commit
6de06419f8
1 changed files with 5 additions and 1 deletions
|
@ -824,7 +824,11 @@ private data class TrackerRemoveScreen(
|
||||||
|
|
||||||
fun deleteMangaFromService() {
|
fun deleteMangaFromService() {
|
||||||
screenModelScope.launchNonCancellable {
|
screenModelScope.launchNonCancellable {
|
||||||
|
try {
|
||||||
(tracker as DeletableTracker).delete(track)
|
(tracker as DeletableTracker).delete(track)
|
||||||
|
} catch (e: Exception) {
|
||||||
|
logcat(LogPriority.ERROR, e) { "Failed to delete entry from service" }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue