mirror of
https://github.com/gedoor/legado.git
synced 2024-08-30 09:23:26 +08:00
优化
This commit is contained in:
parent
2d2a40effb
commit
f703435f49
@ -51,6 +51,7 @@ class CronetInterceptor(private val cookieJar: CookieJar) : Interceptor {
|
||||
chain.proceed(original)
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
e.printOnDebug()
|
||||
return chain.proceed(original)
|
||||
}
|
||||
}
|
||||
|
@ -71,7 +71,8 @@ val okHttpClient: OkHttpClient by lazy {
|
||||
if (!AppConst.isPlayChannel && AppConfig.isCronet) {
|
||||
if (Cronet.loader?.install() == true) {
|
||||
Cronet.interceptor?.let {
|
||||
builder.addInterceptor(it)
|
||||
//崩溃
|
||||
//builder.addInterceptor(it)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user