what-the-bank/sources/com/scb/phone/view/fragment/investment/onboarding/FundSourceFragment.java

107 lines
3.4 KiB
Java

package com.scb.phone.view.fragment.investment.onboarding;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import com.scb.phone.R;
import com.scb.phone.view.activity.investment.onboarding.FundAppFormActivity;
import com.scb.phone.view.adapter.investment.onboarding.FundAccountPagerAdapter;
import o.C17752zVW;
import o.Gbo;
import o.InterfaceC13391fZD;
import o.InterfaceC6669cZl;
import o.PS;
import o.S;
import o.bEM;
import o.fIE;
/* loaded from: classes5.dex */
public class FundSourceFragment extends Hilt_FundSourceFragment implements InterfaceC6669cZl.LWm, FundAccountPagerAdapter.Sts {
@BindView
Button buttonNext;
private fIE d;
@InterfaceC13391fZD
public bEM sourceOfFundPresenter;
@BindView
TextView textSource;
/* JADX WARN: Multi-variable type inference failed */
@Override // com.scb.phone.view.fragment.investment.onboarding.Hilt_FundSourceFragment, com.scb.phone.view.fragment.Hilt_BaseFragment, androidx.fragment.app.Fragment
public void onAttach(Context context) {
super.onAttach(context);
if (context instanceof fIE) {
this.d = (fIE) context;
}
}
@Override // androidx.fragment.app.Fragment
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
View inflate = layoutInflater.inflate(R.layout.2131559765, viewGroup, false);
ButterKnife.c(this, inflate);
this.sourceOfFundPresenter.e((bEM) this);
this.buttonNext.setEnabled(false);
v("mfonboard_sourceoffund");
return inflate;
}
@Override // o.InterfaceC6669cZl.LWm
public final void c() {
fIE fie = this.d;
if (fie != null) {
fie.s();
}
}
@OnClick
public void onLayoutSourceClick() {
FundSourceListFragment fundSourceListFragment = new FundSourceListFragment();
fundSourceListFragment.setTargetFragment(this, 1);
((FundAppFormActivity) getActivity()).a(fundSourceListFragment);
((FundAppFormActivity) getActivity()).progressStateBar.setVisibility(8);
}
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
public void onActivityResult(int i, int i2, Intent intent) {
if (i != 1) {
super.onActivityResult(i, i2, intent);
return;
}
if (intent != null) {
PS ps = (PS) intent.getParcelableExtra("EXTRA_FUND_SOURCE");
this.sourceOfFundPresenter.c = ps;
((FundAppFormActivity) getActivity()).progressStateBar.setVisibility(0);
this.textSource.setText(ps.c);
this.buttonNext.setEnabled(true);
}
}
@Override // com.scb.phone.view.adapter.investment.onboarding.FundAccountPagerAdapter.Sts
public final void e(int i) {
this.buttonNext.setEnabled(true);
}
@OnClick
public void onNextButtonClick() {
bEM bem = this.sourceOfFundPresenter;
S s = new S();
s.e = new Gbo(bem.c.d, bem.c.c);
if (bem.f != 0) {
bem.f.y();
}
bem.d.d(s);
C17752zVW c17752zVW = bem.d;
c17752zVW.d(c17752zVW.i, new bEM.LWm(bem));
}
}