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

Commit 03d87929 authored by Roman Birg's avatar Roman Birg Committed by Dan Pasanen
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
parent 36400dad
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -122,6 +122,8 @@ public class ConfirmLockPattern extends PreferenceActivity {
            mLockPatternView = (LockPatternView) view.findViewById(R.id.lockPattern);
            mLockPatternView = (LockPatternView) view.findViewById(R.id.lockPattern);
            mFooterTextView = (TextView) view.findViewById(R.id.footerText);
            mFooterTextView = (TextView) view.findViewById(R.id.footerText);


            mLockPatternView.setLockPatternUtils(mLockPatternUtils);

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