Merge "Credential storage: check lock quality for right user" into nyc-dev
am: 16b4ac8
* commit '16b4ac8a8efb7ea06397ff559984c3c08f275398':
Credential storage: check lock quality for right user
Change-Id: Iea518cce08617d5ccfa6d5e43d5a65e377631528
This commit is contained in:
@@ -208,9 +208,9 @@ public final class CredentialStorage extends Activity {
|
|||||||
* Returns true if the currently set key guard matches our minimum quality requirements.
|
* Returns true if the currently set key guard matches our minimum quality requirements.
|
||||||
*/
|
*/
|
||||||
private boolean checkKeyGuardQuality() {
|
private boolean checkKeyGuardQuality() {
|
||||||
UserInfo parent = UserManager.get(this).getProfileParent(UserHandle.myUserId());
|
int credentialOwner =
|
||||||
int quality = new LockPatternUtils(this).getActivePasswordQuality(
|
UserManager.get(this).getCredentialOwnerProfile(UserHandle.myUserId());
|
||||||
parent != null ? parent.id : UserHandle.myUserId());
|
int quality = new LockPatternUtils(this).getActivePasswordQuality(credentialOwner);
|
||||||
return (quality >= MIN_PASSWORD_QUALITY);
|
return (quality >= MIN_PASSWORD_QUALITY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user