Merge "Small performance fix."

main
Jean Chalard 2011-06-16 04:29:21 -07:00 committed by Android (Google) Code Review
commit f844094e83
1 changed files with 2 additions and 2 deletions

View File

@ -54,8 +54,8 @@ public class DictionaryCollection extends Dictionary {
@Override @Override
public boolean isValidWord(CharSequence word) { public boolean isValidWord(CharSequence word) {
for (final Dictionary dict : mDictionaries) for (int i = mDictionaries.size() - 1; i >= 0; --i)
if (dict.isValidWord(word)) return true; if (mDictionaries.get(i).isValidWord(word)) return true;
return false; return false;
} }