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

Commit 59d68680 authored by Roman Birg's avatar Roman Birg Committed by Matt Garnes
Browse files

Settings: fix confirm pattern crash on rotate



After setting a new lock pattern from settings, going right back into
"Screen lock" screen and rotating the device would cause a crash.

LockPatternView is expecting to have an instance of LockPatternUtils
available to restore its state, which is null.

Change-Id: Ib8ff83623787d431165af88e56d4a84a27340268
Signed-off-by: default avatarRoman Birg <roman@cyngn.com>
(cherry picked from commit 7e7a8b91)
parent db4845af
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -124,6 +124,8 @@ public class ConfirmLockPattern extends SettingsActivity {
            mLockPatternView = (LockPatternView) view.findViewById(R.id.lockPattern);
            mFooterTextView = (TextView) view.findViewById(R.id.footerText);

            mLockPatternView.setLockPatternUtils(mLockPatternUtils);

            // make it so unhandled touch events within the unlock screen go to the
            // lock pattern view.
            final LinearLayoutWithDefaultTouchRecepient topLayout