diff options
author | 2012-06-28 16:22:19 +0900 | |
---|---|---|
committer | 2012-06-29 15:05:08 +0900 | |
commit | f89a75134b03bd2675c85249a184c09f83c6f80c (patch) | |
tree | a29666cf5519301b9b27117bc21da49107aea77c /java/src | |
parent | 06bc7fedbda5ee6d0edb62f0681a2b9da01032c7 (diff) | |
download | latinime-f89a75134b03bd2675c85249a184c09f83c6f80c.tar.gz latinime-f89a75134b03bd2675c85249a184c09f83c6f80c.tar.xz latinime-f89a75134b03bd2675c85249a184c09f83c6f80c.zip |
Small readability improvement (A10)
Change-Id: Iba326921711e1c4eab38264e66b6b44a64fec398
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/latin/Suggest.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/Suggest.java b/java/src/com/android/inputmethod/latin/Suggest.java index b02de9a4a..2d388e180 100644 --- a/java/src/com/android/inputmethod/latin/Suggest.java +++ b/java/src/com/android/inputmethod/latin/Suggest.java @@ -166,6 +166,8 @@ public class Suggest { public SuggestedWords getSuggestedWords( final WordComposer wordComposer, CharSequence prevWordForBigram, final ProximityInfo proximityInfo, final boolean isCorrectionEnabled, + // TODO: remove isPrediction parameter. It effectively means the same thing + // as wordComposer.size() <= 1 final boolean isPrediction) { LatinImeLogger.onStartSuggestion(prevWordForBigram); final boolean isFirstCharCapitalized = @@ -261,7 +263,7 @@ public class Suggest { LatinImeLogger.onAddSuggestedWord(wordInfo.mWord.toString(), wordInfo.mSourceDict); } - if (!isPrediction) { + if (!TextUtils.isEmpty(typedWord)) { suggestionsContainer.add(0, new SuggestedWordInfo(typedWord, SuggestedWordInfo.MAX_SCORE, SuggestedWordInfo.KIND_TYPED, Dictionary.TYPE_USER_TYPED)); |