Always allow collapsing sections to fix cases where state doesn't restore

Change-Id: Ib609de02b48b84a08e0643281a918793074ccc9d
This commit is contained in:
SpiritCroc 2022-10-27 17:15:27 +02:00
parent ca65de5eb5
commit 22f5408a1c
1 changed files with 3 additions and 2 deletions

View File

@ -243,8 +243,9 @@ class RoomListFragment :
}
private fun refreshCollapseStates() {
val sectionsCount = adapterInfosList.count { !it.sectionHeaderAdapter.roomsSectionData.isHidden }
val isRoomSectionCollapsable = sectionsCount > 1
// SC: let's just always allow collapsing sections. This messes with our persisted collapse state otherwise.
// val sectionsCount = adapterInfosList.count { !it.sectionHeaderAdapter.roomsSectionData.isHidden }
val isRoomSectionCollapsable = true // sectionsCount > 1
if (lastLoadForcedExpand && isRoomSectionCollapsable) {
loadExpandStatus()
}