]> gitweb.fperrin.net Git - Dictionary.git/blobdiff - src/com/hughes/android/dictionary/engine/Index.java
Fixed crashes, Slovenian fix, hide up/down buttons, proper keyboard
[Dictionary.git] / src / com / hughes / android / dictionary / engine / Index.java
index 81d14984c75aedca7814dd73d1ad1fa771641958..cea2caca639db601979d86d7082e890bfeaeeb46 100644 (file)
@@ -21,7 +21,6 @@ import com.hughes.android.dictionary.DictionaryInfo;
 import com.hughes.android.dictionary.DictionaryInfo.IndexInfo;
 import com.hughes.android.dictionary.engine.RowBase.RowKey;
 import com.hughes.util.CachingList;
-import com.hughes.util.CollectionUtil;
 import com.hughes.util.TransformingList;
 import com.hughes.util.raf.RAFList;
 import com.hughes.util.raf.RAFSerializable;
@@ -373,7 +372,7 @@ public final class Index implements RAFSerializable<Index> {
     final int exactMatchIndex = findInsertionPointIndex(searchText, interrupted);
     if (exactMatchIndex != -1) {
         final IndexEntry exactMatch = sortedIndexEntries.get(exactMatchIndex);
-        if (pattern.matcher(exactMatch.token).matches()) {
+        if (pattern.matcher(exactMatch.token).find()) {
             matches.get(RowMatchType.TITLE_MATCH).add(rows.get(exactMatch.startRow));
         }
     }