mirror of
https://github.com/gedoor/legado.git
synced 2024-08-30 09:23:26 +08:00
优化
This commit is contained in:
parent
0a5f918c7c
commit
dbf64a36e2
@ -132,6 +132,7 @@ class WebViewActivity : VMBaseActivity<ActivityWebViewBinding, WebViewModel>() {
|
||||
viewModel.saveImage(webPic, path)
|
||||
}
|
||||
}
|
||||
|
||||
private fun selectSaveFolder() {
|
||||
val default = arrayListOf<SelectItem<Int>>()
|
||||
val path = ACache.get().getAsString(imagePathKey)
|
||||
@ -229,11 +230,10 @@ class WebViewActivity : VMBaseActivity<ActivityWebViewBinding, WebViewModel>() {
|
||||
} else {
|
||||
binding.titleBar.title = intent.getStringExtra("title")
|
||||
}
|
||||
if (title == "Just a moment...") {
|
||||
isCloudflareChallenge = true
|
||||
}
|
||||
if (isCloudflareChallenge && title != "Just a moment...") {
|
||||
if (viewModel.sourceVerificationEnable) {
|
||||
view.evaluateJavascript("!!window._cf_chl_opt") {
|
||||
if (it == "true") {
|
||||
isCloudflareChallenge = true
|
||||
} else if (isCloudflareChallenge && viewModel.sourceVerificationEnable) {
|
||||
viewModel.saveVerificationResult(intent) {
|
||||
finish()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user