mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Small readability improvement (A10)
Change-Id: Iba326921711e1c4eab38264e66b6b44a64fec398
This commit is contained in:
parent
06bc7fedbd
commit
f89a75134b
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user