mirror of
https://github.com/mihonapp/mihon.git
synced 2025-01-27 18:34:55 +01:00
Fix app crash when removing tracked entry from tracker (#1380)
This commit is contained in:
parent
fc2f339ea1
commit
6de06419f8
@ -824,7 +824,11 @@ private data class TrackerRemoveScreen(
|
|||||||
|
|
||||||
fun deleteMangaFromService() {
|
fun deleteMangaFromService() {
|
||||||
screenModelScope.launchNonCancellable {
|
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" }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user