From 1a4dad72a9e7e5eb5326f5846c50698fe2bb6673 Mon Sep 17 00:00:00 2001 From: arkon Date: Mon, 16 Jan 2023 22:40:10 -0500 Subject: [PATCH] Hide WebView menu item in reader if local Closes #8932 --- .../main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt index def083f3c..73d7de038 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt @@ -50,6 +50,7 @@ import eu.kanade.tachiyomi.R import eu.kanade.tachiyomi.data.notification.NotificationReceiver import eu.kanade.tachiyomi.data.notification.Notifications import eu.kanade.tachiyomi.databinding.ReaderActivityBinding +import eu.kanade.tachiyomi.source.online.HttpSource import eu.kanade.tachiyomi.ui.base.activity.BaseActivity import eu.kanade.tachiyomi.ui.main.MainActivity import eu.kanade.tachiyomi.ui.reader.ReaderViewModel.SetAsCoverResult.AddToLibraryFirst @@ -314,6 +315,7 @@ class ReaderActivity : BaseActivity() { val isChapterBookmarked = viewModel.getCurrentChapter()?.chapter?.bookmark ?: false menu.findItem(R.id.action_bookmark).isVisible = !isChapterBookmarked menu.findItem(R.id.action_remove_bookmark).isVisible = isChapterBookmarked + menu.findItem(R.id.action_open_in_web_view).isVisible = viewModel.getSource() is HttpSource return true }