From 57d1ed1073ab99282d75b733efe94c6394ad63d0 Mon Sep 17 00:00:00 2001 From: arkon Date: Sun, 16 Feb 2020 17:41:21 -0500 Subject: [PATCH] Hide share icon for manga info if not from online source --- .../eu/kanade/tachiyomi/ui/manga/info/MangaInfoController.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/info/MangaInfoController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/info/MangaInfoController.kt index df99533cd..14e8855fb 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/info/MangaInfoController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/info/MangaInfoController.kt @@ -133,6 +133,10 @@ class MangaInfoController : NucleusController(), override fun onCreateOptionsMenu(menu: Menu, inflater: MenuInflater) { 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 {