Merge pull request #35785 from nekomatata/android-line-edit-length-fix

Fixed LineEdit virtual keyboard inputs on Android
This commit is contained in:
Rémi Verschelde 2020-01-31 16:38:37 +01:00 committed by GitHub
commit 6f092c299e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);