mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-28 05:35:44 +00:00
Fix conversation header position.
This commit is contained in:
committed by
Cody Henthorne
parent
2d9135da93
commit
c1f96e5bd3
@@ -307,6 +307,9 @@ public class ConversationHeaderView extends ConstraintLayout {
|
||||
if (getBackground() != null) {
|
||||
ViewUtil.setPaddingTop(binding.messageRequestInfo, 0);
|
||||
ViewUtil.setPaddingBottom(binding.messageRequestInfo, getContext().getResources().getDimensionPixelOffset(R.dimen.conversation_header_padding));
|
||||
int margin = getContext().getResources().getDimensionPixelOffset(R.dimen.conversation_header_margin);
|
||||
ViewUtil.setLeftMargin(this, margin);
|
||||
ViewUtil.setRightMargin(this, margin);
|
||||
}
|
||||
|
||||
int padding = visibleCount == 1 ? getContext().getResources().getDimensionPixelOffset(R.dimen.conversation_header_padding) : getContext().getResources().getDimensionPixelOffset(R.dimen.conversation_header_padding_expanded);
|
||||
|
||||
@@ -531,7 +531,7 @@ class ConversationAdapterV2(
|
||||
}
|
||||
|
||||
inner class ThreadHeaderViewHolder(itemView: View) : MappingViewHolder<ThreadHeader>(itemView) {
|
||||
private val conversationBanner: ConversationHeaderView = itemView.findViewById(R.id.header)
|
||||
private val conversationBanner: ConversationHeaderView = itemView as ConversationHeaderView
|
||||
|
||||
override fun bind(model: ThreadHeader) {
|
||||
val (recipient, groupInfo, sharedGroups, messageRequestState) = model.recipientInfo
|
||||
|
||||
Reference in New Issue
Block a user