diff options
author | 2014-01-24 21:14:19 +0900 | |
---|---|---|
committer | 2014-01-27 20:38:45 +0900 | |
commit | 5b5e877efe6e6d71702a682ef057fc22717582ad (patch) | |
tree | 46a0468cb934dcf00f64d4353736b3c2b495471e /java/src | |
parent | 37e1cc931f8487c6d8f0b6633c7f626d0839ebf5 (diff) | |
download | latinime-5b5e877efe6e6d71702a682ef057fc22717582ad.tar.gz latinime-5b5e877efe6e6d71702a682ef057fc22717582ad.tar.xz latinime-5b5e877efe6e6d71702a682ef057fc22717582ad.zip |
[IL94] Remove a function and some reordering
Bug: 8636060
Change-Id: I4baa237c9c7b58a8eb4158c34b9d3f3dfb95c69c
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()) { |