Merge "Use proper platform version checks (apigen)" into rvc-dev am: 0bb978de88
Change-Id: I43bc52a7deeb8889cdd9c5e5b560a261215d0244
This commit is contained in:
@@ -124,13 +124,7 @@ static int write_java_methods(FILE* out, const SignatureInfoMap& signatureInfoMa
|
|||||||
// Print method body.
|
// Print method body.
|
||||||
string indent("");
|
string indent("");
|
||||||
if (supportQ) {
|
if (supportQ) {
|
||||||
// TODO(b/146235828): Use just SDK_INT check once it is incremented from
|
fprintf(out, " if (Build.VERSION.SDK_INT > Build.VERSION_CODES.Q) {\n");
|
||||||
// Q.
|
|
||||||
fprintf(out, " if (Build.VERSION.SDK_INT > Build.VERSION_CODES.Q\n");
|
|
||||||
fprintf(out,
|
|
||||||
" || (Build.VERSION.SDK_INT == "
|
|
||||||
"Build.VERSION_CODES.Q\n");
|
|
||||||
fprintf(out, " && Build.VERSION.PREVIEW_SDK_INT > 0)) {\n");
|
|
||||||
indent = " ";
|
indent = " ";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user