fix(manga): Missing "withUIContext"

This commit is contained in:
Ahmad Ansori Palembani 2024-12-08 08:07:26 +07:00
parent 2f8ae26a83
commit 28cbf0b988
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6

View file

@ -311,7 +311,8 @@ suspend fun Manga.addOrRemoveToFavorites(
)
)
onMangaMoved()
return view.snack(view.context.getString(MR.strings.removed_from_library), Snackbar.LENGTH_INDEFINITE) {
return withUIContext {
view.snack(view.context.getString(MR.strings.removed_from_library), Snackbar.LENGTH_INDEFINITE) {
setAction(MR.strings.undo) {
favorite = true
date_added = lastAddedDate
@ -338,6 +339,7 @@ suspend fun Manga.addOrRemoveToFavorites(
)
}
}
}
return null
}