[IL87] Remove a call to clearSuggestionStrip

The goal is to remove the function completely.

Bug: 8636060
Change-Id: I50b8f0368c8f6506209398ff931881e2235c3d2d
main
Jean Chalard 2014-01-24 20:32:14 +09:00
parent 3b939ed77f
commit d90bdd2187
1 changed files with 2 additions and 6 deletions

View File

@ -1457,12 +1457,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
// TODO[IL]: Define a clean interface for this // TODO[IL]: Define a clean interface for this
public void showSuggestionStrip(final SuggestedWords suggestedWords) { public void showSuggestionStrip(final SuggestedWords suggestedWords) {
if (suggestedWords.isEmpty()) { showSuggestionStripWithTypedWord(suggestedWords, suggestedWords.isEmpty() ? null
clearSuggestionStrip(); : suggestedWords.getWord(SuggestedWords.INDEX_OF_TYPED_WORD));
return;
}
showSuggestionStripWithTypedWord(suggestedWords,
suggestedWords.getWord(SuggestedWords.INDEX_OF_TYPED_WORD));
} }
// Called from {@link SuggestionStripView} through the {@link SuggestionStripView#Listener} // Called from {@link SuggestionStripView} through the {@link SuggestionStripView#Listener}