package com.scb.phone.view.fragment.ntb.address; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.text.Html; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.widget.Button; import android.widget.LinearLayout; import android.widget.RelativeLayout; import android.widget.Spinner; import android.widget.SpinnerAdapter; import android.widget.TextView; import androidx.fragment.app.FragmentActivity; import butterknife.BindView; import butterknife.ButterKnife; import butterknife.OnClick; import com.scb.phone.R; import com.scb.phone.view.activity.AddressSearchActivity; import com.scb.phone.view.activity.BaseActivity; import com.scb.phone.view.custom.common.CustomAddressInput; import com.scb.phone.view.fragment.ntb.address.BaseAddressFragment; import java.util.List; import o.C0405Fw; import o.C0406Fx; import o.C1138Wl; import o.C6921ceY; import o.InterfaceC13391fZD; import o.InterfaceC8954dab; import o.QKH; import o.SP; import o.fIY; import o.nMh; /* loaded from: classes5.dex */ public abstract class BaseAddressFragment extends Hilt_BaseAddressFragment implements InterfaceC8954dab.LWm { @BindView public CustomAddressInput alley; private boolean c; @BindView public CustomAddressInput city; @BindView TextView countryLabel; @BindView Spinner customSpinner; private ArrayAdapter d; @BindView public TextView districtLabel; @BindView View dividerView; public SP f; @BindView public CustomAddressInput floor; public String g; public int h; @BindView public CustomAddressInput houseNo; public String j; private boolean l; @BindView public RelativeLayout layoutCustomSpinner; private InterfaceC8954dab.jbe m; @BindView public CustomAddressInput moo; private boolean n; @BindView public Button nextButton; /* renamed from: o, reason: collision with root package name */ private boolean f8055o; @BindView LinearLayout otherCountryAddressSection; @BindView public CustomAddressInput otherCountryDistrict; @BindView public CustomAddressInput otherCountryRoad; private boolean p; @BindView public TextView postalCodeLabel; @InterfaceC13391fZD public C6921ceY presenter; @BindView public TextView provinceLabel; @BindView protected TextView provinceTitle; private fIY.HBt q; private boolean r; @BindView public CustomAddressInput roadTH; private boolean s; @BindView public CustomAddressInput state; @BindView public TextView subDistrictLabel; private boolean t; @BindView public TextView textAddressTitle; @BindView LinearLayout thailandAddressSection; @BindView public CustomAddressInput trok; @BindView public TextView tvRemark; @BindView public CustomAddressInput unit; private boolean v; @BindView public CustomAddressInput village; private boolean w; private boolean x; private boolean y; @BindView public CustomAddressInput zipCode; private boolean k = true; public QKH i = new QKH(); @Override // o.InterfaceC8954dab.LWm public void c(C1138Wl c1138Wl) { } protected int d() { return R.layout.2131559451; } public void d(String str) { } /* JADX WARN: Multi-variable type inference failed */ @Override // com.scb.phone.view.fragment.ntb.address.Hilt_BaseAddressFragment, com.scb.phone.view.fragment.Hilt_BaseFragment, androidx.fragment.app.Fragment public void onAttach(Context context) { super.onAttach(context); if (context instanceof fIY.HBt) { this.q = (fIY.HBt) context; } if (context instanceof InterfaceC8954dab.jbe) { this.m = (InterfaceC8954dab.jbe) context; } } @Override // androidx.fragment.app.Fragment public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) { View inflate = layoutInflater.inflate(d(), viewGroup, false); ButterKnife.c(this, inflate); this.presenter.e((C6921ceY) this); this.nextButton.setEnabled(false); return inflate; } /* JADX INFO: Access modifiers changed from: protected */ public final void g() { this.presenter.a(true); this.j = "TH"; this.layoutCustomSpinner.setVisibility(8); } /* JADX WARN: Removed duplicated region for block: B:26:0x00c3 */ /* JADX WARN: Removed duplicated region for block: B:27:0x00c9 */ @Override // androidx.fragment.app.Fragment /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public void onViewCreated(android.view.View r5, android.os.Bundle r6) { /* r4 = this; super.onViewCreated(r5, r6) o.fIY$HBt r5 = r4.q if (r5 == 0) goto Le7 android.os.Bundle r5 = r4.getArguments() if (r5 == 0) goto Ld9 java.lang.String r6 = "BUNDLE_ADDRESS_TYPE" int r6 = r5.getInt(r6) r4.h = r6 java.lang.String r6 = "BUNDLE_ADDRESS_ORIGINAL_FEATURE" int r5 = r5.getInt(r6) if (r5 != 0) goto L41 o.dab$jbe r6 = r4.m if (r6 == 0) goto L41 o.QKH r0 = r4.i java.lang.String r6 = r6.e() o.ceY r1 = r4.presenter java.lang.String r1 = r1.c() java.lang.String r2 = "source" r0.d(r2, r6) if (r1 == 0) goto L41 java.lang.String r2 = "touchpoint" boolean r6 = r2.equals(r6) if (r6 == 0) goto L41 java.lang.String r6 = "customer_group" r0.d(r6, r1) L41: int r6 = r4.h r0 = 1 if (r6 == 0) goto L87 if (r6 == r0) goto L6f r1 = 2 if (r6 == r1) goto L56 r1 = 3 if (r6 != r1) goto La6 if (r5 != r0) goto La6 java.lang.String r5 = "mfonboard_mailaddress" r4.v(r5) goto La6 L56: if (r5 != 0) goto L6d o.QKH r5 = r4.i androidx.fragment.app.FragmentActivity r6 = r4.getActivity() if (r6 == 0) goto L6d androidx.fragment.app.FragmentActivity r6 = r4.getActivity() com.scb.phone.view.activity.BaseActivity r6 = (com.scb.phone.view.activity.BaseActivity) r6 o.jXq r6 = r6.scbAnalytics java.lang.String r1 = "ekyc_workaddress" r5.c(r6, r1) L6d: r5 = r0 goto La7 L6f: if (r5 != 0) goto La6 o.QKH r5 = r4.i androidx.fragment.app.FragmentActivity r6 = r4.getActivity() if (r6 == 0) goto La6 androidx.fragment.app.FragmentActivity r6 = r4.getActivity() com.scb.phone.view.activity.BaseActivity r6 = (com.scb.phone.view.activity.BaseActivity) r6 o.jXq r6 = r6.scbAnalytics java.lang.String r1 = "ekyc_currentaddress" r5.c(r6, r1) goto La6 L87: if (r5 != 0) goto L9f o.QKH r5 = r4.i androidx.fragment.app.FragmentActivity r6 = r4.getActivity() if (r6 == 0) goto La6 androidx.fragment.app.FragmentActivity r6 = r4.getActivity() com.scb.phone.view.activity.BaseActivity r6 = (com.scb.phone.view.activity.BaseActivity) r6 o.jXq r6 = r6.scbAnalytics java.lang.String r1 = "ekyc_homeaddress" r5.c(r6, r1) goto La6 L9f: if (r5 != r0) goto La6 java.lang.String r5 = "mfonboard_houseaddress" r4.v(r5) La6: r5 = 0 La7: o.ceY r6 = r4.presenter int r1 = r4.h java.lang.Integer r2 = java.lang.Integer.valueOf(r1) java.lang.Object[] r6 = new java.lang.Object[]{r6, r2} r2 = 264170728(0xfbeece8, float:1.88267E-29) r3 = -264170723(0xfffffffff041131d, float:-2.3901485E29) java.lang.Object r6 = o.C6921ceY.e(r6, r2, r3, r1) o.SP r6 = (o.SP) r6 r4.f = r6 if (r5 == 0) goto Lc9 o.ceY r5 = r4.presenter r5.b() goto Ld9 Lc9: o.ceY r5 = r4.presenter r5.a(r0) java.lang.String r5 = "TH" r4.j = r5 android.widget.RelativeLayout r5 = r4.layoutCustomSpinner r6 = 8 r5.setVisibility(r6) Ld9: android.widget.TextView r5 = r4.textAddressTitle java.lang.String r6 = r4.g r5.setText(r6) o.fIY$HBt r5 = r4.q java.lang.String r6 = r4.g r5.e(r6) Le7: return */ throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.fragment.ntb.address.BaseAddressFragment.onViewCreated(android.view.View, android.os.Bundle):void"); } @Override // androidx.fragment.app.Fragment public void onResume() { super.onResume(); fIY.HBt hBt = this.q; if (hBt != null) { hBt.e(this.g); } } @Override // o.InterfaceC8954dab.LWm public final void a(List list) { this.countryLabel.setText(getString(R.string.country)); this.dividerView.setVisibility(8); if (this.d != null || list == null) { return; } C0405Fw c0405Fw = new C0405Fw(); c0405Fw.b = ""; c0405Fw.d = getString(R.string.country_hint); list.add(0, c0405Fw); int intValue = ((Integer) C6921ceY.e(new Object[]{list, C6921ceY.b(this.f)}, 932652087, -932652087, (int) System.currentTimeMillis())).intValue(); ArrayAdapter arrayAdapter = new ArrayAdapter(this, getContext(), list) { // from class: com.scb.phone.view.fragment.ntb.address.BaseAddressFragment.1 private BaseAddressFragment c; @Override // android.widget.BaseAdapter, android.widget.ListAdapter public final boolean isEnabled(int i) { return true; } { this.c = this; } @Override // android.widget.ArrayAdapter, android.widget.BaseAdapter, android.widget.SpinnerAdapter public final View getDropDownView(int i, View view, ViewGroup viewGroup) { View dropDownView = super.getDropDownView(i, view, viewGroup); TextView textView = (TextView) dropDownView; if (i == 0) { textView.setTextColor(nMh.getColor(getContext(), R.color.f3412131099849)); } else { textView.setTextColor(nMh.getColor(getContext(), R.color.f2982131099805)); } return dropDownView; } @Override // android.widget.ArrayAdapter, android.widget.Adapter public final View getView(int i, View view, ViewGroup viewGroup) { View view2 = super.getView(i, view, viewGroup); TextView textView = (TextView) view2; if (i == 0) { textView.setTextColor(nMh.getColor(getContext(), R.color.f3412131099849)); } else { textView.setTextColor(nMh.getColor(getContext(), R.color.f2982131099805)); } return view2; } }; this.d = arrayAdapter; this.customSpinner.setAdapter((SpinnerAdapter) arrayAdapter); this.customSpinner.setSelection(intValue); this.customSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener(this, list) { // from class: com.scb.phone.view.fragment.ntb.address.BaseAddressFragment.4 private List c; private BaseAddressFragment d; @Override // android.widget.AdapterView.OnItemSelectedListener public final void onNothingSelected(AdapterView adapterView) { } { this.d = this; this.c = list; } @Override // android.widget.AdapterView.OnItemSelectedListener public final void onItemSelected(AdapterView adapterView, View view, int i, long j) { if (!this.d.k) { this.d.k = false; BaseAddressFragment.b(this.d); BaseAddressFragment.c(this.d); } this.d.j = ((C0405Fw) this.c.get(i)).b; this.d.presenter.a("TH".equalsIgnoreCase(((C0405Fw) this.c.get(i)).b)); } }); } @Override // o.InterfaceC8954dab.LWm public final void b() { this.thailandAddressSection.setVisibility(0); this.otherCountryAddressSection.setVisibility(8); this.provinceTitle.setText(Html.fromHtml(getString(R.string.ntb_province))); if (this.floor.d == null) { this.houseNo.setOnValueChangeListener(new CustomAddressInput.RVV(this) { // from class: o.fpS private BaseAddressFragment c; private boolean d = true; @Override // com.scb.phone.view.custom.common.CustomAddressInput.RVV public final void e(boolean z) { BaseAddressFragment.f(this.c, this.d, z); } { this.c = this; } }); this.floor.setOnValueChangeListener(new CustomAddressInput.RVV(this) { // from class: o.fpY private BaseAddressFragment b; private boolean e = true; @Override // com.scb.phone.view.custom.common.CustomAddressInput.RVV public final void e(boolean z) { BaseAddressFragment.g(this.b, this.e, z); } { this.b = this; } }); this.village.setOnValueChangeListener(new CustomAddressInput.RVV(this) { // from class: o.fpR private boolean a = true; private BaseAddressFragment d; @Override // com.scb.phone.view.custom.common.CustomAddressInput.RVV public final void e(boolean z) { BaseAddressFragment.j(this.d, this.a, z); } { this.d = this; } }); this.unit.setOnValueChangeListener(new CustomAddressInput.RVV(this) { // from class: o.fqd private BaseAddressFragment d; private boolean e = true; @Override // com.scb.phone.view.custom.common.CustomAddressInput.RVV public final void e(boolean z) { BaseAddressFragment.h(this.d, this.e, z); } { this.d = this; } }); this.floor.setOnFocusChanged(new CustomAddressInput.IeS(this) { // from class: o.fpZ private BaseAddressFragment d; @Override // com.scb.phone.view.custom.common.CustomAddressInput.IeS public final void e(boolean z) { BaseAddressFragment.c(this.d, z); } { this.d = this; } }); this.unit.setOnFocusChanged(new CustomAddressInput.IeS(this) { // from class: o.fpZ private BaseAddressFragment d; @Override // com.scb.phone.view.custom.common.CustomAddressInput.IeS public final void e(boolean z) { BaseAddressFragment.c(this.d, z); } { this.d = this; } }); this.village.setOnFocusChanged(new CustomAddressInput.IeS(this) { // from class: o.fpZ private BaseAddressFragment d; @Override // com.scb.phone.view.custom.common.CustomAddressInput.IeS public final void e(boolean z) { BaseAddressFragment.c(this.d, z); } { this.d = this; } }); } d(true); } @Override // o.InterfaceC8954dab.LWm public final void a() { this.thailandAddressSection.setVisibility(8); this.otherCountryAddressSection.setVisibility(0); this.moo.setTitleLabel(getString(R.string.village_no)); this.alley.setTitleLabel(getString(R.string.alley_other_country)); if (this.otherCountryRoad.b == null) { this.houseNo.setOnValueChangeListener(new CustomAddressInput.RVV(this) { // from class: o.fqb private BaseAddressFragment b; private boolean d = false; @Override // com.scb.phone.view.custom.common.CustomAddressInput.RVV public final void e(boolean z) { BaseAddressFragment.a(this.b, this.d, z); } { this.b = this; } }); this.otherCountryRoad.setOnValueChangeListener(new CustomAddressInput.RVV(this) { // from class: o.fqa private boolean a = false; private BaseAddressFragment b; @Override // com.scb.phone.view.custom.common.CustomAddressInput.RVV public final void e(boolean z) { BaseAddressFragment.c(this.b, this.a, z); } { this.b = this; } }); this.city.setOnValueChangeListener(new CustomAddressInput.RVV(this) { // from class: o.fqc private boolean b = false; private BaseAddressFragment e; @Override // com.scb.phone.view.custom.common.CustomAddressInput.RVV public final void e(boolean z) { BaseAddressFragment.d(this.e, this.b, z); } { this.e = this; } }); this.state.setOnValueChangeListener(new CustomAddressInput.RVV(this) { // from class: o.fqi private boolean c = false; private BaseAddressFragment d; @Override // com.scb.phone.view.custom.common.CustomAddressInput.RVV public final void e(boolean z) { BaseAddressFragment.b(this.d, this.c, z); } { this.d = this; } }); this.zipCode.setOnValueChangeListener(new CustomAddressInput.RVV(this) { // from class: o.fqf private boolean b = false; private BaseAddressFragment e; @Override // com.scb.phone.view.custom.common.CustomAddressInput.RVV public final void e(boolean z) { BaseAddressFragment.e(this.e, this.b, z); } { this.e = this; } }); } d(false); } /* JADX INFO: Access modifiers changed from: protected */ public final void d(boolean z) { if (!z && this.l && this.s && this.c && this.t && this.y) { this.nextButton.setEnabled(true); return; } if (!z || !this.l || !this.x || !this.f8055o || !this.p || !this.r) { this.nextButton.setEnabled(false); return; } boolean z2 = this.n; if (z2 || this.w) { this.nextButton.setEnabled(z2 && this.w && this.v); } else { this.nextButton.setEnabled(true); } } @Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment public void onActivityResult(int i, int i2, Intent intent) { if (i == 10002 && i2 == -1 && intent != null) { this.presenter.d((C0406Fx) intent.getParcelableExtra("SUB_DISTRICT_DISPLAY")); this.x = true; this.f8055o = true; this.p = true; this.r = true; d(true); } } @Override // o.InterfaceC8954dab.LWm public final void e(String str) { this.subDistrictLabel.setText(str); } @Override // o.InterfaceC8954dab.LWm public final void c(String str) { this.districtLabel.setText(str); } @Override // o.InterfaceC8954dab.LWm public final void a(String str) { this.provinceLabel.setText(str); } @Override // o.InterfaceC8954dab.LWm public final void b(String str) { this.postalCodeLabel.setText(str); } @OnClick public void onNextButtonClick() { this.presenter.a(this.h, this.j, this.houseNo.inputTextField.getText().toString().trim(), this.moo.inputTextField.getText().toString().trim(), this.roadTH.inputTextField.getText().toString().trim(), this.floor.inputTextField.getText().toString().trim(), this.unit.inputTextField.getText().toString().trim(), this.village.inputTextField.getText().toString().trim(), this.alley.inputTextField.getText().toString().trim(), this.subDistrictLabel.getText().toString(), this.districtLabel.getText().toString(), this.provinceLabel.getText().toString(), this.postalCodeLabel.getText().toString(), this.otherCountryDistrict.inputTextField.getText().toString().trim(), this.otherCountryRoad.inputTextField.getText().toString().trim(), this.city.inputTextField.getText().toString().trim(), this.state.inputTextField.getText().toString().trim(), this.zipCode.inputTextField.getText().toString().trim()); } public void e() { FragmentActivity activity = getActivity(); if (activity != null) { activity.onBackPressed(); } } public static /* synthetic */ void c(BaseAddressFragment baseAddressFragment, boolean z, boolean z2) { baseAddressFragment.s = z2; baseAddressFragment.d(z); } public static /* synthetic */ void b(BaseAddressFragment baseAddressFragment, boolean z, boolean z2) { baseAddressFragment.t = z2; baseAddressFragment.d(z); } public static /* synthetic */ void e(BaseAddressFragment baseAddressFragment, boolean z, boolean z2) { baseAddressFragment.y = z2; baseAddressFragment.d(z); } public static /* synthetic */ void d(BaseAddressFragment baseAddressFragment, boolean z, boolean z2) { baseAddressFragment.c = z2; baseAddressFragment.d(z); } public static /* synthetic */ void a(BaseAddressFragment baseAddressFragment, boolean z, boolean z2) { baseAddressFragment.l = z2; baseAddressFragment.d(z); } public static /* synthetic */ void c(BaseAddressFragment baseAddressFragment, boolean z) { if (z) { return; } if (baseAddressFragment.n || baseAddressFragment.w) { baseAddressFragment.village.a(baseAddressFragment.v); baseAddressFragment.floor.a(baseAddressFragment.n); baseAddressFragment.unit.a(baseAddressFragment.w); return; } CustomAddressInput customAddressInput = baseAddressFragment.village; customAddressInput.errorInline.setVisibility(8); customAddressInput.inputTextField.setBackground(nMh.getDrawable(customAddressInput.getContext(), R.drawable.shape_gray_rounded_rectangle)); CustomAddressInput customAddressInput2 = baseAddressFragment.floor; customAddressInput2.errorInline.setVisibility(8); customAddressInput2.inputTextField.setBackground(nMh.getDrawable(customAddressInput2.getContext(), R.drawable.shape_gray_rounded_rectangle)); CustomAddressInput customAddressInput3 = baseAddressFragment.unit; customAddressInput3.errorInline.setVisibility(8); customAddressInput3.inputTextField.setBackground(nMh.getDrawable(customAddressInput3.getContext(), R.drawable.shape_gray_rounded_rectangle)); } public static /* synthetic */ void g(BaseAddressFragment baseAddressFragment, boolean z, boolean z2) { baseAddressFragment.n = z2; baseAddressFragment.floor.a(z2 || !baseAddressFragment.w); baseAddressFragment.d(z); } public static /* synthetic */ void h(BaseAddressFragment baseAddressFragment, boolean z, boolean z2) { baseAddressFragment.w = z2; baseAddressFragment.unit.a(z2 || !baseAddressFragment.n); baseAddressFragment.d(z); } public static /* synthetic */ void j(BaseAddressFragment baseAddressFragment, boolean z, boolean z2) { baseAddressFragment.v = z2; baseAddressFragment.village.a(z2 || !(baseAddressFragment.n || baseAddressFragment.w)); baseAddressFragment.d(z); } public static /* synthetic */ void f(BaseAddressFragment baseAddressFragment, boolean z, boolean z2) { baseAddressFragment.l = z2; baseAddressFragment.d(z); } static /* synthetic */ void c(BaseAddressFragment baseAddressFragment) { baseAddressFragment.provinceLabel.setText(baseAddressFragment.getString(R.string.select_province)); baseAddressFragment.districtLabel.setText(baseAddressFragment.getString(R.string.will_be_autofilled)); baseAddressFragment.subDistrictLabel.setText(baseAddressFragment.getString(R.string.will_be_autofilled)); baseAddressFragment.postalCodeLabel.setText(baseAddressFragment.getString(R.string.will_be_autofilled)); CustomAddressInput customAddressInput = baseAddressFragment.houseNo; customAddressInput.inputTextField.removeTextChangedListener(customAddressInput); customAddressInput.inputTextField.setText(""); CustomAddressInput customAddressInput2 = baseAddressFragment.unit; customAddressInput2.inputTextField.removeTextChangedListener(customAddressInput2); customAddressInput2.inputTextField.setText(""); CustomAddressInput customAddressInput3 = baseAddressFragment.floor; customAddressInput3.inputTextField.removeTextChangedListener(customAddressInput3); customAddressInput3.inputTextField.setText(""); CustomAddressInput customAddressInput4 = baseAddressFragment.village; customAddressInput4.inputTextField.removeTextChangedListener(customAddressInput4); customAddressInput4.inputTextField.setText(""); CustomAddressInput customAddressInput5 = baseAddressFragment.moo; customAddressInput5.inputTextField.removeTextChangedListener(customAddressInput5); customAddressInput5.inputTextField.setText(""); CustomAddressInput customAddressInput6 = baseAddressFragment.trok; customAddressInput6.inputTextField.removeTextChangedListener(customAddressInput6); customAddressInput6.inputTextField.setText(""); CustomAddressInput customAddressInput7 = baseAddressFragment.alley; customAddressInput7.inputTextField.removeTextChangedListener(customAddressInput7); customAddressInput7.inputTextField.setText(""); CustomAddressInput customAddressInput8 = baseAddressFragment.roadTH; customAddressInput8.inputTextField.removeTextChangedListener(customAddressInput8); customAddressInput8.inputTextField.setText(""); CustomAddressInput customAddressInput9 = baseAddressFragment.otherCountryRoad; customAddressInput9.inputTextField.removeTextChangedListener(customAddressInput9); customAddressInput9.inputTextField.setText(""); CustomAddressInput customAddressInput10 = baseAddressFragment.otherCountryDistrict; customAddressInput10.inputTextField.removeTextChangedListener(customAddressInput10); customAddressInput10.inputTextField.setText(""); CustomAddressInput customAddressInput11 = baseAddressFragment.city; customAddressInput11.inputTextField.removeTextChangedListener(customAddressInput11); customAddressInput11.inputTextField.setText(""); CustomAddressInput customAddressInput12 = baseAddressFragment.state; customAddressInput12.inputTextField.removeTextChangedListener(customAddressInput12); customAddressInput12.inputTextField.setText(""); CustomAddressInput customAddressInput13 = baseAddressFragment.zipCode; customAddressInput13.inputTextField.removeTextChangedListener(customAddressInput13); customAddressInput13.inputTextField.setText(""); baseAddressFragment.nextButton.setEnabled(false); } static /* bridge */ /* synthetic */ void b(BaseAddressFragment baseAddressFragment) { baseAddressFragment.l = false; baseAddressFragment.x = false; baseAddressFragment.f8055o = false; baseAddressFragment.p = false; baseAddressFragment.n = false; baseAddressFragment.w = false; baseAddressFragment.v = false; baseAddressFragment.r = false; baseAddressFragment.s = false; baseAddressFragment.c = false; baseAddressFragment.t = false; baseAddressFragment.y = false; } @Override // o.InterfaceC8954dab.LWm public final void c(SP sp, boolean z) { if (z) { this.houseNo.setTextValue(sp.h); this.moo.setTextValue(sp.i); this.roadTH.setTextValue(sp.n); this.floor.setTextValue(sp.p); this.unit.setTextValue(sp.t); this.village.setTextValue(sp.m); this.trok.setTextValue(sp.k); this.alley.setTextValue(sp.f); this.subDistrictLabel.setText(sp.a); this.districtLabel.setText(sp.c); this.provinceLabel.setText(sp.g); this.postalCodeLabel.setText(sp.l); } else { this.houseNo.setTextValue(sp.h); this.moo.setTextValue(sp.i); this.otherCountryRoad.setTextValue(sp.n); this.floor.setTextValue(sp.p); this.unit.setTextValue(sp.t); this.village.setTextValue(sp.m); this.alley.setTextValue(sp.f); this.otherCountryDistrict.setTextValue(sp.a); this.city.setTextValue(sp.g); this.state.setTextValue(sp.f8360o); this.zipCode.setTextValue(sp.l); } e(sp, z); d(z); } /* JADX INFO: Access modifiers changed from: protected */ public final void e(SP sp, boolean z) { if (z) { this.l = C6921ceY.c(sp.h); this.n = C6921ceY.c(sp.p); this.w = C6921ceY.c(sp.t); this.v = C6921ceY.c(sp.m); this.x = C6921ceY.c(sp.a); this.f8055o = C6921ceY.c(sp.c); this.p = C6921ceY.c(sp.g); this.r = C6921ceY.c(sp.l); return; } this.l = C6921ceY.c(sp.h); this.s = C6921ceY.c(sp.n); this.c = C6921ceY.c(sp.g); this.t = C6921ceY.c(sp.f8360o); this.y = C6921ceY.c(sp.l); } @OnClick public void onSelectProvinceClick() { String str; QKH qkh = this.i; if (getActivity() != null) { qkh.c(((BaseActivity) getActivity()).scbAnalytics, "ekyc_subdistrict"); } Context context = getContext(); if (getActivity() instanceof BaseActivity) { str = (String) BaseActivity.a(new Object[]{(BaseActivity) getActivity()}, 1198611792, -1198611784, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.debit_card_banking_action).substring(18, 19).codePointAt(0) + 597686520); } else { str = ""; } startActivityForResult(AddressSearchActivity.WU_(context, str), 10002); } /* JADX INFO: Access modifiers changed from: protected */ public final void f() { this.x = true; this.f8055o = true; this.p = true; this.r = true; } }