Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 53f59f92 authored by Rubin Xu's avatar Rubin Xu Committed by android-build-merger
Browse files

Merge "Confirm parent user's credential when setting lock for profile" into pi-dev am: b0a35de1

am: 95970db0

Change-Id: Ieba5594887ba89afa43c56ae3991830fa1372270
parents bd838bde 95970db0
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -236,7 +236,8 @@ public class ChooseLockGeneric extends SettingsActivity {
                boolean managedProfileWithUnifiedLock =
                        UserManager.get(getActivity()).isManagedProfile(mUserId)
                        && !mLockPatternUtils.isSeparateProfileChallengeEnabled(mUserId);
                if (managedProfileWithUnifiedLock
                boolean skipConfirmation = managedProfileWithUnifiedLock && !mIsSetNewPassword;
                if (skipConfirmation
                        || !helper.launchConfirmationActivity(CONFIRM_EXISTING_REQUEST,
                        getString(R.string.unlock_set_unlock_launch_picker_title), true, mUserId)) {
                    mPasswordConfirmed = true; // no password set, so no need to confirm