|
|
|
@ -54,12 +54,12 @@ class WebViewLoginFragment : BaseFragment(R.layout.fragment_web_view_login) { |
|
|
|
|
|
|
|
|
|
@SuppressLint("SetJavaScriptEnabled") |
|
|
|
|
private fun initWebView(source: BaseSource) { |
|
|
|
|
val settings = binding.webView.settings |
|
|
|
|
settings.setSupportZoom(true) |
|
|
|
|
settings.builtInZoomControls = true |
|
|
|
|
settings.javaScriptEnabled = true |
|
|
|
|
binding.webView.settings.apply { |
|
|
|
|
builtInZoomControls = true |
|
|
|
|
javaScriptEnabled = true |
|
|
|
|
source.getHeaderMap()[AppConst.UA_NAME]?.let { |
|
|
|
|
settings.userAgentString = it |
|
|
|
|
userAgentString = it |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
val cookieManager = CookieManager.getInstance() |
|
|
|
|
source.loginUrl?.let { |
|
|
|
|