diff options
author | 2014-01-28 03:46:28 +0000 | |
---|---|---|
committer | 2014-01-28 03:46:28 +0000 | |
commit | ca1c1ddd4ecdca1a863dbf8274dca2fc3e91a8ac (patch) | |
tree | e88c337c9857f7fdd60a6309b3997dbf51ebabe3 /java/src | |
parent | 9909d6aa49ea17b6dd391a48e2ad29be11006249 (diff) | |
parent | 5b5e877efe6e6d71702a682ef057fc22717582ad (diff) | |
download | latinime-ca1c1ddd4ecdca1a863dbf8274dca2fc3e91a8ac.tar.gz latinime-ca1c1ddd4ecdca1a863dbf8274dca2fc3e91a8ac.tar.xz latinime-ca1c1ddd4ecdca1a863dbf8274dca2fc3e91a8ac.zip |
Merge "[IL94] Remove a function and some reordering"
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 1670844ed..efc14fc86 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1330,15 +1330,12 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen // TODO[IL]: Define a clear interface for this public void setSuggestedWords(final SuggestedWords words) { - mInputLogic.mSuggestedWords = words; if (mSuggestionStripView != null) { mSuggestionStripView.setSuggestions(words); mKeyboardSwitcher.onAutoCorrectionStateChanged(words.mWillAutoCorrect); } - setAutoCorrectionIndicator(words.mWillAutoCorrect); - } - - private void setAutoCorrectionIndicator(final boolean newAutoCorrectionIndicator) { + mInputLogic.mSuggestedWords = words; + final boolean newAutoCorrectionIndicator = words.mWillAutoCorrect; // Put a blue underline to a word in TextView which will be auto-corrected. if (mInputLogic.mIsAutoCorrectionIndicatorOn != newAutoCorrectionIndicator && mInputLogic.mWordComposer.isComposingWord()) { |