mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 09:56:49 +00:00
Update label accordingly when work mode is changed
Also, updates the work related strings accordingly. Fix: 71987096 Change-Id: Iedbf6ee04f3a165a392efdf2bd351817997817ca
This commit is contained in:
@@ -19,8 +19,11 @@ package com.android.launcher3.compat;
|
||||
import android.annotation.TargetApi;
|
||||
import android.content.Context;
|
||||
import android.os.Build;
|
||||
import android.os.Process;
|
||||
import android.os.UserHandle;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@TargetApi(Build.VERSION_CODES.N)
|
||||
public class UserManagerCompatVN extends UserManagerCompatVM {
|
||||
|
||||
@@ -37,5 +40,19 @@ public class UserManagerCompatVN extends UserManagerCompatVM {
|
||||
public boolean isUserUnlocked(UserHandle user) {
|
||||
return mUserManager.isUserUnlocked(user);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isAnyProfileQuietModeEnabled() {
|
||||
List<UserHandle> userProfiles = getUserProfiles();
|
||||
for (UserHandle userProfile : userProfiles) {
|
||||
if (Process.myUserHandle().equals(userProfile)) {
|
||||
continue;
|
||||
}
|
||||
if (isQuietModeEnabled(userProfile)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user