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
This commit is contained in:
FineFindus 2024-06-13 21:28:36 +02:00
parent 6ad8a85044
commit 9a1668a29a
No known key found for this signature in database
GPG Key ID: 64873EE210FF8E6B
1 changed files with 1 additions and 1 deletions

View File

@ -230,7 +230,7 @@ public abstract class StatusDisplayItem{
LegacyFilter applyingFilter=null;
if(status.filtered!=null){
List<FilterResult> filters=status.filtered;
ArrayList<FilterResult> filters= new ArrayList<>(status.filtered);
// Only add client filters if there are no pre-existing status filter
if(filters.isEmpty())