after update android studio to arctic fox, I get this warning. But I dont know what is the efficient way to notify data change. in my code I'm filling the adapter from network call and then I notifydatasetchange, but the compiler gave me this:
It will always be more efficient to use more specific change events if you can. Rely on notifyDataSetChanged as a last resort. RecycleView
edit question: the want us to use
DiffUtil docs
instead of notifyDataSetChanged() because it much faster. check this article on medium.