am dba77186: Fix duplicate getSuggestions() call for main dictionary

* commit 'dba77186f78a9c8b449cc0def5153586ef3f81f9':
  Fix duplicate getSuggestions() call for main dictionary
This commit is contained in:
Tadashi G. Takaoka 2012-08-06 01:17:20 -07:00 committed by Android Git Automerger
commit 774e374f5f

View file

@ -65,7 +65,7 @@ public class DictionaryCollection extends Dictionary {
prevWord, proximityInfo);
if (null == suggestions) suggestions = new ArrayList<SuggestedWordInfo>();
final int length = dictionaries.size();
for (int i = 0; i < length; ++ i) {
for (int i = 1; i < length; ++ i) {
final ArrayList<SuggestedWordInfo> sugg = dictionaries.get(i).getSuggestions(composer,
prevWord, proximityInfo);
if (null != sugg) suggestions.addAll(sugg);