mirror of
https://github.com/Matte23/circolapp.git
synced 2026-10-15 23:45:16 +00:00
Collapse every item when data set changes
This commit is contained in:
1 parent
265b84dcbc
commit
0e9ce948ba
1 file changed
+3
@@ -226,6 +226,9 @@ class CircularLetterAdapter(
|
||||
}
|
||||
|
||||
fun changeDataSet(newCirculars: List<Circular>) {
|
||||
if (circulars.size != newCirculars.size)
|
||||
collapsedItems = -1
|
||||
|
||||
circulars = newCirculars
|
||||
notifyDataSetChanged()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user