From 6c2f3b7c645bc617be94fa9d98bc821cd23c126d Mon Sep 17 00:00:00 2001 From: Jens Doll Date: Thu, 20 Jun 2013 20:03:02 +0200 Subject: Fix lock settings pattern crash on configuration change A helper class used in LockPatternView.onSaveInstanceState() and .onRestoreInstanceState() wasn't set, causing to NPE settings once a configuration change would happen while displaying lock pattern input. This is now set on creation. Test case: 1) Enable rotation on device. 2) Open Settings/ChooseLockPattern preference. 3) Rotate device Change-Id: Ic8091bc92dee2a9a23f4ddebd6de4111ec8ac318 --- src/com/android/settings/ChooseLockPattern.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/com') diff --git a/src/com/android/settings/ChooseLockPattern.java b/src/com/android/settings/ChooseLockPattern.java index b7c14dd..f92dca4 100644 --- a/src/com/android/settings/ChooseLockPattern.java +++ b/src/com/android/settings/ChooseLockPattern.java @@ -320,6 +320,7 @@ public class ChooseLockPattern extends PreferenceActivity { mLockPatternView.setTactileFeedbackEnabled( mChooseLockSettingsHelper.utils().isTactileFeedbackEnabled()); mLockPatternView.setLockPatternSize(mPatternSize); + mLockPatternView.setLockPatternUtils(mChooseLockSettingsHelper.utils()); mFooterText = (TextView) view.findViewById(R.id.footerText); -- cgit v1.1