mirror of
https://github.com/aniyomiorg/aniyomi.git
synced 2024-11-22 04:39:32 +03:00
Fix app crash when removing tracked entry from tracker
Co-authored-by: Cuong-Tran <16017808+cuong-tran@users.noreply.github.com>
This commit is contained in:
parent
38955686fd
commit
e7714533b1
2 changed files with 10 additions and 2 deletions
|
@ -847,7 +847,11 @@ private data class TrackerAnimeRemoveScreen(
|
|||
|
||||
fun deleteAnimeFromService() {
|
||||
screenModelScope.launchNonCancellable {
|
||||
(tracker as DeletableAnimeTracker).delete(track)
|
||||
try {
|
||||
(tracker as DeletableAnimeTracker).delete(track)
|
||||
} catch (e: Exception) {
|
||||
logcat(LogPriority.ERROR, e) { "Failed to delete anime entry from service" }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -847,7 +847,11 @@ private data class TrackerMangaRemoveScreen(
|
|||
|
||||
fun deleteMangaFromService() {
|
||||
screenModelScope.launchNonCancellable {
|
||||
(tracker as DeletableMangaTracker).delete(track)
|
||||
try {
|
||||
(tracker as DeletableMangaTracker).delete(track)
|
||||
} catch (e: Exception) {
|
||||
logcat(LogPriority.ERROR, e) { "Failed to delete manga entry from service" }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue