Add background to sticky year header for donation receipts.
This commit is contained in:
parent
6b3f41d675
commit
5bdd3ce47a
1 changed files with 6 additions and 0 deletions
|
@ -2,6 +2,7 @@ package org.thoughtcrime.securesms.components.settings.app.subscription.receipts
|
|||
|
||||
import android.view.LayoutInflater
|
||||
import android.view.ViewGroup
|
||||
import androidx.core.content.ContextCompat
|
||||
import org.thoughtcrime.securesms.R
|
||||
import org.thoughtcrime.securesms.components.settings.DSLSettingsText
|
||||
import org.thoughtcrime.securesms.components.settings.SectionHeaderPreference
|
||||
|
@ -32,6 +33,11 @@ class DonationReceiptListAdapter(onModelClick: (DonationReceiptListItem.Model) -
|
|||
}
|
||||
|
||||
override fun onBindHeaderViewHolder(viewHolder: SectionHeaderPreferenceViewHolder?, position: Int, type: Int) {
|
||||
viewHolder?.itemView?.run {
|
||||
val color = ContextCompat.getColor(context, R.color.signal_colorBackground)
|
||||
setBackgroundColor(color)
|
||||
}
|
||||
|
||||
viewHolder?.bind(SectionHeaderPreference(DSLSettingsText.from(getHeaderId(position).toString())))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue