SSL android 4 fix - fix code styles

This commit is contained in:
orionlee 2019-09-23 14:22:16 -07:00
parent e8be5cb8ec
commit c41c8765b6
1 changed files with 2 additions and 2 deletions

View File

@ -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<>();