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

Commit 9ce1116e authored by Satoshi Kataoka's avatar Satoshi Kataoka
Browse files

Do not run the spell checker in SearchView

Bug: 6603925
Change-Id: I75972185fb4d802f2a90649002e722ca4b676c42
parent 1fbbc071
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -1091,6 +1091,13 @@ public class SearchView extends LinearLayout implements CollapsibleActionView {
            inputType &= ~InputType.TYPE_TEXT_FLAG_AUTO_COMPLETE;
            if (mSearchable.getSuggestAuthority() != null) {
                inputType |= InputType.TYPE_TEXT_FLAG_AUTO_COMPLETE;
                // TYPE_TEXT_FLAG_AUTO_COMPLETE means that the text editor is performing
                // auto-completion based on its own semantics, which it will present to the user
                // as they type. This generally means that the input method should not show its
                // own candidates, and the spell checker should not be in action. The text editor
                // supplies its candidates by calling InputMethodManager.displayCompletions(),
                // which in turn will call InputMethodSession.displayCompletions().
                inputType |= InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS;
            }
        }
        mQueryTextView.setInputType(inputType);