224 lines
6.9 KiB
Java
224 lines
6.9 KiB
Java
package com.scb.phone.view.fragment.hml;
|
|
|
|
import android.widget.Button;
|
|
import android.widget.TextView;
|
|
import androidx.recyclerview.widget.LinearLayoutManager;
|
|
import androidx.recyclerview.widget.RecyclerView;
|
|
import butterknife.BindView;
|
|
import butterknife.OnClick;
|
|
import com.scb.phone.R;
|
|
import com.scb.phone.view.activity.hml.submission.HmlDocumentSubmissionActivity;
|
|
import com.scb.phone.view.adapter.hml.HmlDocumentsUploadedAdapter;
|
|
import o.C0737Nk;
|
|
import o.C14957gcv;
|
|
import o.C5315bqi;
|
|
import o.EnumC5550bvF;
|
|
import o.InterfaceC13391fZD;
|
|
import o.InterfaceC9258dgO;
|
|
import o.ZI;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public class HmlDocumentUploadGuidelineFragment extends Hilt_HmlDocumentUploadGuidelineFragment implements InterfaceC9258dgO {
|
|
public static final HBt d = new HBt(0);
|
|
|
|
@BindView
|
|
public Button nextButton;
|
|
|
|
@InterfaceC13391fZD
|
|
public C5315bqi presenter;
|
|
|
|
@BindView
|
|
public RecyclerView recycler;
|
|
|
|
@BindView
|
|
public TextView subtitle;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public static final class HBt {
|
|
private HBt() {
|
|
}
|
|
|
|
public /* synthetic */ HBt(byte b) {
|
|
this();
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:13:0x004a, code lost:
|
|
|
|
if (r1 == null) goto L18;
|
|
*/
|
|
@Override // androidx.fragment.app.Fragment
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public android.view.View onCreateView(android.view.LayoutInflater r6, android.view.ViewGroup r7, android.os.Bundle r8) {
|
|
/*
|
|
r5 = this;
|
|
java.lang.String r8 = ""
|
|
o.C14957gcv.e(r6, r8)
|
|
r0 = 2131559696(0x7f0d0510, float:1.8744743E38)
|
|
r1 = 0
|
|
android.view.View r6 = r6.inflate(r0, r7, r1)
|
|
butterknife.Unbinder r7 = butterknife.ButterKnife.c(r5, r6)
|
|
r5.a = r7
|
|
o.bqi r7 = r5.presenter
|
|
r0 = 0
|
|
if (r7 == 0) goto L19
|
|
goto L1d
|
|
L19:
|
|
o.C14957gcv.a(r8)
|
|
r7 = r0
|
|
L1d:
|
|
r1 = r5
|
|
o.cYp r1 = (o.InterfaceC6638cYp) r1
|
|
r7.e(r1)
|
|
o.bqi r7 = r5.presenter
|
|
if (r7 == 0) goto L28
|
|
goto L2c
|
|
L28:
|
|
o.C14957gcv.a(r8)
|
|
r7 = r0
|
|
L2c:
|
|
android.os.Bundle r1 = r5.getArguments()
|
|
if (r1 == 0) goto L4c
|
|
o.C14957gcv.c(r1, r8)
|
|
java.lang.String r2 = "EXTRA_TYPE"
|
|
r3 = -1
|
|
int r1 = r1.getInt(r2, r3)
|
|
if (r1 < 0) goto L47
|
|
o.xVE[] r2 = o.EnumC17522xVE.values()
|
|
r1 = r2[r1]
|
|
java.lang.Enum r1 = (java.lang.Enum) r1
|
|
goto L48
|
|
L47:
|
|
r1 = r0
|
|
L48:
|
|
o.xVE r1 = (o.EnumC17522xVE) r1
|
|
if (r1 != 0) goto L4e
|
|
L4c:
|
|
o.xVE r1 = o.EnumC17522xVE.NORMAL
|
|
L4e:
|
|
android.os.Bundle r2 = r5.getArguments()
|
|
if (r2 == 0) goto L5a
|
|
java.lang.String r0 = "DEEPLINK_ID"
|
|
java.lang.String r0 = r2.getString(r0)
|
|
L5a:
|
|
o.C14957gcv.e(r1, r8)
|
|
T extends o.cYp r2 = r7.f
|
|
if (r2 == 0) goto L66
|
|
T extends o.cYp r2 = r7.f
|
|
r2.y()
|
|
L66:
|
|
o.xVE r2 = o.EnumC17522xVE.NORMAL
|
|
if (r1 != r2) goto L85
|
|
o.iM r8 = r7.b
|
|
o.bqi$Sts r0 = new o.bqi$Sts
|
|
r0.<init>(r7)
|
|
o.gbR r0 = (o.InterfaceC14894gbR) r0
|
|
o.bqi$RVV r1 = new o.bqi$RVV
|
|
r1.<init>(r7)
|
|
o.gbR r1 = (o.InterfaceC14894gbR) r1
|
|
o.rWY$RVV r7 = new o.rWY$RVV
|
|
o.drX r2 = o.EnumC9842drX.SUBMISSION
|
|
r7.<init>(r2)
|
|
r8.a(r0, r1, r7)
|
|
goto Laf
|
|
L85:
|
|
o.iM r2 = r7.b
|
|
o.bqi$LWm r3 = new o.bqi$LWm
|
|
r3.<init>(r7)
|
|
o.gbR r3 = (o.InterfaceC14894gbR) r3
|
|
o.bqi$HBt r4 = new o.bqi$HBt
|
|
r4.<init>(r7)
|
|
o.gbR r4 = (o.InterfaceC14894gbR) r4
|
|
if (r0 != 0) goto L98
|
|
r0 = r8
|
|
L98:
|
|
o.JGw$IeS r7 = new o.JGw$IeS
|
|
r7.<init>(r0, r1)
|
|
o.C14957gcv.e(r3, r8)
|
|
o.C14957gcv.e(r4, r8)
|
|
o.C14957gcv.e(r7, r8)
|
|
o.JGw r8 = r2.d
|
|
o.go$HBt r7 = (o.AbstractC15351go.HBt) r7
|
|
o.fSC r0 = r2.a
|
|
r8.e(r3, r4, r7, r0)
|
|
Laf:
|
|
return r6
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.fragment.hml.HmlDocumentUploadGuidelineFragment.onCreateView(android.view.LayoutInflater, android.view.ViewGroup, android.os.Bundle):android.view.View");
|
|
}
|
|
|
|
@Override // o.InterfaceC9258dgO
|
|
public final void e(C0737Nk c0737Nk) {
|
|
C14957gcv.e(c0737Nk, "");
|
|
TextView textView = this.subtitle;
|
|
RecyclerView recyclerView = null;
|
|
if (textView == null) {
|
|
C14957gcv.a("");
|
|
textView = null;
|
|
}
|
|
textView.setText(getString(R.string.hml_document_guidelines_subtitle, c0737Nk.d));
|
|
RecyclerView recyclerView2 = this.recycler;
|
|
if (recyclerView2 == null) {
|
|
C14957gcv.a("");
|
|
recyclerView2 = null;
|
|
}
|
|
getContext();
|
|
recyclerView2.setLayoutManager(new LinearLayoutManager());
|
|
RecyclerView recyclerView3 = this.recycler;
|
|
if (recyclerView3 != null) {
|
|
recyclerView = recyclerView3;
|
|
} else {
|
|
C14957gcv.a("");
|
|
}
|
|
recyclerView.setAdapter(new HmlDocumentsUploadedAdapter(c0737Nk.b));
|
|
}
|
|
|
|
@OnClick
|
|
public final void onNextClicked() {
|
|
C5315bqi c5315bqi = this.presenter;
|
|
if (c5315bqi == null) {
|
|
C14957gcv.a("");
|
|
c5315bqi = null;
|
|
}
|
|
ZI.IeS ieS = new ZI.IeS() { // from class: o.bqk
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj) {
|
|
((InterfaceC9258dgO) obj).e();
|
|
}
|
|
};
|
|
if (c5315bqi.f != 0) {
|
|
ieS.e(c5315bqi.f);
|
|
}
|
|
}
|
|
|
|
@Override // o.InterfaceC9258dgO
|
|
public final void d() {
|
|
Button button = this.nextButton;
|
|
if (button == null) {
|
|
C14957gcv.a("");
|
|
button = null;
|
|
}
|
|
button.setEnabled(false);
|
|
}
|
|
|
|
@Override // o.InterfaceC9258dgO
|
|
public void e() {
|
|
HmlDocumentSubmissionActivity.LWm lWm = HmlDocumentSubmissionActivity.b;
|
|
startActivity(HmlDocumentSubmissionActivity.LWm.agD_(requireContext(), EnumC5550bvF.SUBMISSION));
|
|
}
|
|
|
|
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
|
|
public void onDestroy() {
|
|
C5315bqi c5315bqi = this.presenter;
|
|
if (c5315bqi == null) {
|
|
C14957gcv.a("");
|
|
c5315bqi = null;
|
|
}
|
|
c5315bqi.w_();
|
|
super.onDestroy();
|
|
}
|
|
}
|