Collapse every item when data set changes

This commit is contained in:
2019-09-24 20:27:42 +02:00
committed by Matte23
parent 265b84dcbc
commit 0e9ce948ba

View File

@@ -226,6 +226,9 @@ class CircularLetterAdapter(
} }
fun changeDataSet(newCirculars: List<Circular>) { fun changeDataSet(newCirculars: List<Circular>) {
if (circulars.size != newCirculars.size)
collapsedItems = -1
circulars = newCirculars circulars = newCirculars
notifyDataSetChanged() notifyDataSetChanged()
} }