Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 68b9074a authored by John Reck's avatar John Reck Committed by Android (Google) Code Review
Browse files

Merge "Prevent adapter flickering"

parents 526c2264 a607060b
Loading
Loading
Loading
Loading
+9 −4
Original line number Diff line number Diff line
@@ -896,7 +896,10 @@ import junit.framework.Assert;
     *          WebTextView represents.
     */
    /* package */ void setNodePointer(int ptr) {
        if (ptr != mNodePointer) {
            mNodePointer = ptr;
            setAdapterCustom(null);
        }
    }

    /**
@@ -1051,11 +1054,12 @@ import junit.framework.Assert;
        }
        setHint(null);
        setThreshold(1);
        boolean autoComplete = false;
        if (single) {
            mWebView.requestLabel(mWebView.nativeFocusCandidateFramePointer(),
                    mNodePointer);
            maxLength = mWebView.nativeFocusCandidateMaxLength();
            boolean autoComplete = mWebView.nativeFocusCandidateIsAutoComplete();
            autoComplete = mWebView.nativeFocusCandidateIsAutoComplete();
            if (type != PASSWORD && (mAutoFillable || autoComplete)) {
                String name = mWebView.nativeFocusCandidateName();
                if (name != null && name.length() > 0) {
@@ -1070,8 +1074,9 @@ import junit.framework.Assert;
        setInputType(inputType);
        setImeOptions(imeOptions);
        setVisibility(VISIBLE);
        AutoCompleteAdapter adapter = null;
        setAdapterCustom(adapter);
        if (!autoComplete) {
            setAdapterCustom(null);
        }
    }

    /**
+1 −2
Original line number Diff line number Diff line
@@ -3246,8 +3246,7 @@ public class WebView extends AbsoluteLayout
    public void clearFormData() {
        checkThread();
        if (inEditingMode()) {
            AutoCompleteAdapter adapter = null;
            mWebTextView.setAdapterCustom(adapter);
            mWebTextView.setAdapterCustom(null);
        }
    }