mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-12-28 03:48:24 +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();
|
// mVisibleComments.get(parentPosition).removeMoreChildrenIds();
|
||||||
|
|
||||||
if (position != -1) {
|
if (position != -1) {
|
||||||
mVisibleComments.remove(position);
|
|
||||||
if (mIsSingleCommentThreadMode) {
|
if (mIsSingleCommentThreadMode) {
|
||||||
|
mVisibleComments.remove(position - 1);
|
||||||
notifyItemRemoved(position + 1);
|
notifyItemRemoved(position + 1);
|
||||||
} else {
|
} else {
|
||||||
|
mVisibleComments.remove(position);
|
||||||
notifyItemRemoved(position);
|
notifyItemRemoved(position);
|
||||||
}
|
}
|
||||||
List<Comment> trulyNewComments = new ArrayList<>();
|
List<Comment> trulyNewComments = new ArrayList<>();
|
||||||
|
Loading…
Reference in New Issue
Block a user