mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-23 22:39:02 +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
CHANGES.md
vector/src/main/java/im/vector/app/features/home/room/list
|
@ -14,6 +14,7 @@ Improvements 🙌:
|
||||||
- Update reactions to Unicode 13.1 (#2998)
|
- Update reactions to Unicode 13.1 (#2998)
|
||||||
- Be more robust when parsing some enums
|
- 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)
|
- Improve timeline filtering (dissociate membership and profile events, display hidden events when highlighted, fix hidden item/read receipts behavior)
|
||||||
|
- Room list improvements (paging)
|
||||||
|
|
||||||
Bugfix 🐛:
|
Bugfix 🐛:
|
||||||
- Fix bad theme change for the MainActivity
|
- Fix bad theme change for the MainActivity
|
||||||
|
|
|
@ -249,7 +249,7 @@ class RoomListFragment @Inject constructor(
|
||||||
val contentAdapter = pagedControllerFactory.createRoomSummaryPagedController().also {
|
val contentAdapter = pagedControllerFactory.createRoomSummaryPagedController().also {
|
||||||
section.livePages.observe(viewLifecycleOwner) { pl ->
|
section.livePages.observe(viewLifecycleOwner) { pl ->
|
||||||
it.submitList(pl)
|
it.submitList(pl)
|
||||||
sectionAdapter.updateSection(sectionAdapter.section.copy(isHidden = pl.isEmpty() || hasOnlyOneSection))
|
sectionAdapter.updateSection(sectionAdapter.section.copy(isHidden = pl.isEmpty()))
|
||||||
checkEmptyState()
|
checkEmptyState()
|
||||||
}
|
}
|
||||||
section.notificationCount.observe(viewLifecycleOwner) { counts ->
|
section.notificationCount.observe(viewLifecycleOwner) { counts ->
|
||||||
|
|
|
@ -64,7 +64,7 @@ class SectionHeaderAdapter constructor(
|
||||||
holder.bind(section)
|
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(
|
class VH constructor(
|
||||||
private val binding: ItemRoomCategoryBinding,
|
private val binding: ItemRoomCategoryBinding,
|
||||||
|
|
Loading…
Add table
Reference in a new issue