mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-17 04:20:00 +03:00
Setting item count text only when > 0
This commit is contained in:
parent
53c24d20b0
commit
ad9d36e58c
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ class SectionHeaderAdapter constructor(
|
|||
DrawableCompat.setTint(it, tintColor)
|
||||
}
|
||||
roomCategoryCounterView.setCompoundDrawablesWithIntrinsicBounds(null, null, expandedArrowDrawable, null)
|
||||
roomCategoryCounterView.text = roomsSectionData.itemCount.toString()
|
||||
roomCategoryCounterView.text = roomsSectionData.itemCount.takeIf { it > 0 }?.toString().orEmpty()
|
||||
roomCategoryUnreadCounterBadgeView.render(UnreadCounterBadgeView.State(roomsSectionData.notificationCount, roomsSectionData.isHighlighted))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue