am b5c7ef33: When passing the Message for saved form data, pass the node pointer properly.

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

* commit 'b5c7ef331cfca927c5b67bfe472eb7173a0ca69f':
  When passing the Message for saved form data, pass the node pointer properly.
This commit is contained in:
Leon Scroggins
2009-12-02 12:46:32 -08:00
committed by Android Git Automerger

View File

@@ -3241,24 +3241,29 @@ public class WebView extends AbsoluteLayout
mWebTextView.setNodePointer(nodePointer);
int maxLength = -1;
boolean isTextField = nativeFocusCandidateIsTextField();
boolean isPassword;
if (isTextField) {
maxLength = nativeFocusCandidateMaxLength();
String name = nativeFocusCandidateName();
if (mWebViewCore.getSettings().getSaveFormData()
&& name != null) {
isPassword = nativeFocusCandidateIsPassword();
if (!isPassword && mWebViewCore.getSettings().getSaveFormData()
&& name != null && name.length() > 0) {
Message update = mPrivateHandler.obtainMessage(
REQUEST_FORM_DATA, nodePointer);
REQUEST_FORM_DATA);
update.arg1 = nodePointer;
RequestFormData updater = new RequestFormData(name,
getUrl(), update);
Thread t = new Thread(updater);
t.start();
}
} else {
isPassword = false;
}
mWebTextView.setMaxLength(maxLength);
AutoCompleteAdapter adapter = null;
mWebTextView.setAdapterCustom(adapter);
mWebTextView.setSingleLine(isTextField);
mWebTextView.setInPassword(nativeFocusCandidateIsPassword());
mWebTextView.setInPassword(isPassword);
if (null == text) {
if (DebugFlags.WEB_VIEW) {
Log.v(LOGTAG, "rebuildWebTextView null == text");