am 1e7b8f86
: Fix userId for credentials from managed profiles
* commit '1e7b8f86d8aa46d2ed24b75adb453833ef2d1a88': Fix userId for credentials from managed profiles
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