aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2014-01-28 00:24:31 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2014-01-28 00:24:31 -0800
commit6cf9d441192c71d70f256e0eb9bb3d083102232a (patch)
tree0801ed0c4cb91aaa2cd9dd6ef13b92fb5e30091e /java
parentdbd7915611e596dfacf4fa36c5959b4a0534f9d8 (diff)
parent675f1dbaf0c9a2e01fe04c07ceb23f6b79721fd0 (diff)
downloadlatinime-6cf9d441192c71d70f256e0eb9bb3d083102232a.tar.gz
latinime-6cf9d441192c71d70f256e0eb9bb3d083102232a.tar.xz
latinime-6cf9d441192c71d70f256e0eb9bb3d083102232a.zip
am 675f1dba: [IL98] Refactoring of setSuggestedWords
* commit '675f1dbaf0c9a2e01fe04c07ceb23f6b79721fd0': [IL98] Refactoring of setSuggestedWords
Diffstat (limited to 'java')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index c1dfde888..adebfc08c 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -1325,11 +1325,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
// TODO[IL]: Define a clear interface for this
public void setSuggestedWords(final SuggestedWords words, final boolean shouldShow) {
- if (mSuggestionStripView != null) {
- mSuggestionStripView.setSuggestions(
- words, SubtypeLocaleUtils.isRtlLanguage(mSubtypeSwitcher.getCurrentSubtype()));
- mKeyboardSwitcher.onAutoCorrectionStateChanged(words.mWillAutoCorrect);
- }
mInputLogic.mSuggestedWords = words;
final boolean newAutoCorrectionIndicator = words.mWillAutoCorrect;
// Put a blue underline to a word in TextView which will be auto-corrected.
@@ -1344,7 +1339,12 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
// the practice.
mInputLogic.mConnection.setComposingText(textWithUnderline, 1);
}
- setSuggestionStripShownInternal(shouldShow, true /* needsInputViewShown */);
+ if (mSuggestionStripView != null) {
+ mSuggestionStripView.setSuggestions(
+ words, SubtypeLocaleUtils.isRtlLanguage(mSubtypeSwitcher.getCurrentSubtype()));
+ mKeyboardSwitcher.onAutoCorrectionStateChanged(words.mWillAutoCorrect);
+ setSuggestionStripShownInternal(shouldShow, true /* needsInputViewShown */);
+ }
}
// TODO[IL]: Move this out of LatinIME.