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/play/java/de/danoeh/antennapod/core/ClientConfig.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'core/src/play/java/de') diff --git a/core/src/play/java/de/danoeh/antennapod/core/ClientConfig.java b/core/src/play/java/de/danoeh/antennapod/core/ClientConfig.java index afed2aaae..51303797f 100644 --- a/core/src/play/java/de/danoeh/antennapod/core/ClientConfig.java +++ b/core/src/play/java/de/danoeh/antennapod/core/ClientConfig.java @@ -17,6 +17,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. @@ -63,7 +65,7 @@ public class ClientConfig { Log.v(TAG, "Cast is disabled. All Cast-related initialization will be skipped."); } installSslProvider(context); - AntennapodHttpClient.setCacheDirectory(context.getCacheDir()); + AntennapodHttpClient.setCacheDirectory(new File(context.getCacheDir(), "okhttp")); SleepTimerPreferences.init(context); RxJavaErrorHandlerSetup.setupRxJavaErrorHandler(); NotificationUtils.createChannels(context); -- cgit v1.2.3