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

* commit '774e374f5f58e21692df6113128c1707ae767fc0':
  Fix duplicate getSuggestions() call for main dictionary
main
Tadashi G. Takaoka 2012-08-06 01:18:28 -07:00 committed by Android Git Automerger
commit e6938283f6
1 changed files with 1 additions and 1 deletions

View File

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