Bug 757399 - changed android input to allow typing float in number inputs r=cpeterson

This commit is contained in:
Raphael Catolino 2012-05-22 17:33:10 +02:00
Родитель 86bef213f1
Коммит 528df1932d
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -744,7 +744,9 @@ public class GeckoInputConnection
outAttrs.inputType = InputType.TYPE_CLASS_PHONE;
else if (mIMETypeHint.equalsIgnoreCase("number") ||
mIMETypeHint.equalsIgnoreCase("range"))
outAttrs.inputType = InputType.TYPE_CLASS_NUMBER;
outAttrs.inputType = InputType.TYPE_CLASS_NUMBER |
InputType.TYPE_NUMBER_FLAG_SIGNED |
InputType.TYPE_NUMBER_FLAG_DECIMAL;
else if (mIMETypeHint.equalsIgnoreCase("datetime") ||
mIMETypeHint.equalsIgnoreCase("datetime-local"))
outAttrs.inputType = InputType.TYPE_CLASS_DATETIME |