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

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

Loading…
Cancel
Save