Fix 3315401: Prevent pattern confirmation screen from asking twice

This fixes a bug where changing from PIN to pattern caused
the lock pattern tutorial to ask for the PIN twice and ultimately
crash due to ConfirmLockPattern getting into the wrong state.

Change-Id: Ia3b3186dcd56f2b47a09f54d7636436ee80aa13c
This commit is contained in:
Jim Miller
2011-01-05 17:41:31 -08:00
parent 9271acc512
commit 1bafb6e019

View File

@@ -329,7 +329,7 @@ public class ChooseLockPattern extends PreferenceActivity {
topLayout.setDefaultTouchRecepient(mLockPatternView); topLayout.setDefaultTouchRecepient(mLockPatternView);
final boolean confirmCredentials = getActivity().getIntent() final boolean confirmCredentials = getActivity().getIntent()
.getBooleanExtra("confirm_credentials", true); .getBooleanExtra("confirm_credentials", false);
if (savedInstanceState == null) { if (savedInstanceState == null) {
if (confirmCredentials) { if (confirmCredentials) {