From 9a1668a29a6003d89c71d26ddab3766fd4c1fda2 Mon Sep 17 00:00:00 2001 From: FineFindus Date: Thu, 13 Jun 2024 21:28:36 +0200 Subject: [PATCH] fix(StatusDisplayItem): explictly copy filter list Fixes an issue, where the app could crash when trying to add client-side filters to an immutable list. This was the case for viewing scheduled statuses --- .../joinmastodon/android/ui/displayitems/StatusDisplayItem.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/StatusDisplayItem.java b/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/StatusDisplayItem.java index 7dcfd7d27..573a5cab8 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/StatusDisplayItem.java +++ b/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/StatusDisplayItem.java @@ -230,7 +230,7 @@ public abstract class StatusDisplayItem{ LegacyFilter applyingFilter=null; if(status.filtered!=null){ - List filters=status.filtered; + ArrayList filters= new ArrayList<>(status.filtered); // Only add client filters if there are no pre-existing status filter if(filters.isEmpty())