diff options
author | 2014-01-24 20:47:34 +0900 | |
---|---|---|
committer | 2014-01-27 18:42:33 +0900 | |
commit | 33ff321d6cd46a5cb227bf8a1cd85950596d6fda (patch) | |
tree | 2a3997cf3a015865c349adfa57c2d981560cbf61 /java/src | |
parent | ca819178a1211219297a2bdaef7c024375b8c7ea (diff) | |
download | latinime-33ff321d6cd46a5cb227bf8a1cd85950596d6fda.tar.gz latinime-33ff321d6cd46a5cb227bf8a1cd85950596d6fda.tar.xz latinime-33ff321d6cd46a5cb227bf8a1cd85950596d6fda.zip |
[IL89] Inline a function
We will then refactor the contents of showSuggestionStripWithTypedWord
Bug: 8636060
Change-Id: I8a2a0d50b79fcc7ad21b01a0060b9fa7e4c1bdd6
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index ea3940e75..967e72bda 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1330,12 +1330,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen } // TODO[IL]: Define a clear interface for this - public void clearSuggestionStrip() { - setSuggestedWords(SuggestedWords.EMPTY); - setAutoCorrectionIndicator(false); - } - - // TODO[IL]: Define a clear interface for this public void setSuggestedWords(final SuggestedWords words) { mInputLogic.mSuggestedWords = words; if (mSuggestionStripView != null) { @@ -1432,10 +1426,12 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen private void showSuggestionStripWithTypedWord(final SuggestedWords suggestedWords, final String typedWord) { + // TODO: refactor this if (suggestedWords.isEmpty()) { // No auto-correction is available, clear the cached values. AccessibilityUtils.getInstance().setAutoCorrection(SuggestedWords.EMPTY, typedWord); - clearSuggestionStrip(); + setSuggestedWords(SuggestedWords.EMPTY); + setAutoCorrectionIndicator(false); return; } final String autoCorrection; |