Number keyboard does not work on Android (#3185)

We had a typo in our decoding logic.

Fixes https://github.com/flutter/flutter/issues/6564
This commit is contained in:
Adam Barth
2016-10-28 12:26:56 -07:00
committed by GitHub
parent 4b8c9051e5
commit 1bc79ded38
@@ -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;
}