Skip to content

Commit

Permalink
Fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
tamdh2 committed Jul 9, 2019
1 parent d6739bf commit 51f2a09
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class StoreDetailAdapter internal constructor() : RecyclerView.Adapter<RecyclerV

fun setComments(comments: MutableList<Comment>) {
mComments = comments
notifyItemRangeInserted(3, comments.size)
notifyDataSetChanged()
}

override fun onCreateViewHolder(@NonNull parent: ViewGroup, viewType: Int): RecyclerView.ViewHolder {
Expand Down

0 comments on commit 51f2a09

Please sign in to comment.