diff --git a/app/src/main/java/com/github/libretube/adapters/CommentsAdapter.kt b/app/src/main/java/com/github/libretube/adapters/CommentsAdapter.kt index 06dd1d65e..6c3c18911 100644 --- a/app/src/main/java/com/github/libretube/adapters/CommentsAdapter.kt +++ b/app/src/main/java/com/github/libretube/adapters/CommentsAdapter.kt @@ -16,7 +16,7 @@ class CommentsAdapter(private val comments: MutableList<Comment>): RecyclerView fun updateItems(newItems: List<Comment>){ comments.addAll(newItems) - notifyDataSetChanged() + notifyItemRangeInserted(comments.size, newItems.size) } override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder {