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

Commit ca4d8e9d authored by Clara Bayarri's avatar Clara Bayarri Committed by Android (Google) Code Review
Browse files

Merge "Fix crash in KeyboardView with null Handler"

parents 7bd3721b 5ba31aa7
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() {