|
|
@ -62,6 +62,9 @@ class WebViewLoginFragment : BaseFragment(R.layout.fragment_web_view_login) { |
|
|
|
settings.userAgentString = it |
|
|
|
settings.userAgentString = it |
|
|
|
} |
|
|
|
} |
|
|
|
val cookieManager = CookieManager.getInstance() |
|
|
|
val cookieManager = CookieManager.getInstance() |
|
|
|
|
|
|
|
source.loginUrl?.let { |
|
|
|
|
|
|
|
cookieManager.setCookie(it, CookieStore.getCookie(it)) |
|
|
|
|
|
|
|
} |
|
|
|
binding.webView.webViewClient = object : WebViewClient() { |
|
|
|
binding.webView.webViewClient = object : WebViewClient() { |
|
|
|
override fun onPageStarted(view: WebView?, url: String?, favicon: Bitmap?) { |
|
|
|
override fun onPageStarted(view: WebView?, url: String?, favicon: Bitmap?) { |
|
|
|
val cookie = cookieManager.getCookie(url) |
|
|
|
val cookie = cookieManager.getCookie(url) |
|
|
|