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

Commit 1311f427 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Use preview_sdk_int for version code checks am: 0c8cdf54

Change-Id: Ib65cef12768e35801ac0717c5f4eb03d7a2716ca
parents bd9b1908 0c8cdf54
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -85,8 +85,9 @@ static int write_java_methods(
        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.CODENAME.equals(\"R\")) {\n");
            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 = "    ";
        }