Show label information as hint text
Fix for http://b/issue?id=2331526 Requires a change to external/webkit.
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user