From 60b71b3a5c6fbcd12fbff3d814e8199aec7fba92 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Reimar=20D=C3=B6ffinger?= Date: Fri, 1 May 2020 22:34:21 +0200 Subject: [PATCH] Fix compatibility with older Android versions. Multiword searches were broken. --- src/com/hughes/android/dictionary/engine/Index.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.43.0