mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
优化
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user