diff options
author | Satoshi Kataoka <satok@google.com> | 2012-06-04 17:12:08 +0900 |
---|---|---|
committer | Satoshi Kataoka <satok@google.com> | 2012-06-05 12:22:38 +0900 |
commit | 9ce1116ee844c7b03ca9c09956992b9a85b7a247 (patch) | |
tree | 95c55b99fdea8300bef11c207898cbfeec700b1a | |
parent | 1fbbc0716f9b70c6dcee00c4550757077ef7f7b5 (diff) | |
download | frameworks_base-9ce1116ee844c7b03ca9c09956992b9a85b7a247.zip frameworks_base-9ce1116ee844c7b03ca9c09956992b9a85b7a247.tar.gz frameworks_base-9ce1116ee844c7b03ca9c09956992b9a85b7a247.tar.bz2 |
Do not run the spell checker in SearchView
Bug: 6603925
Change-Id: I75972185fb4d802f2a90649002e722ca4b676c42
-rw-r--r-- | core/java/android/widget/SearchView.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/java/android/widget/SearchView.java b/core/java/android/widget/SearchView.java index 8f3a311..a0e961f 100644 --- a/core/java/android/widget/SearchView.java +++ b/core/java/android/widget/SearchView.java @@ -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); |