aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2012-07-09 23:01:33 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-07-09 23:01:33 -0700
commitfed702a0ad42dc4f8376057187a834c2493e5bd9 (patch)
tree2fd37322a967de37cce9b6d27618ae115a4223f2 /java/src
parent75e605f7ca723dc215ac7946234af6bc29b83d27 (diff)
parentc466cd3f9902ef999573a3d07a125f08a8908c5a (diff)
downloadlatinime-fed702a0ad42dc4f8376057187a834c2493e5bd9.tar.gz
latinime-fed702a0ad42dc4f8376057187a834c2493e5bd9.tar.xz
latinime-fed702a0ad42dc4f8376057187a834c2493e5bd9.zip
Merge "Move a test (A77)"
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 080172982..7b4aedeb6 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -1690,10 +1690,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
SuggestedWords suggestedWords = mSuggest.getSuggestedWords(mWordComposer,
prevWord, mKeyboardSwitcher.getKeyboard().getProximityInfo(),
mCurrentSettings.mCorrectionEnabled, !mWordComposer.isComposingWord());
-
- if (mWordComposer.isComposingWord()) {
- suggestedWords = maybeRetrieveOlderSuggestions(typedWord, suggestedWords);
- }
+ suggestedWords = maybeRetrieveOlderSuggestions(typedWord, suggestedWords);
if (null != suggestedWords && suggestedWords.size() > 0) {
showSuggestions(suggestedWords, typedWord);
@@ -1711,7 +1708,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
// in most cases, suggestion count is 1 when typed word's length is 1, but we do always
// need to clear the previous state when the user starts typing a word (i.e. typed word's
// length == 1).
- if (suggestedWords.size() > 1 || typedWord.length() == 1
+ if (suggestedWords.size() > 1 || typedWord.length() == 1 || !mWordComposer.isComposingWord()
|| !suggestedWords.mTypedWordValid
|| mSuggestionsView.isShowingAddToDictionaryHint()) {
return suggestedWords;