From 9ff46878212874bdcb7274c77c78e13613d5689d Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Wed, 18 Mar 2020 00:08:13 +0100 Subject: Do not cache images, accept old iTunes responses --- core/src/free/java/de/danoeh/antennapod/core/ClientConfig.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'core/src/free/java/de/danoeh/antennapod') diff --git a/core/src/free/java/de/danoeh/antennapod/core/ClientConfig.java b/core/src/free/java/de/danoeh/antennapod/core/ClientConfig.java index cd075c1cf..000f47f99 100644 --- a/core/src/free/java/de/danoeh/antennapod/core/ClientConfig.java +++ b/core/src/free/java/de/danoeh/antennapod/core/ClientConfig.java @@ -11,6 +11,8 @@ import de.danoeh.antennapod.core.util.NetworkUtils; import de.danoeh.antennapod.core.util.exception.RxJavaErrorHandlerSetup; import de.danoeh.antennapod.core.util.gui.NotificationUtils; +import java.io.File; + /** * Stores callbacks for core classes like Services, DB classes etc. and other configuration variables. * Apps using the core module of AntennaPod should register implementations of all interfaces here. @@ -44,7 +46,7 @@ public class ClientConfig { UserPreferences.init(context); PlaybackPreferences.init(context); NetworkUtils.init(context); - AntennapodHttpClient.setCacheDirectory(context.getCacheDir()); + AntennapodHttpClient.setCacheDirectory(new File(context.getCacheDir(), "okhttp")); SleepTimerPreferences.init(context); RxJavaErrorHandlerSetup.setupRxJavaErrorHandler(); NotificationUtils.createChannels(context); -- cgit v1.2.3