mirror of
https://github.com/Matte23/circolapp.git
synced 2025-12-06 07:29:10 +00:00
Collapse every item when data set changes
This commit is contained in:
@@ -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()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user