RecyclerView ItemAnimator animation does not start when notifyItemInserted () is called in onActivityResult

I am trying to update my RecyclerView in onActivityResult, but the ItemAnimator animation is not working.

However, if I post this update delay for a second, the animation works.

Is there a better way to solve this problem?

+4
source share

Source: https://habr.com/ru/post/1609818/


All Articles