mirror of
https://github.com/gedoor/legado.git
synced 2024-08-30 09:23:26 +08:00
优化
This commit is contained in:
parent
74b2134041
commit
cf955e3584
@ -1,5 +1,6 @@
|
||||
package io.legado.app.lib.cronet
|
||||
|
||||
import android.annotation.SuppressLint
|
||||
import android.os.Build
|
||||
import androidx.annotation.Keep
|
||||
import io.legado.app.utils.printOnDebug
|
||||
@ -43,6 +44,7 @@ class CronetInterceptor(private val cookieJar: CookieJar) : Interceptor {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressLint("ObsoleteSdkInt")
|
||||
private fun proceedWithCronet(request: Request, call: Call): Response? {
|
||||
val callBack = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
|
||||
NewCallBack(request, call)
|
||||
|
Loading…
Reference in New Issue
Block a user