pull/1391/head
gedoor 3 years ago
parent 8919180b1c
commit eb1ffa40dc
  1. 6
      app/src/main/java/io/legado/app/help/http/HttpHelper.kt

@ -44,10 +44,8 @@ val okHttpClient: OkHttpClient by lazy {
.build()
chain.proceed(request)
})
if (AppConfig.isCronet && CronetLoader.install()) {
cronetEngine?.let {
builder.addInterceptor(CronetInterceptor(null))
}
if (AppConfig.isCronet && CronetLoader.install() && cronetEngine != null) {
builder.addInterceptor(CronetInterceptor(null))
}
builder.build()
}

Loading…
Cancel
Save