Show label information as hint text

Fix for http://b/issue?id=2331526

Requires a change to external/webkit.
This commit is contained in:
Leon Scroggins
2010-01-05 10:59:40 -05:00
parent 106f9b2446
commit e38fc18981
2 changed files with 3 additions and 0 deletions

View File

@@ -814,6 +814,7 @@ import java.util.ArrayList;
| EditorInfo.TYPE_TEXT_FLAG_CAP_SENTENCES
| EditorInfo.TYPE_TEXT_FLAG_AUTO_CORRECT;
setImeOptions(EditorInfo.IME_ACTION_NONE);
setHint(null);
break;
case 2: // PASSWORD
inPassword = true;
@@ -844,6 +845,7 @@ import java.util.ArrayList;
}
if (single) {
maxLength = mWebView.nativeFocusCandidateMaxLength();
setHint(mWebView.nativeFocusCandidateLabel());
if (type != 2 /* PASSWORD */) {
String name = mWebView.nativeFocusCandidateName();
if (name != null && name.length() > 0) {

View File

@@ -6355,6 +6355,7 @@ public class WebView extends AbsoluteLayout
private native boolean nativeFocusCandidateIsPlugin();
private native boolean nativeFocusCandidateIsRtlText();
private native boolean nativeFocusCandidateIsTextInput();
/* package */ native String nativeFocusCandidateLabel();
/* package */ native int nativeFocusCandidateMaxLength();
/* package */ native String nativeFocusCandidateName();
private native Rect nativeFocusCandidateNodeBounds();