Merge "Use userHandle not credentialOwnerUserId to check if it needs to show lock" into nyc-dev

am: ca34ab06ec

* commit 'ca34ab06eca921f8c193dfa7d0b500b6892890e6':
  Use userHandle not credentialOwnerUserId to check if it needs to show lock

Change-Id: Iee4270fa80efeb14bf4e56ad481f9982fbf3ff9c
This commit is contained in:
Ricky Wai
2016-05-11 17:56:43 +00:00
committed by android-build-merger

View File

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