am e38fc189: Show label information as hint text

Merge commit 'e38fc1898183a6bf8b0542a1d2627cdbcbd63198' into eclair-mr2-plus-aosp

* commit 'e38fc1898183a6bf8b0542a1d2627cdbcbd63198':
  Show label information as hint text
This commit is contained in:
Leon Scroggins
2010-01-06 13:45:46 -08:00
committed by Android Git Automerger
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();