Number keyboard does not work on Android (flutter/engine#3185)
We had a typo in our decoding logic. Fixes https://github.com/flutter/flutter/issues/6564
This commit is contained in:
@@ -60,9 +60,9 @@ public class TextInputPlugin extends JSONMessageListener {
|
||||
private static int inputTypeFromTextInputType(String inputType) {
|
||||
if (inputType.equals("TextInputType.datetime"))
|
||||
return InputType.TYPE_CLASS_DATETIME;
|
||||
if (inputType.equals("TextInputType.datetime"))
|
||||
if (inputType.equals("TextInputType.number"))
|
||||
return InputType.TYPE_CLASS_NUMBER;
|
||||
if (inputType.equals("TextInputType.datetime"))
|
||||
if (inputType.equals("TextInputType.phone"))
|
||||
return InputType.TYPE_CLASS_PHONE;
|
||||
return InputType.TYPE_CLASS_TEXT;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user