diff options
author | 2014-01-27 03:22:06 -0800 | |
---|---|---|
committer | 2014-01-27 03:22:06 -0800 | |
commit | efef6d87e9e288b5fb10faaf60dde39c6d199c24 (patch) | |
tree | 896cf6f41a4a1fc22f0a5f878224779a4813fb52 | |
parent | 2a36d9bf3b99e61af4117aef3c6bc1775776636f (diff) | |
parent | 3f226af439700e9e01eabf7280a5c366e10a3d74 (diff) | |
download | latinime-efef6d87e9e288b5fb10faaf60dde39c6d199c24.tar.gz latinime-efef6d87e9e288b5fb10faaf60dde39c6d199c24.tar.xz latinime-efef6d87e9e288b5fb10faaf60dde39c6d199c24.zip |
am 3f226af4: Merge "[IL89] Inline a function"
* commit '3f226af439700e9e01eabf7280a5c366e10a3d74':
[IL89] Inline a function
-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; |