package com.scb.phone.view.custom.mailingaddress; import android.content.Context; import android.util.AttributeSet; import android.view.LayoutInflater; import android.view.ViewGroup; import android.widget.CheckBox; import android.widget.CompoundButton; import android.widget.LinearLayout; import android.widget.TextView; import butterknife.BindView; import butterknife.ButterKnife; import com.scb.phone.R; import com.scb.phone.view.custom.mailingaddress.MailingAddressAccountSelectorCustomItem; import o.C12344ewT; import o.C14957gcv; import o.RF; import o.UV; /* loaded from: classes5.dex */ public final class MailingAddressAccountSelectorCustomItem extends MailingAddressSelectAccountItem { private C12344ewT.LWm e; @BindView public CheckBox selectorCheckBox; @BindView public LinearLayout selectorLayout; @BindView public TextView subTitle; @BindView public TextView title; /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public MailingAddressAccountSelectorCustomItem(Context context) { super(context); C14957gcv.e(context, ""); Object systemService = getContext().getSystemService("layout_inflater"); C14957gcv.d(systemService, ""); ((LayoutInflater) systemService).inflate(R.layout.2131558910, (ViewGroup) this, true); ButterKnife.c(this); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public MailingAddressAccountSelectorCustomItem(Context context, AttributeSet attributeSet) { super(context, attributeSet); C14957gcv.e(context, ""); Object systemService = getContext().getSystemService("layout_inflater"); C14957gcv.d(systemService, ""); ((LayoutInflater) systemService).inflate(R.layout.2131558910, (ViewGroup) this, true); ButterKnife.c(this); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public MailingAddressAccountSelectorCustomItem(Context context, AttributeSet attributeSet, int i) { super(context, attributeSet, i); C14957gcv.e(context, ""); Object systemService = getContext().getSystemService("layout_inflater"); C14957gcv.d(systemService, ""); ((LayoutInflater) systemService).inflate(R.layout.2131558910, (ViewGroup) this, true); ButterKnife.c(this); } @Override // com.scb.phone.view.custom.mailingaddress.MailingAddressSelectAccountItem public final void setDisplay(UV uv) { C14957gcv.e(uv, ""); final RF rf = (RF) uv; LinearLayout linearLayout = this.selectorLayout; CheckBox checkBox = null; if (linearLayout == null) { C14957gcv.a(""); linearLayout = null; } linearLayout.setVisibility(rf.a ? 0 : 8); TextView textView = this.title; if (textView == null) { C14957gcv.a(""); textView = null; } textView.setText(rf.e); TextView textView2 = this.subTitle; if (textView2 == null) { C14957gcv.a(""); textView2 = null; } textView2.setText(rf.c); CheckBox checkBox2 = this.selectorCheckBox; if (checkBox2 == null) { C14957gcv.a(""); checkBox2 = null; } checkBox2.setOnCheckedChangeListener(null); CheckBox checkBox3 = this.selectorCheckBox; if (checkBox3 == null) { C14957gcv.a(""); checkBox3 = null; } checkBox3.setChecked(rf.d); CheckBox checkBox4 = this.selectorCheckBox; if (checkBox4 != null) { checkBox = checkBox4; } else { C14957gcv.a(""); } checkBox.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener(this, rf) { // from class: o.eDz private MailingAddressAccountSelectorCustomItem a; private RF d; @Override // android.widget.CompoundButton.OnCheckedChangeListener public final void onCheckedChanged(CompoundButton compoundButton, boolean z) { MailingAddressAccountSelectorCustomItem.b(this.a, this.d, z); } { this.a = this; this.d = rf; } }); } public static /* synthetic */ void b(MailingAddressAccountSelectorCustomItem mailingAddressAccountSelectorCustomItem, RF rf, boolean z) { C14957gcv.e(mailingAddressAccountSelectorCustomItem, ""); C14957gcv.e(rf, ""); C12344ewT.LWm lWm = mailingAddressAccountSelectorCustomItem.e; if (lWm != null) { lWm.c(rf, z); } } public final void setTitle(TextView textView) { C14957gcv.e(textView, ""); this.title = textView; } public final void setSubTitle(TextView textView) { C14957gcv.e(textView, ""); this.subTitle = textView; } public final void setSelectorLayout(LinearLayout linearLayout) { C14957gcv.e(linearLayout, ""); this.selectorLayout = linearLayout; } public final void setSelectorCheckBox(CheckBox checkBox) { C14957gcv.e(checkBox, ""); this.selectorCheckBox = checkBox; } public final void setListener(C12344ewT.LWm lWm) { this.e = lWm; } }