浏览代码

Hide share icon for manga info if not from online source

arkon 5 年之前
父节点
当前提交
57d1ed1073
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      app/src/main/java/eu/kanade/tachiyomi/ui/manga/info/MangaInfoController.kt

+ 4 - 0
app/src/main/java/eu/kanade/tachiyomi/ui/manga/info/MangaInfoController.kt

@@ -133,6 +133,10 @@ class MangaInfoController : NucleusController<MangaInfoPresenter>(),
 
     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 {