Fixed LineEdit virtual keyboard inputs on Android
Changed the condition to add a length filter to make it consistent with the documentation (0 means no character limit). Otherwise the default value in LineEdit causes the virtual keyboard to be non-fonctional on Android.
(cherry picked from commit 196860508a
)
This commit is contained in:
parent
786b1cc7ff
commit
b2ac2b6201
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ public class GodotEditText extends EditText {
|
|||
}
|
||||
|
||||
private void setMaxInputLength(EditText p_edit_text, int p_max_input_length) {
|
||||
if (p_max_input_length >= 0) {
|
||||
if (p_max_input_length > 0) {
|
||||
InputFilter[] filters = new InputFilter[1];
|
||||
filters[0] = new InputFilter.LengthFilter(p_max_input_length);
|
||||
p_edit_text.setFilters(filters);
|
||||
|
|
Loading…
Reference in a new issue