From b8f7ae703a40a77d47c331c6c817bce22c26fa32 Mon Sep 17 00:00:00 2001 From: kunfei Date: Sun, 17 Jul 2022 23:09:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=99=BB=E9=99=86=E7=95=8C?= =?UTF-8?q?=E9=9D=A2=E9=83=A8=E5=88=86=E7=BD=91=E9=A1=B5=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E6=97=A0=E5=8F=8D=E5=BA=94=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/legado/app/ui/login/WebViewLoginFragment.kt | 5 +++++ 1 file changed, 5 insertions(+) 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 01e3a323d..0401a1fd9 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 @@ -7,6 +7,7 @@ import android.view.Menu import android.view.MenuItem import android.view.View import android.webkit.CookieManager +import android.webkit.WebSettings import android.webkit.WebView import android.webkit.WebViewClient import androidx.fragment.app.activityViewModels @@ -57,6 +58,10 @@ class WebViewLoginFragment : BaseFragment(R.layout.fragment_web_view_login) { @SuppressLint("SetJavaScriptEnabled") private fun initWebView(source: BaseSource) { binding.webView.settings.apply { + mixedContentMode = WebSettings.MIXED_CONTENT_ALWAYS_ALLOW + domStorageEnabled = true + useWideViewPort = true + loadWithOverviewMode = true builtInZoomControls = true javaScriptEnabled = true source.getHeaderMap()[AppConst.UA_NAME]?.let {