Fix userId for credentials from managed profiles
Bug: 22094377 Change-Id: Ia98d0e386d4c56f3eb502ff11f86b0fd7dadea3c
This commit is contained in:
@@ -206,8 +206,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 quality = new LockPatternUtils(this).getActivePasswordQuality(
|
int quality = new LockPatternUtils(this).getActivePasswordQuality(
|
||||||
UserHandle.myUserId());
|
parent != null ? parent.id : UserHandle.myUserId());
|
||||||
return (quality >= MIN_PASSWORD_QUALITY);
|
return (quality >= MIN_PASSWORD_QUALITY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user