From 0155f20451a07b1a3fab4a7a051a194e07324b5c Mon Sep 17 00:00:00 2001 From: kunfei Date: Sun, 1 Mar 2020 13:14:59 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/legado/app/help/http/AjaxWebView.kt | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/app/src/main/java/io/legado/app/help/http/AjaxWebView.kt b/app/src/main/java/io/legado/app/help/http/AjaxWebView.kt index 946b43f09..f501fcb71 100644 --- a/app/src/main/java/io/legado/app/help/http/AjaxWebView.kt +++ b/app/src/main/java/io/legado/app/help/http/AjaxWebView.kt @@ -1,7 +1,6 @@ package io.legado.app.help.http import android.annotation.SuppressLint -import android.net.http.SslError import android.os.Build import android.os.Handler import android.os.Looper @@ -9,11 +8,7 @@ import android.os.Message import android.text.TextUtils import android.webkit.* import io.legado.app.App -import io.legado.app.R import io.legado.app.constant.AppConst -import io.legado.app.lib.dialogs.alert -import io.legado.app.lib.dialogs.cancelButton -import io.legado.app.lib.dialogs.okButton import org.apache.commons.text.StringEscapeUtils import java.lang.ref.WeakReference @@ -171,14 +166,6 @@ class AjaxWebView { ).sendToTarget() } } - - override fun onReceivedSslError(view: WebView, handler: SslErrorHandler, error: SslError) { - App.INSTANCE.alert(titleResource = R.string.sure) { - message = "${view.url}证书不匹配,是否继续访问" - okButton { handler.proceed() } - cancelButton { handler.cancel() } - }.show() - } } private class EvalJsRunnable( @@ -250,14 +237,6 @@ class AjaxWebView { } } - override fun onReceivedSslError(view: WebView, handler: SslErrorHandler, error: SslError) { - App.INSTANCE.alert(titleResource = R.string.sure) { - message = "${view.url}证书不匹配,是否继续访问" - okButton { handler.proceed() } - cancelButton { handler.cancel() } - }.show() - } - override fun onPageFinished(view: WebView, url: String) { params.setCookie(url) if (params.hasJavaScript()) {