Its now a much cleaner transition

This commit is contained in:
LucasGGamerM 2023-02-01 21:42:47 -03:00
parent 4940eff7f9
commit 562a5aae7d
1 changed files with 4 additions and 4 deletions

View File

@ -566,11 +566,11 @@ public abstract class BaseStatusListFragment<T extends DisplayItemsParent> exten
public void onWarningClick(WarningFilteredStatusDisplayItem.Holder warningItem){
int i = warningItem.getAbsoluteAdapterPosition();
for(StatusDisplayItem item:warningItem.filteredItems){
i++;
displayItems.add(i, item);
}
displayItems.remove(warningItem.getAbsoluteAdapterPosition());
for(StatusDisplayItem item:warningItem.filteredItems){
displayItems.add(i, item);
i++;
}
adapter.notifyItemChanged(warningItem.getAbsoluteAdapterPosition());
}