mirror of
https://github.com/Docile-Alligator/Infinity-For-Reddit.git
synced 2026-03-03 06:18:07 +00:00
Fix an ArrayIndexOutOfBoundsException in CommentsRecyclerViewAdapter.
This commit is contained in:
@ -696,8 +696,10 @@ public class CommentsRecyclerViewAdapter extends RecyclerView.Adapter<RecyclerVi
|
||||
}
|
||||
}
|
||||
|
||||
mVisibleComments.get(placeholderPosition).setLoadingMoreChildren(false);
|
||||
mVisibleComments.get(placeholderPosition).setLoadMoreChildrenFailed(true);
|
||||
if (placeholderPosition >= mVisibleComments.size() || placeholderPosition < 0) {
|
||||
mVisibleComments.get(placeholderPosition).setLoadingMoreChildren(false);
|
||||
mVisibleComments.get(placeholderPosition).setLoadMoreChildrenFailed(true);
|
||||
}
|
||||
((LoadMoreChildCommentsViewHolder) holder).placeholderTextView.setText(R.string.comment_load_more_comments_failed);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user