From c9e6a0bc2eec9a4a06fc59daf6a275cf54b8ef1d Mon Sep 17 00:00:00 2001 From: Balazs Toldi Date: Sun, 20 Aug 2023 10:56:41 +0200 Subject: [PATCH] Fix comment refreshing bug on single thread view Closes #143 --- .../infinityforlemmy/adapters/CommentsRecyclerViewAdapter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/toldi/infinityforlemmy/adapters/CommentsRecyclerViewAdapter.java b/app/src/main/java/eu/toldi/infinityforlemmy/adapters/CommentsRecyclerViewAdapter.java index 7eaf4935..bb0b43e7 100644 --- a/app/src/main/java/eu/toldi/infinityforlemmy/adapters/CommentsRecyclerViewAdapter.java +++ b/app/src/main/java/eu/toldi/infinityforlemmy/adapters/CommentsRecyclerViewAdapter.java @@ -905,7 +905,8 @@ public class CommentsRecyclerViewAdapter extends RecyclerView.Adapter 0) ? 1 : 0; + notifyItemRangeInserted(sizeBefore, comments.size() + offset); } else { notifyItemRangeInserted(sizeBefore, comments.size()); }