Ported: Fix null in android keyboard handling.

- jasonwinterpixel
31fe6848e8
This commit is contained in:
Relintai 2022-10-08 18:32:02 +02:00
parent 9beaa6b80c
commit 35249df651

View File

@ -126,7 +126,7 @@ public class PandemoniumTextInputWrapper implements TextWatcher, OnEditorActionL
@Override @Override
public boolean onEditorAction(final TextView pTextView, final int pActionID, final KeyEvent pKeyEvent) { public boolean onEditorAction(final TextView pTextView, final int pActionID, final KeyEvent pKeyEvent) {
if (this.mEdit == pTextView && this.isFullScreenEdit()) { if (this.mEdit == pTextView && this.isFullScreenEdit() && pKeyEvent != null) {
final String characters = pKeyEvent.getCharacters(); final String characters = pKeyEvent.getCharacters();
for (int i = 0; i < characters.length(); i++) { for (int i = 0; i < characters.length(); i++) {