mirror of
https://github.com/element-hq/element-android
synced 2024-11-27 11:59:12 +03:00
Fix empty state + cleaning + changelog
This commit is contained in:
parent
b390980ca2
commit
cd6fab0e2d
3 changed files with 3 additions and 2 deletions
|
@ -14,6 +14,7 @@ Improvements 🙌:
|
|||
- Update reactions to Unicode 13.1 (#2998)
|
||||
- Be more robust when parsing some enums
|
||||
- Improve timeline filtering (dissociate membership and profile events, display hidden events when highlighted, fix hidden item/read receipts behavior)
|
||||
- Room list improvements (paging)
|
||||
|
||||
Bugfix 🐛:
|
||||
- Fix bad theme change for the MainActivity
|
||||
|
|
|
@ -249,7 +249,7 @@ class RoomListFragment @Inject constructor(
|
|||
val contentAdapter = pagedControllerFactory.createRoomSummaryPagedController().also {
|
||||
section.livePages.observe(viewLifecycleOwner) { pl ->
|
||||
it.submitList(pl)
|
||||
sectionAdapter.updateSection(sectionAdapter.section.copy(isHidden = pl.isEmpty() || hasOnlyOneSection))
|
||||
sectionAdapter.updateSection(sectionAdapter.section.copy(isHidden = pl.isEmpty()))
|
||||
checkEmptyState()
|
||||
}
|
||||
section.notificationCount.observe(viewLifecycleOwner) { counts ->
|
||||
|
|
|
@ -64,7 +64,7 @@ class SectionHeaderAdapter constructor(
|
|||
holder.bind(section)
|
||||
}
|
||||
|
||||
override fun getItemCount(): Int = 1.takeIf { section.isHidden.not() } ?: 0
|
||||
override fun getItemCount(): Int = if (section.isHidden) 0 else 1
|
||||
|
||||
class VH constructor(
|
||||
private val binding: ItemRoomCategoryBinding,
|
||||
|
|
Loading…
Reference in a new issue