Merge "Use userHandle not credentialOwnerUserId to check if it needs to show lock" into nyc-dev am: ca34ab06ec am: 1933de0f3e
am: 78daf065b4
* commit '78daf065b4c7a7ee9312a5660aaccd6fd5bdfe22':
Use userHandle not credentialOwnerUserId to check if it needs to show lock
Change-Id: I6f373753156f3f9d1ec0fe13af35c1e6e6af2246
This commit is contained in:
@@ -694,9 +694,8 @@ public class UserManagerService extends IUserManager.Stub {
|
||||
|
||||
@Override
|
||||
public boolean trySetQuietModeDisabled(int userHandle, IntentSender target) {
|
||||
final int credentialOwnerUserId = getCredentialOwnerProfile(userHandle);
|
||||
if (StorageManager.isUserKeyUnlocked(userHandle)
|
||||
|| !mLockPatternUtils.isSecure(credentialOwnerUserId)) {
|
||||
|| !mLockPatternUtils.isSecure(userHandle)) {
|
||||
// if the user is already unlocked, no need to show a profile challenge
|
||||
setQuietModeEnabled(userHandle, false);
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user