Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f844094e authored by Jean Chalard's avatar Jean Chalard Committed by Android (Google) Code Review
Browse files

Merge "Small performance fix."

parents a6196733 516f18f9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -54,8 +54,8 @@ public class DictionaryCollection extends Dictionary {

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