From 245e631ed72922412c669f0848264bef444d88c3 Mon Sep 17 00:00:00 2001 From: Dmitriy Bogdanov Date: Mon, 27 Jul 2020 12:24:09 +0400 Subject: [PATCH] Fix IndexOutOfBoundsException in ManageArticleTagsActivity ...when there are less than 50 tags in total. --- .../fr/gaulupeau/apps/Poche/ui/ManageArticleTagsActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/fr/gaulupeau/apps/Poche/ui/ManageArticleTagsActivity.java b/app/src/main/java/fr/gaulupeau/apps/Poche/ui/ManageArticleTagsActivity.java index 259f9f88c..c000219d5 100644 --- a/app/src/main/java/fr/gaulupeau/apps/Poche/ui/ManageArticleTagsActivity.java +++ b/app/src/main/java/fr/gaulupeau/apps/Poche/ui/ManageArticleTagsActivity.java @@ -457,7 +457,7 @@ private static List filterTagList(String filterLabel, List src, List= 0 ? src.subList(0, limit) : src); + out.addAll(limit >= 0 ? src.subList(0, Math.min(limit, src.size())) : src); return out; }