187 lines
6.4 KiB
Java
187 lines
6.4 KiB
Java
package com.scb.phone.view.fragment.easycash;
|
|
|
|
import android.content.Intent;
|
|
import android.os.Bundle;
|
|
import android.view.LayoutInflater;
|
|
import android.view.View;
|
|
import android.view.ViewGroup;
|
|
import android.widget.TextView;
|
|
import butterknife.BindView;
|
|
import butterknife.ButterKnife;
|
|
import butterknife.OnClick;
|
|
import com.scb.phone.R;
|
|
import com.scb.phone.view.activity.BaseActivity;
|
|
import com.scb.phone.view.activity.easycash.EasycashCreditPowerInputActivity;
|
|
import com.scb.phone.view.activity.easycash.EasycashLandingActivity;
|
|
import com.scb.phone.view.activity.prelogin.PinLoginActivity;
|
|
import com.scb.phone.view.custom.easycash.CustomEasyCashSectionLabel;
|
|
import com.scb.phone.view.custom.easycash.CustomSeparatedViews;
|
|
import com.scb.phone.view.fragment.easycash.EasycashSuccessDialogFragment;
|
|
import o.C0596Kg;
|
|
import o.C0613Kq;
|
|
import o.C0618Ku;
|
|
import o.InterfaceC13391fZD;
|
|
import o.InterfaceC1903aRj;
|
|
import o.InterfaceC6621cYR;
|
|
import o.JX;
|
|
import o.JjC;
|
|
import o.Lld;
|
|
import o.ZI;
|
|
import o.aSA;
|
|
import o.aSF;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public class SummaryFragment extends Hilt_SummaryFragment implements InterfaceC6621cYR.RNg, EasycashSuccessDialogFragment.HBt {
|
|
private Lld c;
|
|
|
|
@BindView
|
|
CustomSeparatedViews contentOne;
|
|
|
|
@BindView
|
|
CustomSeparatedViews contentThree;
|
|
|
|
@BindView
|
|
CustomSeparatedViews contentTwo;
|
|
|
|
@BindView
|
|
TextView disclaimerDescription;
|
|
|
|
@BindView
|
|
CustomEasyCashSectionLabel disclaimerHeader;
|
|
|
|
@BindView
|
|
CustomEasyCashSectionLabel labelOne;
|
|
|
|
@BindView
|
|
CustomEasyCashSectionLabel labelThree;
|
|
|
|
@BindView
|
|
CustomEasyCashSectionLabel labelTwo;
|
|
|
|
@InterfaceC13391fZD
|
|
public aSA presenter;
|
|
|
|
@Override // o.InterfaceC6621cYR.RNg
|
|
public final InterfaceC1903aRj a() {
|
|
return null;
|
|
}
|
|
|
|
@Override // o.InterfaceC6621cYR.RNg
|
|
public final void d(C0618Ku c0618Ku, JX jx) {
|
|
}
|
|
|
|
public static SummaryFragment d(C0618Ku c0618Ku, Lld lld) {
|
|
Bundle bundle = new Bundle();
|
|
bundle.putParcelable("com.scb.phone.EXTRA_DISPLAY", c0618Ku);
|
|
bundle.putParcelable("FIREBASE_TRACKER_DATA", lld);
|
|
SummaryFragment summaryFragment = new SummaryFragment();
|
|
summaryFragment.setArguments(bundle);
|
|
return summaryFragment;
|
|
}
|
|
|
|
@Override // androidx.fragment.app.Fragment
|
|
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
|
|
View inflate = layoutInflater.inflate(R.layout.2131559618, viewGroup, false);
|
|
ButterKnife.c(this, inflate);
|
|
this.presenter.e((aSA) this);
|
|
if (getArguments() != null && getArguments().getParcelable("com.scb.phone.EXTRA_DISPLAY") != null) {
|
|
this.presenter.e((C0618Ku) getArguments().getParcelable("com.scb.phone.EXTRA_DISPLAY"));
|
|
Lld lld = (Lld) ((getArguments() == null || getArguments().getParcelable("FIREBASE_TRACKER_DATA") == null) ? null : (JjC) getArguments().getParcelable("FIREBASE_TRACKER_DATA"));
|
|
this.c = lld;
|
|
if (lld != null && getActivity() != null) {
|
|
lld.c(((BaseActivity) getActivity()).scbAnalytics, "apply_loan_preapproved_summary");
|
|
}
|
|
}
|
|
return inflate;
|
|
}
|
|
|
|
@Override // o.InterfaceC6621cYR.Heg
|
|
public final void c(String str, String str2) {
|
|
this.disclaimerHeader.setVisibility(0);
|
|
this.disclaimerHeader.setText(str);
|
|
this.disclaimerDescription.setVisibility(0);
|
|
this.disclaimerDescription.setText(str2);
|
|
}
|
|
|
|
@Override // o.InterfaceC6621cYR.Heg
|
|
public final void e(C0596Kg c0596Kg) {
|
|
EasycashSuccessDialogFragment a = EasycashSuccessDialogFragment.a(c0596Kg);
|
|
Lld lld = this.c;
|
|
if (getActivity() != null) {
|
|
lld.c(((BaseActivity) getActivity()).scbAnalytics, "apply_loan_preapproved_confirmation");
|
|
}
|
|
a.show(getChildFragmentManager().a(), "dialog");
|
|
}
|
|
|
|
@Override // o.InterfaceC6621cYR.Heg
|
|
public final void c() {
|
|
EasycashLandingActivity.c(getContext());
|
|
}
|
|
|
|
@Override // o.InterfaceC6621cYR.RNg
|
|
public final void d() {
|
|
startActivity(EasycashCreditPowerInputActivity.aep_(getContext()));
|
|
}
|
|
|
|
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
|
|
public void onDestroy() {
|
|
super.onDestroy();
|
|
this.presenter.w_();
|
|
}
|
|
|
|
@Override // o.InterfaceC6621cYR.Heg
|
|
public final void b(C0613Kq c0613Kq, int i) {
|
|
if (i == 1) {
|
|
CustomEasyCashSectionLabel customEasyCashSectionLabel = this.labelOne;
|
|
CustomSeparatedViews customSeparatedViews = this.contentOne;
|
|
customEasyCashSectionLabel.setVisibility(0);
|
|
customEasyCashSectionLabel.setText(c0613Kq.a);
|
|
customSeparatedViews.e(c0613Kq.d, R.layout.2131559336);
|
|
return;
|
|
}
|
|
if (i == 2) {
|
|
CustomEasyCashSectionLabel customEasyCashSectionLabel2 = this.labelTwo;
|
|
CustomSeparatedViews customSeparatedViews2 = this.contentTwo;
|
|
customEasyCashSectionLabel2.setVisibility(0);
|
|
customEasyCashSectionLabel2.setText(c0613Kq.a);
|
|
customSeparatedViews2.e(c0613Kq.d, R.layout.2131559336);
|
|
return;
|
|
}
|
|
if (i == 3) {
|
|
CustomEasyCashSectionLabel customEasyCashSectionLabel3 = this.labelThree;
|
|
CustomSeparatedViews customSeparatedViews3 = this.contentThree;
|
|
customEasyCashSectionLabel3.setVisibility(0);
|
|
customEasyCashSectionLabel3.setText(c0613Kq.a);
|
|
customSeparatedViews3.e(c0613Kq.d, R.layout.2131559336);
|
|
}
|
|
}
|
|
|
|
@OnClick
|
|
public void onConfirmButtonClicked() {
|
|
startActivityForResult(new Intent(getContext(), (Class<?>) PinLoginActivity.class), 7134);
|
|
}
|
|
|
|
@Override // com.scb.phone.view.fragment.easycash.EasycashSuccessDialogFragment.HBt
|
|
public final void j() {
|
|
aSA asa = this.presenter;
|
|
aSF asf = new aSF();
|
|
if (asa.f != 0) {
|
|
asf.e(asa.f);
|
|
}
|
|
}
|
|
|
|
@Override // com.scb.phone.view.fragment.easycash.EasycashSuccessDialogFragment.HBt
|
|
public final void aW_() {
|
|
aSA asa = this.presenter;
|
|
ZI.IeS ieS = new ZI.IeS() { // from class: o.aSC
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj) {
|
|
((InterfaceC6621cYR.RNg) obj).d();
|
|
}
|
|
};
|
|
if (asa.f != 0) {
|
|
ieS.e(asa.f);
|
|
}
|
|
}
|
|
}
|