Collapse every item when data set changes

This commit is contained in:
Matte23 authored and Matte23 committed 2019-09-24 20:27:42 +02:00
1 parent 265b84dcbc
commit 0e9ce948ba
1 file changed
+3
@@ -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()
} }