mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-23 00:31:51 +01:00
Fix manga overflow menu items not appearing after adding to library via categories
This commit is contained in:
parent
08dc57fd02
commit
e6a63ee5b2
@ -398,12 +398,10 @@ class MangaController :
|
|||||||
if (manga.favorite) {
|
if (manga.favorite) {
|
||||||
toggleFavorite()
|
toggleFavorite()
|
||||||
activity?.toast(activity?.getString(R.string.manga_removed_library))
|
activity?.toast(activity?.getString(R.string.manga_removed_library))
|
||||||
|
activity?.invalidateOptionsMenu()
|
||||||
} else {
|
} else {
|
||||||
addToLibrary(manga)
|
addToLibrary(manga)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update menu to show migrate option
|
|
||||||
activity?.invalidateOptionsMenu()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fun onTrackingClick() {
|
fun onTrackingClick() {
|
||||||
@ -421,6 +419,7 @@ class MangaController :
|
|||||||
toggleFavorite()
|
toggleFavorite()
|
||||||
presenter.moveMangaToCategory(manga, defaultCategory)
|
presenter.moveMangaToCategory(manga, defaultCategory)
|
||||||
activity?.toast(activity?.getString(R.string.manga_added_library))
|
activity?.toast(activity?.getString(R.string.manga_added_library))
|
||||||
|
activity?.invalidateOptionsMenu()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Automatic 'Default' or no categories
|
// Automatic 'Default' or no categories
|
||||||
@ -428,6 +427,7 @@ class MangaController :
|
|||||||
toggleFavorite()
|
toggleFavorite()
|
||||||
presenter.moveMangaToCategory(manga, null)
|
presenter.moveMangaToCategory(manga, null)
|
||||||
activity?.toast(activity?.getString(R.string.manga_added_library))
|
activity?.toast(activity?.getString(R.string.manga_added_library))
|
||||||
|
activity?.invalidateOptionsMenu()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Choose a category
|
// Choose a category
|
||||||
@ -478,6 +478,7 @@ class MangaController :
|
|||||||
if (!manga.favorite) {
|
if (!manga.favorite) {
|
||||||
toggleFavorite()
|
toggleFavorite()
|
||||||
activity?.toast(activity?.getString(R.string.manga_added_library))
|
activity?.toast(activity?.getString(R.string.manga_added_library))
|
||||||
|
activity?.invalidateOptionsMenu()
|
||||||
}
|
}
|
||||||
|
|
||||||
presenter.moveMangaToCategories(manga, categories)
|
presenter.moveMangaToCategories(manga, categories)
|
||||||
|
Loading…
Reference in New Issue
Block a user