Respect night mode flag on Q and beyond
Test: manual Change-Id: I01c51d02e787557717c12567adc8276943dbd1bc Fixes: 110758454
This commit is contained in:
1 parent
3b5793fdf5
commit
eca08a10bd
2 files changed
+27
-1
No files matched your search
@@ -83,6 +83,10 @@ 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_P =
|
||||
Build.VERSION.SDK_INT >= Build.VERSION_CODES.P;
|
||||
|
||||
|
||||
Reference in new issue
Block a user