Merge "Credential storage: check lock quality for right user" into nyc-dev
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