diff options
author | Jens Doll <jens.doll@gmail.com> | 2013-06-20 20:03:02 +0200 |
---|---|---|
committer | Jens Doll <jens.doll@gmail.com> | 2013-06-20 20:03:02 +0200 |
commit | 6c2f3b7c645bc617be94fa9d98bc821cd23c126d (patch) | |
tree | 35af2667bdf45902d457e0cc2ae86e55b72fa25c /src/com | |
parent | 9ad8fb5da5b0b1220c893d777f6949e19adeaccc (diff) | |
download | packages_apps_settings-6c2f3b7c645bc617be94fa9d98bc821cd23c126d.zip packages_apps_settings-6c2f3b7c645bc617be94fa9d98bc821cd23c126d.tar.gz packages_apps_settings-6c2f3b7c645bc617be94fa9d98bc821cd23c126d.tar.bz2 |
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
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/android/settings/ChooseLockPattern.java | 1 |
1 files changed, 1 insertions, 0 deletions
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); |