fix(thread-fragment): use itemsToModify instead of items when adding the extended footer to the ThreadFragment

This commit is contained in:
LucasGGamerM
2024-04-17 07:44:16 -03:00
parent e9684441c0
commit de57ceb939

View File

@@ -167,7 +167,7 @@ public class ThreadFragment extends StatusListFragment implements ProvidesAssist
for (int deleteThisItem : deleteTheseItems) itemsToModify.remove(deleteThisItem);
if(s.id.equals(mainStatus.id)) {
items.add(items.size()-1, new ExtendedFooterStatusDisplayItem(s.id, this, accountID, s.getContentStatus()));
itemsToModify.add(itemsToModify.size()-1, new ExtendedFooterStatusDisplayItem(s.id, this, accountID, s.getContentStatus()));
}
return items;
}