package com.scb.phone.view.custom.item; import android.content.Context; import android.view.LayoutInflater; import android.view.ViewGroup; import android.widget.TextView; import butterknife.BindView; import butterknife.ButterKnife; import com.scb.phone.R; import com.scb.phone.components.ItemCustom; import o.C14957gcv; import o.C6583cXR; import o.QO; /* loaded from: classes5.dex */ public final class ItemSubDetailCustom extends ItemCustom { @BindView public TextView tvLabelLeft; @BindView public TextView tvLabelLeftDetail; @BindView public TextView tvLabelRight; @BindView public TextView tvLabelRightDetail; /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public ItemSubDetailCustom(Context context) { super(context); C14957gcv.e(context, ""); } /* loaded from: classes5.dex */ public static final class RVV { private RVV() { } public /* synthetic */ RVV(byte b) { this(); } } @Override // com.scb.phone.components.ItemCustom public final void a(Context context) { LayoutInflater.from(context).inflate(R.layout.2131558976, (ViewGroup) this, true); ButterKnife.c(this); } @Override // com.scb.phone.components.ItemCustom public final void setUpWithDisplay(QO qo) { TextView textView = null; if ((qo != null ? Integer.valueOf(qo.q) : null) != null && qo.q >= 0) { int d = C6583cXR.d(qo.q, getContext()); int d2 = C6583cXR.d(4, getContext()); TextView textView2 = this.tvLabelLeft; if (textView2 == null) { C14957gcv.a(""); textView2 = null; } textView2.setPadding(d, 0, d2, 0); } TextView textView3 = this.tvLabelLeft; if (textView3 == null) { C14957gcv.a(""); textView3 = null; } String str = qo != null ? qo.h : null; if (str == null) { str = ""; } textView3.setText(str); TextView textView4 = this.tvLabelRight; if (textView4 == null) { C14957gcv.a(""); textView4 = null; } String str2 = qo != null ? qo.f : null; if (str2 == null) { str2 = ""; } textView4.setText(str2); if (qo != null && qo.j != null) { TextView textView5 = this.tvLabelLeftDetail; if (textView5 == null) { C14957gcv.a(""); textView5 = null; } textView5.setVisibility(0); if (qo.g == null) { textView5.setPadding(textView5.getPaddingLeft(), textView5.getPaddingTop(), textView5.getResources().getDimensionPixelOffset(R.dimen.f17502131165516), textView5.getPaddingBottom()); } textView5.setText(qo.j); } if (qo == null || qo.g == null) { return; } TextView textView6 = this.tvLabelRightDetail; if (textView6 != null) { textView = textView6; } else { C14957gcv.a(""); } textView.setContentDescription(qo.h); textView.setVisibility(0); textView.setText(qo.g); textView.setPaintFlags(textView.getPaintFlags() | 16); } public final void setTvLabelRightDetail(TextView textView) { C14957gcv.e(textView, ""); this.tvLabelRightDetail = textView; } public final void setTvLabelRight(TextView textView) { C14957gcv.e(textView, ""); this.tvLabelRight = textView; } public final void setTvLabelLeftDetail(TextView textView) { C14957gcv.e(textView, ""); this.tvLabelLeftDetail = textView; } public final void setTvLabelLeft(TextView textView) { C14957gcv.e(textView, ""); this.tvLabelLeft = textView; } static { new RVV((byte) 0); } }