package com.scb.phone.view.custom.item; import android.content.Context; import android.view.ViewGroup; import android.widget.LinearLayout; import butterknife.BindView; import com.scb.phone.R; import o.C14957gcv; import o.InterfaceC13391fZD; import o.QN; import o.nMh; /* loaded from: classes5.dex */ public final class ItemRevampSuccessfulHeaderCustom extends ItemSuccessfulHeaderCustom { @BindView protected LinearLayout layoutHeaderTitle; @Override // com.scb.phone.view.custom.item.ItemSuccessfulHeaderCustom, com.scb.phone.components.ItemCustom public final /* bridge */ /* synthetic */ void setUpWithDisplay(QN qn) { setUpWithDisplay(qn); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ @InterfaceC13391fZD public ItemRevampSuccessfulHeaderCustom(Context context) { super(context); C14957gcv.e(context, ""); } @Override // com.scb.phone.view.custom.item.ItemSuccessfulHeaderCustom /* renamed from: setUpWithDisplay, reason: avoid collision after fix types in other method */ public final void setUpWithDisplay2(QN qn) { super.setUpWithDisplay(qn); if (qn == null || qn.e <= 0) { return; } int color = nMh.getColor(this.d, qn.e); this.componentExtra.setTextColor(color); this.componentMoreExtra.setTextColor(color); } public final void e() { int dimensionPixelSize = getResources().getDimensionPixelSize(R.dimen.f18812131165647); int dimensionPixelSize2 = getResources().getDimensionPixelSize(R.dimen.f17112131165477); ViewGroup.LayoutParams layoutParams = this.componentIcon.getLayoutParams(); LinearLayout linearLayout = null; ViewGroup.MarginLayoutParams marginLayoutParams = layoutParams instanceof ViewGroup.MarginLayoutParams ? (ViewGroup.MarginLayoutParams) layoutParams : null; if (marginLayoutParams != null) { ((ViewGroup.LayoutParams) marginLayoutParams).height = dimensionPixelSize; } if (marginLayoutParams != null) { ((ViewGroup.LayoutParams) marginLayoutParams).width = dimensionPixelSize; } if (marginLayoutParams != null) { marginLayoutParams.setMargins(0, 0, dimensionPixelSize2, 0); } this.componentIcon.setLayoutParams(marginLayoutParams); this.componentIcon.requestLayout(); LinearLayout linearLayout2 = this.layoutHeaderTitle; if (linearLayout2 == null) { C14957gcv.a(""); linearLayout2 = null; } linearLayout2.getLayoutParams().width = -1; LinearLayout linearLayout3 = this.layoutHeaderTitle; if (linearLayout3 == null) { C14957gcv.a(""); linearLayout3 = null; } linearLayout3.setOrientation(0); LinearLayout linearLayout4 = this.layoutHeaderTitle; if (linearLayout4 != null) { linearLayout = linearLayout4; } else { C14957gcv.a(""); } linearLayout.requestLayout(); } }