Removed online interceptor

This commit is contained in:
CappielloAntonio 2021-09-13 17:17:56 +02:00
parent b0f79a9237
commit 45361c4851
4 changed files with 1 additions and 3 deletions

1
.idea/misc.xml generated
View file

@ -11,6 +11,7 @@
<entry key="app/src/main/res/drawable-v24/ic_play_for_work.xml" value="0.28055555555555556" />
<entry key="app/src/main/res/drawable-v24/ic_shuffle.xml" value="0.28055555555555556" />
<entry key="app/src/main/res/drawable-v24/ic_toolbar_motion_on.xml" value="0.28055555555555556" />
<entry key="app/src/main/res/drawable/bottom_nav_selector.xml" value="0.36203703703703705" />
<entry key="app/src/main/res/drawable/bottom_nav_shape.xml" value="0.28055555555555556" />
<entry key="app/src/main/res/drawable/dialog_shape.xml" value="0.27685185185185185" />
<entry key="app/src/main/res/drawable/ic_arrow_back.xml" value="0.28055555555555556" />

View file

@ -60,7 +60,6 @@ public class MediaAnnotationClient {
return new OkHttpClient.Builder()
.addInterceptor(getHttpLoggingInterceptor())
.addInterceptor(cacheUtil.offlineInterceptor)
.addNetworkInterceptor(cacheUtil.onlineInterceptor)
.cache(getCache())
.build();
}

View file

@ -50,7 +50,6 @@ public class MediaLibraryScanningClient {
return new OkHttpClient.Builder()
.addInterceptor(getHttpLoggingInterceptor())
.addInterceptor(cacheUtil.offlineInterceptor)
.addNetworkInterceptor(cacheUtil.onlineInterceptor)
.cache(getCache())
.build();
}

View file

@ -67,7 +67,6 @@ public class PlaylistClient {
return new OkHttpClient.Builder()
.addInterceptor(getHttpLoggingInterceptor())
.addInterceptor(cacheUtil.offlineInterceptor)
.addNetworkInterceptor(cacheUtil.onlineInterceptor)
.cache(getCache())
.build();
}