mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-21 17:05:39 +03:00
Always allow collapsing sections to fix cases where state doesn't restore
Change-Id: Ib609de02b48b84a08e0643281a918793074ccc9d
This commit is contained in:
parent
ca65de5eb5
commit
22f5408a1c
1 changed files with 3 additions and 2 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue