Respect night mode flag on Q and beyond

Test: manual
Change-Id: I01c51d02e787557717c12567adc8276943dbd1bc
Fixes: 110758454
This commit is contained in:
Lucas Dupin
2018-08-11 15:53:40 -07:00
parent 3b5793fdf5
commit eca08a10bd
2 changed files with 27 additions and 1 deletions

View File

@@ -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;