aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2014-01-28 03:46:28 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-01-28 03:46:28 +0000
commitca1c1ddd4ecdca1a863dbf8274dca2fc3e91a8ac (patch)
treee88c337c9857f7fdd60a6309b3997dbf51ebabe3 /java/src
parent9909d6aa49ea17b6dd391a48e2ad29be11006249 (diff)
parent5b5e877efe6e6d71702a682ef057fc22717582ad (diff)
downloadlatinime-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.java7
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()) {