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

Commit bc18b406 authored by Mahaver Chopra's avatar Mahaver Chopra
Browse files

More informative title while choosing work lock.

When Intent ACTION_SET_NEW_PASSWORD is called from a managed profile,
ChooseLockGeneric fragment shows title "Unlock Selection", update that to
"Choose work lock".

Bug: 28451356
Change-Id: I9bcf4698557fa453337aa666f10f94f15e7624fa
parent d5b3a5d3
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -183,6 +183,13 @@ public class ChooseLockGeneric extends SettingsActivity {
                mUserId = targetUser;
            }

            if (DevicePolicyManager.ACTION_SET_NEW_PASSWORD
                    .equals(getActivity().getIntent().getAction())
                    && Utils.isManagedProfile(UserManager.get(getActivity()), mUserId)
                    && mLockPatternUtils.isSeparateProfileChallengeEnabled(mUserId)) {
                getActivity().setTitle(R.string.lock_settings_picker_title_profile);
            }

            mManagedPasswordProvider = ManagedLockPasswordProvider.get(getActivity(), mUserId);

            if (mPasswordConfirmed) {