mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 21:15:48 +00:00
Add background to sticky year header for donation receipts.
This commit is contained in:
committed by
Cody Henthorne
parent
6b3f41d675
commit
5bdd3ce47a
@@ -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())))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user