pull/2605/head
Horis 2 years ago
parent 71bfc03620
commit 671d078d0b
  1. 2
      app/src/main/java/io/legado/app/ui/browser/WebViewActivity.kt
  2. 1
      app/src/main/java/io/legado/app/ui/login/WebViewLoginFragment.kt
  3. 1
      app/src/main/java/io/legado/app/ui/rss/read/ReadRssActivity.kt

@ -93,6 +93,8 @@ class WebViewActivity : VMBaseActivity<ActivityWebViewBinding, WebViewModel>() {
useWideViewPort = true useWideViewPort = true
loadWithOverviewMode = true loadWithOverviewMode = true
javaScriptEnabled = true javaScriptEnabled = true
builtInZoomControls = true
displayZoomControls = false
headerMap[AppConst.UA_NAME]?.let { headerMap[AppConst.UA_NAME]?.let {
userAgentString = it userAgentString = it
} }

@ -64,6 +64,7 @@ class WebViewLoginFragment : BaseFragment(R.layout.fragment_web_view_login) {
loadWithOverviewMode = true loadWithOverviewMode = true
builtInZoomControls = true builtInZoomControls = true
javaScriptEnabled = true javaScriptEnabled = true
displayZoomControls = false
source.getHeaderMap()[AppConst.UA_NAME]?.let { source.getHeaderMap()[AppConst.UA_NAME]?.let {
userAgentString = it userAgentString = it
} }

@ -125,6 +125,7 @@ class ReadRssActivity : VMBaseActivity<ActivityRssReadBinding, ReadRssViewModel>
domStorageEnabled = true domStorageEnabled = true
allowContentAccess = true allowContentAccess = true
builtInZoomControls = true builtInZoomControls = true
displayZoomControls = false
setDarkeningAllowed(AppConfig.isNightTheme) setDarkeningAllowed(AppConfig.isNightTheme)
} }
binding.webView.addJavascriptInterface(this, "app") binding.webView.addJavascriptInterface(this, "app")

Loading…
Cancel
Save