diff options
author | 2014-01-24 20:32:14 +0900 | |
---|---|---|
committer | 2014-01-27 18:42:33 +0900 | |
commit | d90bdd21870700cf1a655ab24fce2b0b904aba67 (patch) | |
tree | 70940cfbd0f2898e7e110311b7c0534a2fd687b6 /java/src/com/android/inputmethod | |
parent | 3b939ed77f5de7509776a88059ac688757ee66ea (diff) | |
download | latinime-d90bdd21870700cf1a655ab24fce2b0b904aba67.tar.gz latinime-d90bdd21870700cf1a655ab24fce2b0b904aba67.tar.xz latinime-d90bdd21870700cf1a655ab24fce2b0b904aba67.zip |
[IL87] Remove a call to clearSuggestionStrip
The goal is to remove the function completely.
Bug: 8636060
Change-Id: I50b8f0368c8f6506209398ff931881e2235c3d2d
Diffstat (limited to 'java/src/com/android/inputmethod')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 0382b3405..4520283c0 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1457,12 +1457,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen // TODO[IL]: Define a clean interface for this public void showSuggestionStrip(final SuggestedWords suggestedWords) { - if (suggestedWords.isEmpty()) { - clearSuggestionStrip(); - return; - } - showSuggestionStripWithTypedWord(suggestedWords, - suggestedWords.getWord(SuggestedWords.INDEX_OF_TYPED_WORD)); + showSuggestionStripWithTypedWord(suggestedWords, suggestedWords.isEmpty() ? null + : suggestedWords.getWord(SuggestedWords.INDEX_OF_TYPED_WORD)); } // Called from {@link SuggestionStripView} through the {@link SuggestionStripView#Listener} |