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

Commit 03340475 authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Updating SDK check now that the version code is finalized

Change-Id: I2b8d65885f83154f7500adb520b1eed1da5c4a4e
parent 7c278b62
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -107,9 +107,7 @@ public final class Utilities {
    private static final Matrix sMatrix = new Matrix();
    private static final Matrix sInverseMatrix = new Matrix();

    public static final boolean ATLEAST_Q = Build.VERSION.CODENAME.length() == 1
            && Build.VERSION.CODENAME.charAt(0) >= 'Q'
            && Build.VERSION.CODENAME.charAt(0) <= 'Z';
    public static final boolean ATLEAST_Q = Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q;

    public static final boolean ATLEAST_P =
            Build.VERSION.SDK_INT >= Build.VERSION_CODES.P;