UserController.shouldConfirmCredentials uses isCredentialSharedWithParent

Instead of checking isManagedProfile, it should really be checking isCredentialSharedWithParent.

Change-Id: Ibaa9a3195d74b568ba37d1ca108fef29f1203a38
Test: Compiles
Bug: 219838311
This commit is contained in:
Adam Bookatz
2022-02-16 02:07:11 +00:00
parent cafcc80f5e
commit ab085c6351

View File

@@ -2613,7 +2613,7 @@ class UserController implements Handler.Callback {
if (getStartedUserState(userId) == null) {
return false;
}
if (!getUserInfo(userId).isManagedProfile()) {
if (!mInjector.getUserManager().isCredentialSharedWithParent(userId)) {
return false;
}
if (mLockPatternUtils.isSeparateProfileChallengeEnabled(userId)) {