https://kotlinlang.org logo
#getting-started
Title
# getting-started
s

Sudhir Singh Khanger

06/30/2018, 3:03 AM
Copy code
class MyDiffCallback(private val oldMovieList: MutableList<Movie?>,
                     private val newMovieList: MutableList<Movie?>) : DiffUtil.Callback() {

val id = oldMovieList[oldItemPosition]
I am unable to access properties of these Movie items. There's no options after
oldMovieList[oldItemPosition]
. Any ideas why?