185 lines
5.5 KiB
Java
185 lines
5.5 KiB
Java
|
package com.scb.phone.view.fragment.directdebit;
|
||
|
|
||
|
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.LinearLayout;
|
||
|
import butterknife.BindView;
|
||
|
import butterknife.ButterKnife;
|
||
|
import butterknife.OnClick;
|
||
|
import com.scb.phone.R;
|
||
|
import com.scb.phone.components.ItemCustom;
|
||
|
import com.scb.phone.view.activity.BaseActivity;
|
||
|
import com.scb.phone.view.activity.directdebit.DirectDebitOtpActivity;
|
||
|
import java.util.List;
|
||
|
import o.AbstractC14961gcz;
|
||
|
import o.C14823gO;
|
||
|
import o.C14957gcv;
|
||
|
import o.EM;
|
||
|
import o.InterfaceC13391fZD;
|
||
|
import o.InterfaceC13393fZL;
|
||
|
import o.InterfaceC14890gbN;
|
||
|
import o.InterfaceC9241dfx;
|
||
|
import o.JD;
|
||
|
import o.ZI;
|
||
|
import o.aPH;
|
||
|
import o.fZZ;
|
||
|
import o.hSd;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class DirectDebitReviewFragment extends Hilt_DirectDebitReviewFragment implements InterfaceC9241dfx {
|
||
|
public static final HBt d = new HBt(0);
|
||
|
private final InterfaceC13393fZL c;
|
||
|
|
||
|
@InterfaceC13391fZD
|
||
|
public C14823gO componentFactory;
|
||
|
private hSd g;
|
||
|
|
||
|
@BindView
|
||
|
public LinearLayout itemContainer;
|
||
|
|
||
|
@InterfaceC13391fZD
|
||
|
public aPH presenter;
|
||
|
|
||
|
public DirectDebitReviewFragment() {
|
||
|
LWm lWm = new LWm(this);
|
||
|
C14957gcv.e(lWm, "");
|
||
|
this.c = new fZZ(lWm);
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
static final class LWm extends AbstractC14961gcz implements InterfaceC14890gbN<JD> {
|
||
|
private DirectDebitReviewFragment e;
|
||
|
|
||
|
@Override // o.InterfaceC14890gbN
|
||
|
public final /* synthetic */ JD invoke() {
|
||
|
Bundle arguments = this.e.getArguments();
|
||
|
if (arguments != null) {
|
||
|
return (JD) arguments.getParcelable("EXTRA_DIRECT_DEBIT_INPUT_DISPLAY");
|
||
|
}
|
||
|
return null;
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||
|
LWm(DirectDebitReviewFragment directDebitReviewFragment) {
|
||
|
super(0);
|
||
|
this.e = directDebitReviewFragment;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public static final class HBt {
|
||
|
private HBt() {
|
||
|
}
|
||
|
|
||
|
public /* synthetic */ HBt(byte b) {
|
||
|
this();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // androidx.fragment.app.Fragment
|
||
|
public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
|
||
|
C14957gcv.e(layoutInflater, "");
|
||
|
View inflate = layoutInflater.inflate(R.layout.2131559567, viewGroup, false);
|
||
|
ButterKnife.c(this, inflate);
|
||
|
return inflate;
|
||
|
}
|
||
|
|
||
|
@Override // androidx.fragment.app.Fragment
|
||
|
public final void onViewCreated(View view, Bundle bundle) {
|
||
|
C14957gcv.e(view, "");
|
||
|
super.onViewCreated(view, bundle);
|
||
|
aPH aph = this.presenter;
|
||
|
final aPH aph2 = null;
|
||
|
if (aph == null) {
|
||
|
C14957gcv.a("");
|
||
|
aph = null;
|
||
|
}
|
||
|
aph.e((aPH) this);
|
||
|
aPH aph3 = this.presenter;
|
||
|
if (aph3 != null) {
|
||
|
aph2 = aph3;
|
||
|
} else {
|
||
|
C14957gcv.a("");
|
||
|
}
|
||
|
final JD jd = (JD) this.c.e();
|
||
|
if (jd != null) {
|
||
|
aph2.e = jd;
|
||
|
ZI.IeS ieS = new ZI.IeS(aph2, jd) { // from class: o.aPG
|
||
|
private aPH a;
|
||
|
private JD c;
|
||
|
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
aPH.d(this.a, this.c, (InterfaceC9241dfx) obj);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.a = aph2;
|
||
|
this.c = jd;
|
||
|
}
|
||
|
};
|
||
|
if (aph2.f != 0) {
|
||
|
ieS.e(aph2.f);
|
||
|
}
|
||
|
}
|
||
|
hSd hsd = new hSd();
|
||
|
this.g = hsd;
|
||
|
hSd hsd2 = hsd;
|
||
|
if (getActivity() != null) {
|
||
|
hsd2.c(((BaseActivity) getActivity()).scbAnalytics, "direct_debit_review");
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9241dfx
|
||
|
public final void d(List<? extends EM> list) {
|
||
|
C14957gcv.e(list, "");
|
||
|
for (EM em : list) {
|
||
|
C14823gO c14823gO = this.componentFactory;
|
||
|
LinearLayout linearLayout = null;
|
||
|
if (c14823gO == null) {
|
||
|
C14957gcv.a("");
|
||
|
c14823gO = null;
|
||
|
}
|
||
|
ItemCustom e = c14823gO.e(requireContext(), em);
|
||
|
e.setUpWithDisplay(em);
|
||
|
LinearLayout linearLayout2 = this.itemContainer;
|
||
|
if (linearLayout2 != null) {
|
||
|
linearLayout = linearLayout2;
|
||
|
} else {
|
||
|
C14957gcv.a("");
|
||
|
}
|
||
|
linearLayout.addView(e);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
|
||
|
public final void onDestroyView() {
|
||
|
aPH aph = this.presenter;
|
||
|
if (aph == null) {
|
||
|
C14957gcv.a("");
|
||
|
aph = null;
|
||
|
}
|
||
|
aph.w_();
|
||
|
super.onDestroyView();
|
||
|
}
|
||
|
|
||
|
@OnClick
|
||
|
public final void onClickNext() {
|
||
|
JD jd = (JD) this.c.e();
|
||
|
if (jd != null) {
|
||
|
DirectDebitOtpActivity.HBt hBt = DirectDebitOtpActivity.b;
|
||
|
Context requireContext = requireContext();
|
||
|
C14957gcv.c(requireContext, "");
|
||
|
C14957gcv.e(requireContext, "");
|
||
|
C14957gcv.e(jd, "");
|
||
|
Intent intent = new Intent(requireContext, (Class<?>) DirectDebitOtpActivity.class);
|
||
|
intent.putExtra("EXTRA_DIRECT_DEBIT_INPUT_DISPLAY", jd);
|
||
|
startActivity(intent);
|
||
|
}
|
||
|
}
|
||
|
}
|