Always allow collapsing sections to fix cases where state doesn't restore
Change-Id: Ib609de02b48b84a08e0643281a918793074ccc9d
This commit is contained in:
parent
ca65de5eb5
commit
22f5408a1c
|
@ -243,8 +243,9 @@ class RoomListFragment :
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun refreshCollapseStates() {
|
private fun refreshCollapseStates() {
|
||||||
val sectionsCount = adapterInfosList.count { !it.sectionHeaderAdapter.roomsSectionData.isHidden }
|
// SC: let's just always allow collapsing sections. This messes with our persisted collapse state otherwise.
|
||||||
val isRoomSectionCollapsable = sectionsCount > 1
|
// val sectionsCount = adapterInfosList.count { !it.sectionHeaderAdapter.roomsSectionData.isHidden }
|
||||||
|
val isRoomSectionCollapsable = true // sectionsCount > 1
|
||||||
if (lastLoadForcedExpand && isRoomSectionCollapsable) {
|
if (lastLoadForcedExpand && isRoomSectionCollapsable) {
|
||||||
loadExpandStatus()
|
loadExpandStatus()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue