diff options
author | 2012-07-06 16:15:36 +0900 | |
---|---|---|
committer | 2012-07-10 14:24:33 +0900 | |
commit | c466cd3f9902ef999573a3d07a125f08a8908c5a (patch) | |
tree | 790f46863804403f9f4445b1043b40123777dc70 /java/src | |
parent | 32f5384fc955f1e9fa8613ca86081f1bf4ccc421 (diff) | |
download | latinime-c466cd3f9902ef999573a3d07a125f08a8908c5a.tar.gz latinime-c466cd3f9902ef999573a3d07a125f08a8908c5a.tar.xz latinime-c466cd3f9902ef999573a3d07a125f08a8908c5a.zip |
Move a test (A77)
Change-Id: I417bd5f1318696aaa39fee18f3e750ea5c231f6b
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 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; |