From 671d078d0b7fd6a721d94f9e07416946ce458361 Mon Sep 17 00:00:00 2001 From: Horis <821938089@qq.com> Date: Fri, 25 Nov 2022 23:04:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/ui/browser/WebViewActivity.kt | 2 ++ .../main/java/io/legado/app/ui/login/WebViewLoginFragment.kt | 1 + app/src/main/java/io/legado/app/ui/rss/read/ReadRssActivity.kt | 1 + 3 files changed, 4 insertions(+) diff --git a/app/src/main/java/io/legado/app/ui/browser/WebViewActivity.kt b/app/src/main/java/io/legado/app/ui/browser/WebViewActivity.kt index 690ed858a..cc57653fb 100644 --- a/app/src/main/java/io/legado/app/ui/browser/WebViewActivity.kt +++ b/app/src/main/java/io/legado/app/ui/browser/WebViewActivity.kt @@ -93,6 +93,8 @@ class WebViewActivity : VMBaseActivity() { useWideViewPort = true loadWithOverviewMode = true javaScriptEnabled = true + builtInZoomControls = true + displayZoomControls = false headerMap[AppConst.UA_NAME]?.let { userAgentString = it } diff --git a/app/src/main/java/io/legado/app/ui/login/WebViewLoginFragment.kt b/app/src/main/java/io/legado/app/ui/login/WebViewLoginFragment.kt index 9c19605a4..1dcc5bd68 100644 --- a/app/src/main/java/io/legado/app/ui/login/WebViewLoginFragment.kt +++ b/app/src/main/java/io/legado/app/ui/login/WebViewLoginFragment.kt @@ -64,6 +64,7 @@ class WebViewLoginFragment : BaseFragment(R.layout.fragment_web_view_login) { loadWithOverviewMode = true builtInZoomControls = true javaScriptEnabled = true + displayZoomControls = false source.getHeaderMap()[AppConst.UA_NAME]?.let { userAgentString = it } diff --git a/app/src/main/java/io/legado/app/ui/rss/read/ReadRssActivity.kt b/app/src/main/java/io/legado/app/ui/rss/read/ReadRssActivity.kt index a15a6e95f..b27aeecb2 100644 --- a/app/src/main/java/io/legado/app/ui/rss/read/ReadRssActivity.kt +++ b/app/src/main/java/io/legado/app/ui/rss/read/ReadRssActivity.kt @@ -125,6 +125,7 @@ class ReadRssActivity : VMBaseActivity domStorageEnabled = true allowContentAccess = true builtInZoomControls = true + displayZoomControls = false setDarkeningAllowed(AppConfig.isNightTheme) } binding.webView.addJavascriptInterface(this, "app")