mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
fix(manga): Missing "withUIContext"
This commit is contained in:
parent
2f8ae26a83
commit
28cbf0b988
1 changed files with 25 additions and 23 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue