diff options
author | ByteHamster <info@bytehamster.com> | 2020-03-18 00:08:13 +0100 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2020-03-18 00:08:13 +0100 |
commit | 9ff46878212874bdcb7274c77c78e13613d5689d (patch) | |
tree | 06739527cbbf792b67dbfeae0d57c81150c6c0a7 /core/src/play/java/de/danoeh/antennapod | |
parent | bb13b1e5f30ac4ee9fa5b5722cfad0e66bd9ecdc (diff) | |
download | AntennaPod-9ff46878212874bdcb7274c77c78e13613d5689d.zip |
Do not cache images, accept old iTunes responses
Diffstat (limited to 'core/src/play/java/de/danoeh/antennapod')
-rw-r--r-- | core/src/play/java/de/danoeh/antennapod/core/ClientConfig.java | 4 |
1 files changed, 3 insertions, 1 deletions
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); |