Skip to content

Commit

Permalink
fix(StatusDisplayItem): explictly copy filter list
Browse files Browse the repository at this point in the history
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
  • Loading branch information
FineFindus committed Jun 15, 2024
1 parent 6ad8a85 commit 9a1668a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ public static ArrayList<StatusDisplayItem> buildItems(BaseStatusListFragment<?>

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())
Expand Down

0 comments on commit 9a1668a

Please sign in to comment.