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);