WallpaperManagerCompat should target correct platform
Also replace Utilities.isAtLeastO() to static final constant. Bug: 65544683 Change-Id: I39fbea66939d72c31702748716c4e65b4f9bee6a
This commit is contained in:
1 parent
9c1607886b
commit
e24cb63b81
21 files changed
+41
-38
No files matched your search
@@ -83,15 +83,17 @@ public final class Utilities {
|
||||
private static final Matrix sMatrix = new Matrix();
|
||||
private static final Matrix sInverseMatrix = new Matrix();
|
||||
|
||||
public static boolean isAtLeastO() {
|
||||
return Build.VERSION.SDK_INT >= Build.VERSION_CODES.O;
|
||||
}
|
||||
public static final boolean ATLEAST_OREO_MR1 =
|
||||
Build.VERSION.SDK_INT >= Build.VERSION_CODES.O_MR1;
|
||||
|
||||
public static final boolean ATLEAST_OREO =
|
||||
Build.VERSION.SDK_INT >= Build.VERSION_CODES.O;
|
||||
|
||||
public static final boolean ATLEAST_NOUGAT_MR1 =
|
||||
Build.VERSION.SDK_INT >= Build.VERSION_CODES.N_MR1;
|
||||
Build.VERSION.SDK_INT >= Build.VERSION_CODES.N_MR1;
|
||||
|
||||
public static final boolean ATLEAST_NOUGAT =
|
||||
Build.VERSION.SDK_INT >= Build.VERSION_CODES.N;
|
||||
Build.VERSION.SDK_INT >= Build.VERSION_CODES.N;
|
||||
|
||||
public static final boolean ATLEAST_MARSHMALLOW =
|
||||
Build.VERSION.SDK_INT >= Build.VERSION_CODES.M;
|
||||
|
||||
Reference in new issue
Block a user