mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 18:06:48 +00:00
Consume work mode API
Fix: 69905244 Change-Id: I5958b3a2ebba2fa0e0f69448d5526dc72ed6a97b
This commit is contained in:
@@ -33,7 +33,9 @@ public abstract class UserManagerCompat {
|
||||
public static UserManagerCompat getInstance(Context context) {
|
||||
synchronized (sInstanceLock) {
|
||||
if (sInstance == null) {
|
||||
if (Utilities.ATLEAST_NOUGAT_MR1) {
|
||||
if (Utilities.ATLEAST_P) {
|
||||
sInstance = new UserManagerCompatVP(context.getApplicationContext());
|
||||
} else if (Utilities.ATLEAST_NOUGAT_MR1) {
|
||||
sInstance = new UserManagerCompatVNMr1(context.getApplicationContext());
|
||||
} else if (Utilities.ATLEAST_NOUGAT) {
|
||||
sInstance = new UserManagerCompatVN(context.getApplicationContext());
|
||||
@@ -61,4 +63,5 @@ public abstract class UserManagerCompat {
|
||||
public abstract boolean isUserUnlocked(UserHandle user);
|
||||
|
||||
public abstract boolean isDemoUser();
|
||||
public abstract boolean trySetQuietModeEnabled(boolean enableQuietMode, UserHandle user);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user