diff options
author | ByteHamster <info@bytehamster.com> | 2022-04-24 23:21:27 +0200 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2022-04-24 23:25:01 +0200 |
commit | d339729baf8aae30e40d65e520f0886f2637d84e (patch) | |
tree | 32c1deab479156cd2591c244e7b2bb505cd76a24 /app | |
parent | 9b78d4c3f39b085184ae54e88b22fb71f3fc13a3 (diff) | |
download | AntennaPod-d339729baf8aae30e40d65e520f0886f2637d84e.zip |
Decouple HttpClient
Remove dependencies:
- HttpClient->Preferences
- AuthorizationInterceptor->Download Service
- ExoPlayer->Download Service
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/dialog/ProxyDialog.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/dialog/ProxyDialog.java b/app/src/main/java/de/danoeh/antennapod/dialog/ProxyDialog.java index 2c3c44b1d..52e0fa787 100644 --- a/app/src/main/java/de/danoeh/antennapod/dialog/ProxyDialog.java +++ b/app/src/main/java/de/danoeh/antennapod/dialog/ProxyDialog.java @@ -165,7 +165,9 @@ public class ProxyDialog { if (!TextUtils.isEmpty(port)) { portValue = Integer.parseInt(port); } - UserPreferences.setProxyConfig(new ProxyConfig(typeEnum, host, portValue, username, password)); + ProxyConfig config = new ProxyConfig(typeEnum, host, portValue, username, password); + UserPreferences.setProxyConfig(config); + AntennapodHttpClient.setProxyConfig(config); } private final TextWatcher requireTestOnChange = new TextWatcher() { |