2
0
Эх сурвалжийг харах

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.
PouleyKetchoupp 5 жил өмнө
parent
commit
196860508a

+ 1 - 1
platform/android/java/lib/src/org/godotengine/godot/input/GodotEditText.java

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