Fix invalid expand status on tab switch

Change-Id: I8db822d61b93b0b6f12ecbe4c7270f42c204caa5
This commit is contained in:
SpiritCroc 2021-04-14 16:43:54 +02:00
parent 0aee3cf68c
commit 3bfae2a28b

View file

@ -297,8 +297,10 @@ class RoomListFragment @Inject constructor(
) )
) )
concatAdapter.addAdapter(sectionAdapter) concatAdapter.addAdapter(sectionAdapter)
if (section.isExpanded.value.orTrue()) {
concatAdapter.addAdapter(contentAdapter.adapter) concatAdapter.addAdapter(contentAdapter.adapter)
} }
}
// Add the footer controller // Add the footer controller
footerController.listener = this footerController.listener = this