Network call caching times extended

This commit is contained in:
antonio 2022-03-23 22:00:40 +01:00
parent 2d04ab4c46
commit d432205789
4 changed files with 4 additions and 4 deletions

View file

@ -72,7 +72,7 @@ public class AlbumSongListClient {
}
private OkHttpClient getOkHttpClient() {
CacheUtil cacheUtil = new CacheUtil(context, 10, 60 * 60 * 24 * 30);
CacheUtil cacheUtil = new CacheUtil(context, 60, 60 * 60 * 24 * 30);
return new OkHttpClient.Builder()
.callTimeout(2, TimeUnit.MINUTES)

View file

@ -122,7 +122,7 @@ public class BrowsingClient {
}
private OkHttpClient getOkHttpClient() {
CacheUtil cacheUtil = new CacheUtil(context, 10, 60 * 60 * 24 * 30);
CacheUtil cacheUtil = new CacheUtil(context, 60, 60 * 60 * 24 * 30);
return new OkHttpClient.Builder()
.callTimeout(2, TimeUnit.MINUTES)

View file

@ -51,7 +51,7 @@ public class PodcastClient {
return podcastService.refreshPodcasts(subsonic.getParams());
}
private OkHttpClient getOkHttpClient() {
CacheUtil cacheUtil = new CacheUtil(context, 0, 60 * 60 * 24 * 30);
CacheUtil cacheUtil = new CacheUtil(context, 60, 60 * 60 * 24 * 30);
return new OkHttpClient.Builder()
.callTimeout(2, TimeUnit.MINUTES)

View file

@ -47,7 +47,7 @@ public class SearchingClient {
}
private OkHttpClient getOkHttpClient() {
CacheUtil cacheUtil = new CacheUtil(context, 0, 60 * 60 * 24 * 30);
CacheUtil cacheUtil = new CacheUtil(context, 60, 60 * 60 * 24 * 30);
return new OkHttpClient.Builder()
.callTimeout(2, TimeUnit.MINUTES)