Skip to content
Snippets Groups Projects
Commit b960b146 authored by Nicolas Pomepuy's avatar Nicolas Pomepuy
Browse files

Fix the history adapter item refresh wwhen description changes

Fixes #2592
parent df150441
No related branches found
No related tags found
1 merge request!1447Fix the history adapter item refresh wwhen description changes
Pipeline #240167 passed with stage
in 21 minutes and 24 seconds
......@@ -165,4 +165,10 @@ class HistoryAdapter(private val inCards: Boolean = false, private val listEvent
}
override fun onItemMoved(dragFrom: Int, dragTo: Int) { }
override fun createCB(): DiffCallback<MediaWrapper> = object : DiffCallback<MediaWrapper>() {
override fun areContentsTheSame(oldItemPosition: Int, newItemPosition: Int) =
oldList[oldItemPosition].title == newList[newItemPosition].title &&
oldList[oldItemPosition].description == newList[newItemPosition].description
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment