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
loadWithOverviewMode = true
javaScriptEnabled = true
builtInZoomControls = true
displayZoomControls = false
headerMap[AppConst.UA_NAME]?.let {
userAgentString = it
}

@ -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
}

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

Loading…
Cancel
Save