From c911bfb9f92037d34ac40f2730e0327df01ef88a Mon Sep 17 00:00:00 2001 From: gedoor Date: Sun, 26 Sep 2021 12:25:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/legado/app/help/http/BackstageWebView.kt | 3 +-- .../java/io/legado/app/help/http/RetryInterceptor.kt | 12 ------------ 2 files changed, 1 insertion(+), 14 deletions(-) delete mode 100644 app/src/main/java/io/legado/app/help/http/RetryInterceptor.kt diff --git a/app/src/main/java/io/legado/app/help/http/BackstageWebView.kt b/app/src/main/java/io/legado/app/help/http/BackstageWebView.kt index da88b0156..8cfff3e6c 100644 --- a/app/src/main/java/io/legado/app/help/http/BackstageWebView.kt +++ b/app/src/main/java/io/legado/app/help/http/BackstageWebView.kt @@ -28,7 +28,7 @@ class BackstageWebView( private val sourceRegex: String? = null, private val javaScript: String? = null, ) { - private lateinit var job: Job + private val mHandler = Handler(Looper.getMainLooper()) private var callback: Callback? = null private var mWebView: WebView? = null @@ -98,7 +98,6 @@ class BackstageWebView( private fun destroy() { mWebView?.destroy() mWebView = null - job.cancel() } private fun getJs(): String { diff --git a/app/src/main/java/io/legado/app/help/http/RetryInterceptor.kt b/app/src/main/java/io/legado/app/help/http/RetryInterceptor.kt deleted file mode 100644 index 00c4a0881..000000000 --- a/app/src/main/java/io/legado/app/help/http/RetryInterceptor.kt +++ /dev/null @@ -1,12 +0,0 @@ -package io.legado.app.help.http - -import okhttp3.Interceptor -import okhttp3.Response - -class RetryInterceptor : Interceptor { - - override fun intercept(chain: Interceptor.Chain): Response { - TODO("Not yet implemented") - } - -} \ No newline at end of file