Follow up to Ic7d2cbb2c1b2deaa4e735484bdc7413c0b3b1939

some cleanups as well

Change-Id: I92252eb7b13cb70283a79f50429ed77405ea9575
This commit is contained in:
Ken Wakasa 2014-01-27 16:08:27 +09:00
parent 963d97af6d
commit 03283b636c

View file

@ -1467,9 +1467,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
mSettings.getCurrent().mSpacingAndPunctuations.mSuggestPuncList; mSettings.getCurrent().mSpacingAndPunctuations.mSuggestPuncList;
final SuggestedWords oldSuggestedWords = previousSuggestedWords == punctuationList final SuggestedWords oldSuggestedWords = previousSuggestedWords == punctuationList
? SuggestedWords.EMPTY : previousSuggestedWords; ? SuggestedWords.EMPTY : previousSuggestedWords;
if (TextUtils.isEmpty(typedWord)) {
return oldSuggestedWords;
}
final ArrayList<SuggestedWords.SuggestedWordInfo> typedWordAndPreviousSuggestions = final ArrayList<SuggestedWords.SuggestedWordInfo> typedWordAndPreviousSuggestions =
SuggestedWords.getTypedWordAndPreviousSuggestions(typedWord, oldSuggestedWords); SuggestedWords.getTypedWordAndPreviousSuggestions(typedWord, oldSuggestedWords);
return new SuggestedWords(typedWordAndPreviousSuggestions, return new SuggestedWords(typedWordAndPreviousSuggestions,