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

Commit 4a914086 authored by Clara Bayarri's avatar Clara Bayarri
Browse files

When un-unifying the personal and work locks, launch lock setup

When the user decides to have a separate work lock, it makes sense
to send them to set up that lock directly. Also fixes the issue where
we have work fingerprints in a unified state and un-unifying leaves
the work profile with no lock but fingerprints.

Bug: 27199237
Change-Id: I85dab9cdf993af69a661d8f0cd4ad2449a348cac
parent 5a3dec0c
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -702,7 +702,12 @@ public class SecuritySettings extends SettingsPreferenceFragment
                dialog.show(getChildFragmentManager(), TAG_UNIFICATION_DIALOG);
            } else {
                mLockPatternUtils.setSeparateProfileChallengeEnabled(mProfileChallengeUserId, true);
                createPreferenceHierarchy();
                Bundle extras = new Bundle();
                extras.putInt(Intent.EXTRA_USER_ID, mProfileChallengeUserId);
                startFragment(this,
                        "com.android.settings.ChooseLockGeneric$ChooseLockGenericFragment",
                        R.string.lock_settings_picker_title_profile,
                        SET_OR_CHANGE_LOCK_METHOD_REQUEST_PROFILE, extras);
            }
        } else if (KEY_SHOW_PASSWORD.equals(key)) {
            Settings.System.putInt(getContentResolver(), Settings.System.TEXT_SHOW_PASSWORD,