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

Commit 3f46e5ff authored by Edgar Wang's avatar Edgar Wang
Browse files

Fix isAtLeastS failed on SCV2 and master

Bug: 196388694
Change-Id: Ia86664ee875d428c4b98d48e9aa0218ea4d94009
Test: manual
parent a4bb9084
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -52,9 +52,9 @@ public final class BuildCompatUtils {
        }

        return (VERSION.CODENAME.equals("REL") && VERSION.SDK_INT >= 31)
                || (VERSION.CODENAME.length() == 1
                && VERSION.CODENAME.compareTo("S") >= 0
                && VERSION.CODENAME.compareTo("Z") <= 0);
                || (VERSION.CODENAME.length() >= 1
                && VERSION.CODENAME.toUpperCase().charAt(0) >= 'S'
                && VERSION.CODENAME.toUpperCase().charAt(0) <= 'Z');
    }

    private BuildCompatUtils() {}