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

Commit 5ba31aa7 authored by Clara Bayarri's avatar Clara Bayarri
Browse files

Fix crash in KeyboardView with null Handler

A recent change in how the handler is created in KeyboardView
caused the password change flow to crash in ChooseLockPassword.

Change-Id: Id5fcb256f9a09b75bf91c5c79614d8abfc29747f
parent 342b89e2
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -1410,10 +1410,12 @@ public class KeyboardView extends View implements View.OnClickListener {
    }

    private void removeMessages() {
        if (mHandler != null) {
            mHandler.removeMessages(MSG_REPEAT);
            mHandler.removeMessages(MSG_LONGPRESS);
            mHandler.removeMessages(MSG_SHOW_PREVIEW);
        }
    }

    @Override
    public void onDetachedFromWindow() {