|
@@ -315,7 +315,8 @@ class MangaController :
|
|
|
// Hide download options for local manga
|
|
|
menu.findItem(R.id.download_group).isVisible = !isLocalSource
|
|
|
|
|
|
- // Hide edit cover and migrate options for non-library manga
|
|
|
+ // Hide options for non-library manga
|
|
|
+ menu.findItem(R.id.action_edit_categories).isVisible = presenter.manga.favorite && presenter.getCategories().isNotEmpty()
|
|
|
menu.findItem(R.id.action_edit_cover).isVisible = presenter.manga.favorite
|
|
|
menu.findItem(R.id.action_migrate).isVisible = presenter.manga.favorite
|
|
|
}
|
|
@@ -377,6 +378,7 @@ class MangaController :
|
|
|
activity?.invalidateOptionsMenu()
|
|
|
}
|
|
|
|
|
|
+ R.id.action_edit_categories -> onCategoriesClick()
|
|
|
R.id.action_edit_cover -> handleChangeCover()
|
|
|
R.id.action_migrate -> migrateManga()
|
|
|
}
|
|
@@ -526,7 +528,7 @@ class MangaController :
|
|
|
mangaInfoAdapter?.notifyDataSetChanged()
|
|
|
}
|
|
|
|
|
|
- fun onCategoriesClick() {
|
|
|
+ private fun onCategoriesClick() {
|
|
|
val manga = presenter.manga
|
|
|
val categories = presenter.getCategories()
|
|
|
|