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() 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) { setAction(MR.strings.undo) {
favorite = true favorite = true
date_added = lastAddedDate date_added = lastAddedDate
@ -338,6 +339,7 @@ suspend fun Manga.addOrRemoveToFavorites(
) )
} }
} }
}
return null return null
} }