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
1 changed files with 3 additions and 1 deletions

View File

@ -297,7 +297,9 @@ class RoomListFragment @Inject constructor(
)
)
concatAdapter.addAdapter(sectionAdapter)
concatAdapter.addAdapter(contentAdapter.adapter)
if (section.isExpanded.value.orTrue()) {
concatAdapter.addAdapter(contentAdapter.adapter)
}
}
// Add the footer controller