mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-11 17:30:49 +01:00
Hide share icon for manga info if not from online source
This commit is contained in:
parent
b04ebb1782
commit
57d1ed1073
1 changed files with 4 additions and 0 deletions
|
@ -133,6 +133,10 @@ class MangaInfoController : NucleusController<MangaInfoPresenter>(),
|
||||||
|
|
||||||
override fun onCreateOptionsMenu(menu: Menu, inflater: MenuInflater) {
|
override fun onCreateOptionsMenu(menu: Menu, inflater: MenuInflater) {
|
||||||
inflater.inflate(R.menu.manga_info, menu)
|
inflater.inflate(R.menu.manga_info, menu)
|
||||||
|
|
||||||
|
if (presenter.source !is HttpSource) {
|
||||||
|
menu.findItem(R.id.action_share).isVisible = false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onOptionsItemSelected(item: MenuItem): Boolean {
|
override fun onOptionsItemSelected(item: MenuItem): Boolean {
|
||||||
|
|
Loading…
Reference in a new issue