Fix app crash when removing tracked entry from tracker (#1380)

This commit is contained in:
Cuong-Tran 2024-10-26 21:12:34 +07:00 committed by GitHub
parent fc2f339ea1
commit 6de06419f8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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" }
}
}
}