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