mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-21 20:47:03 -05:00
Don't toggle favorite status from snackbar if already added (fixes #5038)
This commit is contained in:
parent
122cdae5bc
commit
8d7ab13f5c
1 changed files with 3 additions and 1 deletions
|
@ -944,7 +944,9 @@ class MangaController :
|
|||
if (view != null && !manga.favorite) {
|
||||
addSnackbar = (activity as? MainActivity)?.binding?.rootCoordinator?.snack(view.context.getString(R.string.snack_add_to_library), Snackbar.LENGTH_INDEFINITE) {
|
||||
setAction(R.string.action_add) {
|
||||
addToLibrary(manga)
|
||||
if (!manga.favorite) {
|
||||
addToLibrary(manga)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue