mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 17:36:49 +00:00
Respect night mode flag on Q and beyond
Test: manual Change-Id: I01c51d02e787557717c12567adc8276943dbd1bc Fixes: 110758454
This commit is contained in:
@@ -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