mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Add method to retreive suggestions from SuggestionHelper
Bug: 3414081 Change-Id: I96ffdd1c60fad933b32f7df023c51a9d10fcc53f
This commit is contained in:
parent
195e0f715f
commit
aeab97695b
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user