package com.scb.phone.view.fragment.investment.onboarding; import android.content.Context; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Button; import androidx.recyclerview.widget.RecyclerView; import butterknife.BindView; import butterknife.ButterKnife; import butterknife.OnClick; import com.scb.phone.R; import com.scb.phone.view.adapter.investment.onboarding.SelectableChoiceAdapter; import com.scb.phone.view.fragment.investment.onboarding.FundInvestmentExperienceFragment; import java.util.Arrays; import java.util.List; import o.C3693bDu; import o.InterfaceC13391fZD; import o.InterfaceC6669cZl; import o.S; import o.UOm; import o.fIE; /* loaded from: classes5.dex */ public class FundInvestmentExperienceFragment extends Hilt_FundInvestmentExperienceFragment implements InterfaceC6669cZl.IeS { @BindView Button buttonNext; private fIE c; @InterfaceC13391fZD public C3693bDu fundInvestmentExperiencePresenter; @BindView RecyclerView recyclerViewExperience; @BindView RecyclerView recyclerViewHoldingTax; /* JADX WARN: Multi-variable type inference failed */ @Override // com.scb.phone.view.fragment.investment.onboarding.Hilt_FundInvestmentExperienceFragment, com.scb.phone.view.fragment.Hilt_BaseFragment, androidx.fragment.app.Fragment public void onAttach(Context context) { super.onAttach(context); if (context instanceof fIE) { this.c = (fIE) context; } } @Override // androidx.fragment.app.Fragment public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) { View inflate = layoutInflater.inflate(R.layout.2131559759, viewGroup, false); ButterKnife.c(this, inflate); this.fundInvestmentExperiencePresenter.e((C3693bDu) this); this.buttonNext.setEnabled(false); String[] stringArray = getResources().getStringArray(R.array.2130903055); String[] stringArray2 = getResources().getStringArray(R.array.2130903056); HBt hBt = new HBt(this, new SelectableChoiceAdapter.HBt(this) { // from class: o.fhu private FundInvestmentExperienceFragment e; @Override // com.scb.phone.view.adapter.investment.onboarding.SelectableChoiceAdapter.HBt public final void e(String str, int i) { FundInvestmentExperienceFragment.e(this.e, str); } { this.e = this; } }); List asList = Arrays.asList(stringArray); hBt.c.clear(); hBt.c.addAll(asList); hBt.notifyDataSetChanged(); this.recyclerViewExperience.setAdapter(hBt); RVV rvv = new RVV(this, new SelectableChoiceAdapter.HBt(this) { // from class: o.fhr private FundInvestmentExperienceFragment c; @Override // com.scb.phone.view.adapter.investment.onboarding.SelectableChoiceAdapter.HBt public final void e(String str, int i) { FundInvestmentExperienceFragment.d(this.c, i); } { this.c = this; } }); List asList2 = Arrays.asList(stringArray2); rvv.c.clear(); rvv.c.addAll(asList2); rvv.notifyDataSetChanged(); this.recyclerViewHoldingTax.setAdapter(rvv); this.recyclerViewHoldingTax.post(new Runnable(this) { // from class: o.fht private FundInvestmentExperienceFragment a; @Override // java.lang.Runnable public final void run() { FundInvestmentExperienceFragment.a(this.a); } { this.a = this; } }); v("mfonboard_investmentquestion"); return inflate; } @Override // o.InterfaceC6669cZl.IeS public final void b(boolean z) { this.buttonNext.setEnabled(z); } @Override // o.InterfaceC6669cZl.IeS public final void c() { fIE fie = this.c; if (fie != null) { fie.s(); } } /* loaded from: classes5.dex */ class HBt extends SelectableChoiceAdapter { private FundInvestmentExperienceFragment a; /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public HBt(FundInvestmentExperienceFragment fundInvestmentExperienceFragment, SelectableChoiceAdapter.HBt hBt) { super(hBt); this.a = fundInvestmentExperienceFragment; } } /* loaded from: classes5.dex */ class RVV extends SelectableChoiceAdapter { private FundInvestmentExperienceFragment a; /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public RVV(FundInvestmentExperienceFragment fundInvestmentExperienceFragment, SelectableChoiceAdapter.HBt hBt) { super(hBt); this.a = fundInvestmentExperienceFragment; } } public static /* synthetic */ void e(FundInvestmentExperienceFragment fundInvestmentExperienceFragment, String str) { C3693bDu c3693bDu = fundInvestmentExperienceFragment.fundInvestmentExperiencePresenter; c3693bDu.d = str; c3693bDu.d(); } public static /* synthetic */ void d(FundInvestmentExperienceFragment fundInvestmentExperienceFragment, int i) { boolean z = i == 0; C3693bDu c3693bDu = fundInvestmentExperienceFragment.fundInvestmentExperiencePresenter; c3693bDu.e = z; c3693bDu.a = true; c3693bDu.d(); } public static /* synthetic */ void a(FundInvestmentExperienceFragment fundInvestmentExperienceFragment) { FundInvestmentExperienceFragment fundInvestmentExperienceFragment2 = (FundInvestmentExperienceFragment) fundInvestmentExperienceFragment.getFragmentManager().findFragmentByTag(FundInvestmentExperienceFragment.class.getName()); if (fundInvestmentExperienceFragment2 == null || !fundInvestmentExperienceFragment2.isVisible()) { return; } fundInvestmentExperienceFragment.recyclerViewHoldingTax.a(0).itemView.performClick(); } @OnClick public void onNextButtonClick() { C3693bDu c3693bDu = this.fundInvestmentExperiencePresenter; if (c3693bDu.f != 0) { c3693bDu.f.y(); } S s = new S(); s.b = c3693bDu.e ? "Y" : "N"; s.d = c3693bDu.d; c3693bDu.b.e(s); UOm uOm = c3693bDu.b; uOm.d(uOm.i, new C3693bDu.IeS(c3693bDu)); } }