Bug 1663884 - <input type=number> should use TYPE_NUMBER_FLAG_DECIMAL too. r=m_kato,geckoview-reviewers,snorp

Differential Revision: https://phabricator.services.mozilla.com/D95773
This commit is contained in:
Bharath S 2020-11-03 22:54:40 +00:00
parent 66310920d1
commit 2d2bc309c9

View File

@ -1640,7 +1640,7 @@ import android.view.inputmethod.EditorInfo;
} else if (typeHint.equalsIgnoreCase("number") ||
typeHint.equalsIgnoreCase("range")) {
outAttrs.inputType = InputType.TYPE_CLASS_NUMBER |
InputType.TYPE_NUMBER_VARIATION_NORMAL;
InputType.TYPE_NUMBER_VARIATION_NORMAL | InputType.TYPE_NUMBER_FLAG_DECIMAL;
} else {
// We look at modeHint
if (modeHint.equals("tel")) {