Fix a crash

This commit is contained in:
Thomas 2023-03-14 10:31:18 +01:00
parent 3746673f9d
commit ba1aa01d46

View file

@ -2502,7 +2502,7 @@ public class StatusAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
statusIdMax = statusList.get(holder.getBindingAdapterPosition() - 1).id;
}
fetchMoreCallBack.autoFetch(statusIdMin, statusIdMax, status);
adapter.notifyItemChanged(holder.getBindingAdapterPosition());
recyclerView.post(() -> adapter.notifyItemChanged(holder.getBindingAdapterPosition()));
}
} else if (status.isFetching) {
DrawerMessageFetchingBinding drawerMessageFetchingBinding = DrawerMessageFetchingBinding.inflate(LayoutInflater.from(context));