aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2014-01-27 11:17:44 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-01-27 11:17:45 +0000
commit8f3e37a63187f4fb2731f629472037a373796097 (patch)
treec07f44a752457eaffc0f2396a4b3c88850e8a6f3 /java/src
parent521a83a3f122d02d24317540fd7bafb1918acb08 (diff)
parentd90bdd21870700cf1a655ab24fce2b0b904aba67 (diff)
downloadlatinime-8f3e37a63187f4fb2731f629472037a373796097.tar.gz
latinime-8f3e37a63187f4fb2731f629472037a373796097.tar.xz
latinime-8f3e37a63187f4fb2731f629472037a373796097.zip
Merge "[IL87] Remove a call to clearSuggestionStrip"
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java8
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}