diff options
author | 2014-03-03 22:58:08 -0800 | |
---|---|---|
committer | 2014-03-03 22:58:08 -0800 | |
commit | 49b7a5993c91edfa0c7e01e14ce31c1f7db97d29 (patch) | |
tree | 4774b4e9003e21529e370d20be9ae36df240082b /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | f2bfd35c56526a7b0da5399b53e2dc00b58768f3 (diff) | |
parent | e110018e2a7cc5809aaadb4c0e9cfef70760543f (diff) | |
download | latinime-49b7a5993c91edfa0c7e01e14ce31c1f7db97d29.tar.gz latinime-49b7a5993c91edfa0c7e01e14ce31c1f7db97d29.tar.xz latinime-49b7a5993c91edfa0c7e01e14ce31c1f7db97d29.zip |
am e110018e: [IL114] Move a method to InputLogic
* commit 'e110018e2a7cc5809aaadb4c0e9cfef70760543f':
[IL114] Move a method to InputLogic
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 3c5c8bf70..0b0769423 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1443,28 +1443,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen sequenceNumber, callback); } - // TODO[IL]: Move this to InputLogic - public SuggestedWords maybeRetrieveOlderSuggestions(final String typedWord, - final SuggestedWords suggestedWords, final SuggestedWords previousSuggestedWords) { - // TODO: consolidate this into getSuggestedWords - // We update the suggestion strip only when we have some suggestions to show, i.e. when - // the suggestion count is > 1; else, we leave the old suggestions, with the typed word - // replaced with the new one. However, when the length of the typed word is 1 or 0 (after - // a deletion typically), we do want to remove the old suggestions. - if (suggestedWords.size() > 1 || typedWord.length() <= 1) { - return suggestedWords; - } else { - final SuggestedWords oldSuggestedWords = - previousSuggestedWords.isPunctuationSuggestions() ? SuggestedWords.EMPTY - : previousSuggestedWords; - final ArrayList<SuggestedWords.SuggestedWordInfo> typedWordAndPreviousSuggestions = - SuggestedWords.getTypedWordAndPreviousSuggestions(typedWord, oldSuggestedWords); - return new SuggestedWords(typedWordAndPreviousSuggestions, null /* rawSuggestions */, - false /* typedWordValid */, false /* hasAutoCorrectionCandidate */, - true /* isObsoleteSuggestions */, false /* isPrediction */); - } - } - @Override public void showSuggestionStrip(final SuggestedWords sourceSuggestedWords) { final SuggestedWords suggestedWords = |