Browser edit fields should report variation WEB_EDIT_TEXT.

This will enable the IME to enable/disable prediction features
for browser fields where the exact type is not very well defined.
Part of the fix for #1743620
This commit is contained in:
Amith Yamasani
2009-06-04 15:07:29 -07:00
parent 85dfec8c35
commit 88db3448cf

View File

@@ -538,7 +538,8 @@ import java.util.ArrayList;
* removing the password input type.
*/
public void setSingleLine(boolean single) {
int inputType = EditorInfo.TYPE_CLASS_TEXT;
int inputType = EditorInfo.TYPE_CLASS_TEXT
| EditorInfo.TYPE_TEXT_VARIATION_WEB_EDIT_TEXT;
if (!single) {
inputType |= EditorInfo.TYPE_TEXT_FLAG_MULTI_LINE
| EditorInfo.TYPE_TEXT_FLAG_CAP_SENTENCES