diff options
author | 2011-02-14 15:19:31 +0900 | |
---|---|---|
committer | 2011-02-14 16:27:07 +0900 | |
commit | aeab97695bd243a7ee25ce740e614d3a9ca52fec (patch) | |
tree | faf4399211722fa649e4a38c4426a92e4391ab52 | |
parent | 195e0f715f11110e4571d734d00756ccbf700c29 (diff) | |
download | latinime-aeab97695bd243a7ee25ce740e614d3a9ca52fec.tar.gz latinime-aeab97695bd243a7ee25ce740e614d3a9ca52fec.tar.xz latinime-aeab97695bd243a7ee25ce740e614d3a9ca52fec.zip |
Add method to retreive suggestions from SuggestionHelper
Bug: 3414081
Change-Id: I96ffdd1c60fad933b32f7df023c51a9d10fcc53f
-rw-r--r-- | tests/src/com/android/inputmethod/latin/SuggestHelper.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/src/com/android/inputmethod/latin/SuggestHelper.java b/tests/src/com/android/inputmethod/latin/SuggestHelper.java index ce4e5dee7..88f89d9ae 100644 --- a/tests/src/com/android/inputmethod/latin/SuggestHelper.java +++ b/tests/src/com/android/inputmethod/latin/SuggestHelper.java @@ -91,6 +91,11 @@ public class SuggestHelper { return mSuggest.isValidWord(typed); } + // TODO: This may be slow, but is OK for test so far. + public SuggestedWords getSuggestions(CharSequence typed) { + return mSuggest.getSuggestions(null, createWordComposer(typed), null); + } + public CharSequence getFirstSuggestion(CharSequence typed) { WordComposer word = createWordComposer(typed); SuggestedWords suggestions = mSuggest.getSuggestions(null, word, null); |