perf: removed "annoying" network interceptor

This commit is contained in:
antonio 2023-05-07 19:42:42 +02:00
parent 48f6d61d24
commit 5623569667

View file

@ -41,7 +41,7 @@ class RetrofitClient(subsonic: Subsonic) {
.writeTimeout(30, TimeUnit.SECONDS) .writeTimeout(30, TimeUnit.SECONDS)
.addInterceptor(getHttpLoggingInterceptor()) .addInterceptor(getHttpLoggingInterceptor())
.addInterceptor(cacheUtil.offlineInterceptor) .addInterceptor(cacheUtil.offlineInterceptor)
.addNetworkInterceptor(cacheUtil.onlineInterceptor) // .addNetworkInterceptor(cacheUtil.onlineInterceptor)
.cache(getCache()) .cache(getCache())
.build() .build()
} }