From 32f6503a27fd91ae2e72ab49b0f67dcb0ee76566 Mon Sep 17 00:00:00 2001 From: Jean Chalard Date: Wed, 22 Aug 2012 12:09:24 +0900 Subject: [PATCH] Fix a silly bug. This would prevent user history to work at all. Bug: 7023638 Change-Id: I5d8867a07fb8859325d274e956ae667c094d0ac1 --- .../src/com/android/inputmethod/latin/ExpandableDictionary.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/src/com/android/inputmethod/latin/ExpandableDictionary.java b/java/src/com/android/inputmethod/latin/ExpandableDictionary.java index d101aaf15..89ef284ac 100644 --- a/java/src/com/android/inputmethod/latin/ExpandableDictionary.java +++ b/java/src/com/android/inputmethod/latin/ExpandableDictionary.java @@ -251,7 +251,7 @@ public class ExpandableDictionary extends Dictionary { public ArrayList getSuggestions(final WordComposer composer, final CharSequence prevWord, final ProximityInfo proximityInfo) { if (reloadDictionaryIfRequired()) return null; - if (composer.size() <= 1) { + if (composer.size() > 1) { if (composer.size() >= BinaryDictionary.MAX_WORD_LENGTH) { return null; }