[android] - bump okhttp, remove workaround for Android Oreo (#10515)

This commit is contained in:
Tobrun
2017-11-23 08:49:01 +01:00
committed by GitHub
parent bcfe51c16c
commit 7c8fbc8232
2 changed files with 2 additions and 9 deletions

View File

@@ -86,14 +86,7 @@ class HTTPRequest implements Callback {
}
mRequest = builder.build();
mCall = mClient.newCall(mRequest);
// TODO remove code block for workaround in #10303
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.N_MR1) {
mCall.enqueue(this);
} else {
// Calling execute instead of enqueue is a workaround for #10303
onResponse(mCall, mCall.execute());
}
mCall.enqueue(this);
} catch (Exception exception) {
onFailure(exception);
}