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

Commit 64b4f16a authored by Michael Kolb's avatar Michael Kolb
Browse files

Support spellcheck attribute in WebTextView

    Bug: 5267547

    set no suggestions for WebTextView when spellcheck attribute is
    false
    depends on CL: https://android-git.corp.google.com/g/#/c/141326/2

Change-Id: I4ad476270607e9d600567bbb4d9fd321893707b1
parent 99f36683
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1002,6 +1002,9 @@ import junit.framework.Assert;
                | InputType.TYPE_TEXT_VARIATION_WEB_EDIT_TEXT;
        int imeOptions = EditorInfo.IME_FLAG_NO_EXTRACT_UI
                | EditorInfo.IME_FLAG_NO_FULLSCREEN;
        if (!mWebView.nativeFocusCandidateIsSpellcheck()) {
            inputType |= InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS;
        }
        if (TEXT_AREA != type
                && mWebView.nativeFocusCandidateHasNextTextfield()) {
            imeOptions |= EditorInfo.IME_FLAG_NAVIGATE_NEXT;
+1 −0
Original line number Diff line number Diff line
@@ -9459,6 +9459,7 @@ public class WebView extends AbsoluteLayout
    private native boolean  nativeFocusCandidateIsTextInput();
    /* package */ native int      nativeFocusCandidateMaxLength();
    /* package */ native boolean  nativeFocusCandidateIsAutoComplete();
    /* package */ native boolean  nativeFocusCandidateIsSpellcheck();
    /* package */ native String   nativeFocusCandidateName();
    private native Rect     nativeFocusCandidateNodeBounds();
    /**