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

Commit ee312a00 authored by Raj Yengisetty's avatar Raj Yengisetty Committed by Rajesh Yengisetty
Browse files

Settings: pass intent extra EXTRA_REQUIRE_PASSWORD after selecting pattern size

Change-Id: I4b851e69610f16203d10e70cec6b73b563193b9b
parent 197eedf8
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -71,6 +71,8 @@ public class ChooseLockPatternSize extends PreferenceActivity {

            final boolean isFallback = getActivity().getIntent()
                .getBooleanExtra(LockPatternUtils.LOCKSCREEN_BIOMETRIC_WEAK_FALLBACK, false);
            boolean isRequiredForDecrypt = getActivity().getIntent()
                    .getBooleanExtra(EncryptionInterstitial.EXTRA_REQUIRE_PASSWORD, true);

            Intent intent = new Intent(getActivity(), ChooseLockPattern.class);
            intent.putExtra("pattern_size", patternSize);
@@ -78,6 +80,7 @@ public class ChooseLockPatternSize extends PreferenceActivity {
            intent.putExtra("confirm_credentials", false);
            intent.putExtra(LockPatternUtils.LOCKSCREEN_BIOMETRIC_WEAK_FALLBACK,
                    isFallback);
            intent.putExtra(EncryptionInterstitial.EXTRA_REQUIRE_PASSWORD, isRequiredForDecrypt);
            intent.addFlags(Intent.FLAG_ACTIVITY_FORWARD_RESULT);
            startActivity(intent);