diff options
author | ByteHamster <info@bytehamster.com> | 2020-03-16 00:55:05 +0100 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2020-03-16 01:15:16 +0100 |
commit | 7bfee9ba0f69610364f41493bb1301d1b4a40a12 (patch) | |
tree | ea34c0602a9735abbf48730080d37b88c2bba89e /core/src/play | |
parent | 03d1f41e9bd88e1920be306ef8bcd10642ce5527 (diff) | |
download | AntennaPod-7bfee9ba0f69610364f41493bb1301d1b4a40a12.zip |
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); |