diff options
author | H. Lehmann <ByteHamster@users.noreply.github.com> | 2020-03-16 10:33:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-16 10:33:20 +0100 |
commit | c0a688ce5412586713e56c892b87d8b75884fc81 (patch) | |
tree | c792aa9b79afcb689e8825e7004ef29037560e94 /core/src/play | |
parent | e458641181dbfd2aeac0d046273a90702e27743b (diff) | |
parent | 7bfee9ba0f69610364f41493bb1301d1b4a40a12 (diff) | |
download | AntennaPod-c0a688ce5412586713e56c892b87d8b75884fc81.zip |
Merge pull request #3930 from ByteHamster/cache
Enable caching for web responses
Diffstat (limited to 'core/src/play')
-rw-r--r-- | core/src/play/java/de/danoeh/antennapod/core/ClientConfig.java | 2 |
1 files changed, 2 insertions, 0 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 c92ce3e74..afed2aaae 100644 --- a/core/src/play/java/de/danoeh/antennapod/core/ClientConfig.java +++ b/core/src/play/java/de/danoeh/antennapod/core/ClientConfig.java @@ -11,6 +11,7 @@ import de.danoeh.antennapod.core.cast.CastManager; import de.danoeh.antennapod.core.preferences.PlaybackPreferences; import de.danoeh.antennapod.core.preferences.SleepTimerPreferences; import de.danoeh.antennapod.core.preferences.UserPreferences; +import de.danoeh.antennapod.core.service.download.AntennapodHttpClient; import de.danoeh.antennapod.core.storage.PodDBAdapter; import de.danoeh.antennapod.core.util.NetworkUtils; import de.danoeh.antennapod.core.util.exception.RxJavaErrorHandlerSetup; @@ -62,6 +63,7 @@ public class ClientConfig { Log.v(TAG, "Cast is disabled. All Cast-related initialization will be skipped."); } installSslProvider(context); + AntennapodHttpClient.setCacheDirectory(context.getCacheDir()); SleepTimerPreferences.init(context); RxJavaErrorHandlerSetup.setupRxJavaErrorHandler(); NotificationUtils.createChannels(context); |