Bug 840406 - Use password mode for all type=password inputs; r=cpeterson

This commit is contained in:
Jim Chen 2013-03-07 13:16:46 +00:00
Родитель 21c7dfb5df
Коммит 46c21b437e
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -535,7 +535,8 @@ class GeckoInputConnection
outAttrs.imeOptions = EditorInfo.IME_ACTION_NONE;
outAttrs.actionLabel = null;
if (mIMEState == IME_STATE_PASSWORD)
if (mIMEState == IME_STATE_PASSWORD ||
"password".equalsIgnoreCase(mIMETypeHint))
outAttrs.inputType |= InputType.TYPE_TEXT_VARIATION_PASSWORD;
else if (mIMEState == IME_STATE_PLUGIN)
outAttrs.inputType = InputType.TYPE_NULL; // "send key events" mode