未验证 提交 4a048cc0 编写于 作者: J Jesse Wilson 提交者: GitHub

Merge pull request #2818 from square/jakew/default-android/2018-07-05

Implement correct isDefault check for Android
......@@ -88,6 +88,14 @@ class Platform {
}
static class Android extends Platform {
@IgnoreJRERequirement // Guarded by API check.
@Override boolean isDefaultMethod(Method method) {
if (Build.VERSION.SDK_INT < 24) {
return false;
}
return method.isDefault();
}
@Override public Executor defaultCallbackExecutor() {
return new MainThreadExecutor();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册