mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-12-27 11:28:22 +01:00
Fix IndexOutOfBoundsException
in CommentsRecyclerViewAdapter
This commit is contained in:
parent
143bc5e1b6
commit
6542859892
@ -672,10 +672,12 @@ public class CommentsRecyclerViewAdapter extends RecyclerView.Adapter<RecyclerVi
|
||||
// mVisibleComments.get(parentPosition).removeMoreChildrenIds();
|
||||
|
||||
if (position != -1) {
|
||||
mVisibleComments.remove(position);
|
||||
|
||||
if (mIsSingleCommentThreadMode) {
|
||||
mVisibleComments.remove(position - 1);
|
||||
notifyItemRemoved(position + 1);
|
||||
} else {
|
||||
mVisibleComments.remove(position);
|
||||
notifyItemRemoved(position);
|
||||
}
|
||||
List<Comment> trulyNewComments = new ArrayList<>();
|
||||
|
Loading…
Reference in New Issue
Block a user