mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-22 20:06:49 +01:00
Ported: Fix null in android text entry system.
- jasonwinterpixel
cec8e09948
This commit is contained in:
parent
dd5ad408e8
commit
e32e0af40f
@ -125,10 +125,12 @@ public class PandemoniumTextInputWrapper implements TextWatcher, OnEditorActionL
|
||||
if (this.mEdit == pTextView && this.isFullScreenEdit() && pKeyEvent != null) {
|
||||
final String characters = pKeyEvent.getCharacters();
|
||||
|
||||
for (int i = 0; i < characters.length(); i++) {
|
||||
final int ch = characters.codePointAt(i);
|
||||
PandemoniumLib.key(ch, 0, ch, true);
|
||||
PandemoniumLib.key(ch, 0, ch, false);
|
||||
if (characters != null) {
|
||||
for (int i = 0; i < characters.length(); i++) {
|
||||
final int ch = characters.codePointAt(i);
|
||||
PandemoniumLib.key(ch, 0, ch, true);
|
||||
PandemoniumLib.key(ch, 0, ch, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user