diff options
author | orionlee <orionlee@yahoo.com> | 2019-09-23 14:22:16 -0700 |
---|---|---|
committer | orionlee <orionlee@yahoo.com> | 2019-09-23 14:22:16 -0700 |
commit | c41c8765b691bed6a04bd262025cdde5f245535c (patch) | |
tree | 6a0fa57c74c09b0fd046339674e28d83df4f189e /core/src | |
parent | e8be5cb8ec18d49c66abd6898a6a55d9f246c7e4 (diff) | |
download | AntennaPod-c41c8765b691bed6a04bd262025cdde5f245535c.zip |
SSL android 4 fix - fix code styles
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/service/download/AntennapodHttpClient.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/service/download/AntennapodHttpClient.java b/core/src/main/java/de/danoeh/antennapod/core/service/download/AntennapodHttpClient.java index e6886c655..04a6d5882 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/service/download/AntennapodHttpClient.java +++ b/core/src/main/java/de/danoeh/antennapod/core/service/download/AntennapodHttpClient.java @@ -142,11 +142,11 @@ public class AntennapodHttpClient { }); } } - if(16 <= Build.VERSION.SDK_INT && Build.VERSION.SDK_INT < 21) { + if (16 <= Build.VERSION.SDK_INT && Build.VERSION.SDK_INT < 21) { builder.sslSocketFactory(new CustomSslSocketFactory(), trustManager()); } - if(Build.VERSION.SDK_INT < 21) { + if (Build.VERSION.SDK_INT < 21) { // workaround for Android 4.x for certain web sites. // see: https://github.com/square/okhttp/issues/4053#issuecomment-402579554 List<CipherSuite> cipherSuites = new ArrayList<>(); |