mirror of
https://github.com/gedoor/legado.git
synced 2024-08-30 09:23:26 +08:00
优化
This commit is contained in:
parent
004cf2e2fa
commit
dd10f3e62c
@ -43,7 +43,7 @@ class BackstageWebView(
|
|||||||
destroy()
|
destroy()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
callback = object : BackstageWebView.Callback() {
|
callback = object : Callback() {
|
||||||
override fun onResult(response: StrResponse) {
|
override fun onResult(response: StrResponse) {
|
||||||
if (!block.isCompleted)
|
if (!block.isCompleted)
|
||||||
block.resume(response)
|
block.resume(response)
|
||||||
|
@ -70,9 +70,6 @@ class WebViewLoginFragment : BaseFragment(R.layout.fragment_web_view_login) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user