am 07d485d7: Merge "Fix a silly bug." into jb-mr1-dev

* commit '07d485d7051a27e727163dc406cb0ef9a5eae2cc':
  Fix a silly bug.
This commit is contained in:
Jean Chalard 2012-08-21 20:18:23 -07:00 committed by Android Git Automerger
commit 3c738d6151

View file

@ -250,7 +250,7 @@ public class ExpandableDictionary extends Dictionary {
public ArrayList<SuggestedWordInfo> 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;
}