Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c92a51e9 authored by Ruchir Rastogi's avatar Ruchir Rastogi Committed by Automerger Merge Worker
Browse files

Merge "Use proper platform version checks (apigen)" into rvc-dev am:...

Merge "Use proper platform version checks (apigen)" into rvc-dev am: 0bb978de am: 79e53894 am: 02a91e9b

Change-Id: Iefec1c746553c644a47550923d8a212f3d97d565
parents 984dfc93 02a91e9b
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -124,13 +124,7 @@ static int write_java_methods(FILE* out, const SignatureInfoMap& signatureInfoMa
        // Print method body.
        string indent("");
        if (supportQ) {
            // TODO(b/146235828): Use just SDK_INT check once it is incremented from
            // 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");
            fprintf(out, "        if (Build.VERSION.SDK_INT > Build.VERSION_CODES.Q) {\n");
            indent = "    ";
        }