]> gitweb.fperrin.net Git - Dictionary.git/commitdiff
Fix compatibility with older Android versions.
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Fri, 1 May 2020 20:34:21 +0000 (22:34 +0200)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Fri, 1 May 2020 20:34:21 +0000 (22:34 +0200)
Multiword searches were broken.

src/com/hughes/android/dictionary/engine/Index.java

index 5b7b43d5aadd20a39a3de5e047b3ca348cdd7b83..fd69bb857e4bd53c08152211c91bccf4115e3d10 100644 (file)
@@ -530,7 +530,7 @@ public final class Index {
             swapPairEntries);
         for (final Collection<RowBase> rows : matches.values()) {
             final List<RowBase> ordered = new ArrayList<>(rows);
-            ordered.sort(lengthComparator);
+            Collections.sort(ordered, lengthComparator);
             result.addAll(ordered);
         }