From e03d44ddf3c363a2925d56c406f83ea37ea0ae26 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 15 Aug 2024 22:35:34 +0200 Subject: [PATCH] Fixed reducing number of keywords --- app/src/main/java/eu/faircode/email/MessageHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/MessageHelper.java b/app/src/main/java/eu/faircode/email/MessageHelper.java index 8a83d6ac36..87546bcb83 100644 --- a/app/src/main/java/eu/faircode/email/MessageHelper.java +++ b/app/src/main/java/eu/faircode/email/MessageHelper.java @@ -1531,7 +1531,7 @@ public class MessageHelper { @NonNull String[] getKeywords() throws MessagingException { - List keywords = Arrays.asList(imessage.getFlags().getUserFlags()); + List keywords = new ArrayList<>(Arrays.asList(imessage.getFlags().getUserFlags())); while (keywords.size() > MAX_KEYWORDS) keywords.remove(keywords.size() - 1); Collections.sort(keywords);