From 88db3448cf334e5e216015e756f27aa1219c5408 Mon Sep 17 00:00:00 2001 From: Amith Yamasani Date: Thu, 4 Jun 2009 15:07:29 -0700 Subject: [PATCH] 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 --- core/java/android/webkit/TextDialog.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/java/android/webkit/TextDialog.java b/core/java/android/webkit/TextDialog.java index 9de97c92267b0..99de56d7db5df 100644 --- a/core/java/android/webkit/TextDialog.java +++ b/core/java/android/webkit/TextDialog.java @@ -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