diff options
author | 2014-01-27 19:48:05 -0800 | |
---|---|---|
committer | 2014-01-27 19:48:05 -0800 | |
commit | 4b5e56d648d3b937049ee3feb33dfeef44ce7e04 (patch) | |
tree | 4eb584300df73fd687bdaaefbe4a3fe8f840faa4 /java | |
parent | 43502ea3ba600b7a6c0de3dc9a83534cc20da124 (diff) | |
parent | ca1c1ddd4ecdca1a863dbf8274dca2fc3e91a8ac (diff) | |
download | latinime-4b5e56d648d3b937049ee3feb33dfeef44ce7e04.tar.gz latinime-4b5e56d648d3b937049ee3feb33dfeef44ce7e04.tar.xz latinime-4b5e56d648d3b937049ee3feb33dfeef44ce7e04.zip |
am ca1c1ddd: Merge "[IL94] Remove a function and some reordering"
* commit 'ca1c1ddd4ecdca1a863dbf8274dca2fc3e91a8ac':
[IL94] Remove a function and some reordering
Diffstat (limited to 'java')
-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()) { |