You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 24, 2023. It is now read-only.
The issue reproduces periodically without any rules.
onCreateHeaderViewHolder and onBindHeaderViewHolder gets called, but headers are not visible
My code looks like
override fun getHeaderId(position: Int): Long {
return clients[position].companyName.toUpperCase().get(0).toLong()
}
override fun onCreateHeaderViewHolder(parent: ViewGroup): HeaderHolder {
val view = LayoutInflater.from(parent.context).inflate(R.layout.item_client_list_header, parent, false)
return HeaderHolder(view)
}
override fun onBindHeaderViewHolder(holder: HeaderHolder, position: Int) {
val letter = clients[position].companyName.get(0).toUpperCase().toString()
holder.bind(letter)
}