From: Reimar Döffinger Date: Fri, 1 May 2020 20:34:21 +0000 (+0200) Subject: Fix compatibility with older Android versions. X-Git-Url: http://gitweb.fperrin.net/?p=Dictionary.git;a=commitdiff_plain;h=60b71b3a5c6fbcd12fbff3d814e8199aec7fba92;ds=sidebyside Fix compatibility with older Android versions. Multiword searches were broken. --- diff --git a/src/com/hughes/android/dictionary/engine/Index.java b/src/com/hughes/android/dictionary/engine/Index.java index 5b7b43d..fd69bb8 100644 --- a/src/com/hughes/android/dictionary/engine/Index.java +++ b/src/com/hughes/android/dictionary/engine/Index.java @@ -530,7 +530,7 @@ public final class Index { swapPairEntries); for (final Collection rows : matches.values()) { final List ordered = new ArrayList<>(rows); - ordered.sort(lengthComparator); + Collections.sort(ordered, lengthComparator); result.addAll(ordered); }