5

I find IllegalArgumentException: Called attach on a child which is not detached when use this mFeedAdapter.notifyItemInserted(0) to change data, to find this.

But the solution is to change notifyItemInserted to notifyDataSetChanged.
I don't want to change the function, because I want to keep the animation. What can i do ?

Lovis
  • 9,513
  • 5
  • 31
  • 47
sfigo
  • 61
  • 1

0 Answers0