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_CAP_SENTENCES
|
||||||
| EditorInfo.TYPE_TEXT_FLAG_AUTO_CORRECT;
|
| EditorInfo.TYPE_TEXT_FLAG_AUTO_CORRECT;
|
||||||
setImeOptions(EditorInfo.IME_ACTION_NONE);
|
setImeOptions(EditorInfo.IME_ACTION_NONE);
|
||||||
|
setHint(null);
|
||||||
break;
|
break;
|
||||||
case 2: // PASSWORD
|
case 2: // PASSWORD
|
||||||
inPassword = true;
|
inPassword = true;
|
||||||
@@ -844,6 +845,7 @@ import java.util.ArrayList;
|
|||||||
}
|
}
|
||||||
if (single) {
|
if (single) {
|
||||||
maxLength = mWebView.nativeFocusCandidateMaxLength();
|
maxLength = mWebView.nativeFocusCandidateMaxLength();
|
||||||
|
setHint(mWebView.nativeFocusCandidateLabel());
|
||||||
if (type != 2 /* PASSWORD */) {
|
if (type != 2 /* PASSWORD */) {
|
||||||
String name = mWebView.nativeFocusCandidateName();
|
String name = mWebView.nativeFocusCandidateName();
|
||||||
if (name != null && name.length() > 0) {
|
if (name != null && name.length() > 0) {
|
||||||
|
|||||||
@@ -6355,6 +6355,7 @@ public class WebView extends AbsoluteLayout
|
|||||||
private native boolean nativeFocusCandidateIsPlugin();
|
private native boolean nativeFocusCandidateIsPlugin();
|
||||||
private native boolean nativeFocusCandidateIsRtlText();
|
private native boolean nativeFocusCandidateIsRtlText();
|
||||||
private native boolean nativeFocusCandidateIsTextInput();
|
private native boolean nativeFocusCandidateIsTextInput();
|
||||||
|
/* package */ native String nativeFocusCandidateLabel();
|
||||||
/* package */ native int nativeFocusCandidateMaxLength();
|
/* package */ native int nativeFocusCandidateMaxLength();
|
||||||
/* package */ native String nativeFocusCandidateName();
|
/* package */ native String nativeFocusCandidateName();
|
||||||
private native Rect nativeFocusCandidateNodeBounds();
|
private native Rect nativeFocusCandidateNodeBounds();
|
||||||
|
|||||||
Reference in New Issue
Block a user