264 lines
9.9 KiB
Java
264 lines
9.9 KiB
Java
|
package com.scb.phone.view.fragment.easycash;
|
||
|
|
||
|
import android.content.Context;
|
||
|
import android.content.Intent;
|
||
|
import android.widget.Button;
|
||
|
import android.widget.TextView;
|
||
|
import com.scb.phone.R;
|
||
|
import com.scb.phone.view.activity.BaseActivity;
|
||
|
import com.scb.phone.view.activity.easycash.EasycashCardXSuccessActivity;
|
||
|
import com.scb.phone.view.activity.easycash.EasycashCommonNCBConsentActivity;
|
||
|
import com.scb.phone.view.activity.easycash.EasycashLandingActivity;
|
||
|
import com.scb.phone.view.activity.easycash.EasycashSuccessActivity;
|
||
|
import java.util.List;
|
||
|
import o.C0600Kj;
|
||
|
import o.C0613Kq;
|
||
|
import o.C0616Ks;
|
||
|
import o.C14957gcv;
|
||
|
import o.InterfaceC13391fZD;
|
||
|
import o.InterfaceC1853aQM;
|
||
|
import o.InterfaceC1903aRj;
|
||
|
import o.InterfaceC6621cYR;
|
||
|
import o.JX;
|
||
|
import o.LD;
|
||
|
import o.Lld;
|
||
|
import o.aQS;
|
||
|
import o.fJI;
|
||
|
import o.nMh;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class EasycashCommonReviewFragment extends Hilt_EasycashCommonReviewFragment implements InterfaceC6621cYR.CeN {
|
||
|
private InterfaceC1853aQM c;
|
||
|
private InterfaceC1903aRj d;
|
||
|
private boolean h;
|
||
|
private final String i = "";
|
||
|
|
||
|
@InterfaceC13391fZD
|
||
|
public aQS presenter;
|
||
|
|
||
|
@InterfaceC13391fZD
|
||
|
public Lld tracker;
|
||
|
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:48:0x0116, code lost:
|
||
|
|
||
|
if (r0.equals("CREDIT_CARD") == false) goto L78;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:49:0x0136, code lost:
|
||
|
|
||
|
r4.b(r4.e, r6, r7, new o.iJh.IeS(r0), new o.C15741iH.IeS(r12));
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:51:0x0120, code lost:
|
||
|
|
||
|
if (r0.equals("SPEEDY_CASH_M") == false) goto L78;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:53:0x012a, code lost:
|
||
|
|
||
|
if (r0.equals("SPEEDY_LOAN") == false) goto L78;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:54:0x01bb, code lost:
|
||
|
|
||
|
r4.b(r4.e, r6, r7, new o.iJh.IeS(r0), new o.C15741iH.RVV(r12));
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:56:0x0134, code lost:
|
||
|
|
||
|
if (r0.equals("SPEEDY_CASH") != false) goto L65;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:67:0x01b9, code lost:
|
||
|
|
||
|
if (r0.equals("SPEEDY_LOAN_TOP_UP") != false) goto L77;
|
||
|
*/
|
||
|
@Override // androidx.fragment.app.Fragment
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
public final android.view.View onCreateView(android.view.LayoutInflater r11, android.view.ViewGroup r12, android.os.Bundle r13) {
|
||
|
/*
|
||
|
Method dump skipped, instructions count: 502
|
||
|
To view this dump add '--comments-level debug' option
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.fragment.easycash.EasycashCommonReviewFragment.onCreateView(android.view.LayoutInflater, android.view.ViewGroup, android.os.Bundle):android.view.View");
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:27:0x006e, code lost:
|
||
|
|
||
|
if (o.C14957gcv.b((java.lang.Object) (r4 != null ? r4.h() : null), (java.lang.Object) "CAR") == false) goto L35;
|
||
|
*/
|
||
|
@butterknife.OnClick
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
public final void onConfirmButtonClicked() {
|
||
|
/*
|
||
|
Method dump skipped, instructions count: 276
|
||
|
To view this dump add '--comments-level debug' option
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.fragment.easycash.EasycashCommonReviewFragment.onConfirmButtonClicked():void");
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC6621cYR.CeN
|
||
|
public final void e() {
|
||
|
Context context = getContext();
|
||
|
if (context != null) {
|
||
|
TextView textView = this.disclaimerDescription;
|
||
|
if (textView == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView = null;
|
||
|
}
|
||
|
textView.setTextColor(nMh.getColor(context, R.color.f2272131099733));
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC6621cYR.CeN
|
||
|
public final void e(C0600Kj c0600Kj) {
|
||
|
LD d;
|
||
|
C14957gcv.e(c0600Kj, "");
|
||
|
Lld lld = this.tracker;
|
||
|
String str = null;
|
||
|
if (lld == null) {
|
||
|
C14957gcv.a("");
|
||
|
lld = null;
|
||
|
}
|
||
|
InterfaceC1903aRj interfaceC1903aRj = this.d;
|
||
|
lld.j(interfaceC1903aRj != null ? interfaceC1903aRj.j() : null);
|
||
|
InterfaceC1903aRj interfaceC1903aRj2 = this.d;
|
||
|
if (interfaceC1903aRj2 != null && (d = interfaceC1903aRj2.d()) != null) {
|
||
|
str = d.r;
|
||
|
}
|
||
|
Lld.a(new Object[]{lld, str}, -758484914, 758484920, System.identityHashCode(lld));
|
||
|
lld.C(c0600Kj.j);
|
||
|
lld.i(c0600Kj.c);
|
||
|
lld.k(c0600Kj.d);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC6621cYR.CeN
|
||
|
public final void e(List<? extends C0613Kq> list, JX jx, C0616Ks c0616Ks) {
|
||
|
C14957gcv.e(list, "");
|
||
|
C14957gcv.e(jx, "");
|
||
|
C14957gcv.e(c0616Ks, "");
|
||
|
Context context = getContext();
|
||
|
InterfaceC1903aRj interfaceC1903aRj = this.d;
|
||
|
String h = interfaceC1903aRj != null ? interfaceC1903aRj.h() : null;
|
||
|
if (h == null) {
|
||
|
h = this.i;
|
||
|
}
|
||
|
String str = h;
|
||
|
InterfaceC1903aRj interfaceC1903aRj2 = this.d;
|
||
|
String k = interfaceC1903aRj2 != null ? interfaceC1903aRj2.k() : null;
|
||
|
EasycashSuccessActivity.e(context, list, str, k == null ? this.i : k, jx.g, jx.j, jx.i, jx.h, c0616Ks);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC6621cYR.CeN
|
||
|
public final void d(String str, String str2, String str3) {
|
||
|
EasycashCardXSuccessActivity.IeS ieS = EasycashCardXSuccessActivity.b;
|
||
|
Context context = getContext();
|
||
|
InterfaceC1903aRj interfaceC1903aRj = this.d;
|
||
|
String c = interfaceC1903aRj != null ? interfaceC1903aRj.c() : null;
|
||
|
InterfaceC1903aRj interfaceC1903aRj2 = this.d;
|
||
|
String e = interfaceC1903aRj2 != null ? interfaceC1903aRj2.e() : null;
|
||
|
InterfaceC1903aRj interfaceC1903aRj3 = this.d;
|
||
|
String k = interfaceC1903aRj3 != null ? interfaceC1903aRj3.k() : null;
|
||
|
InterfaceC1903aRj interfaceC1903aRj4 = this.d;
|
||
|
String j = interfaceC1903aRj4 != null ? interfaceC1903aRj4.j() : null;
|
||
|
if (context != null) {
|
||
|
Intent intent = new Intent(context, (Class<?>) EasycashCardXSuccessActivity.class);
|
||
|
intent.putExtra("com.scb.phone.SUCCESS_CARD_COMPANY", c);
|
||
|
intent.putExtra("com.scb.phone.SUCCESS_TRANSACTION_TIME", str);
|
||
|
intent.putExtra("com.scb.phone.APPLICATION_ID_EXTRA", e);
|
||
|
intent.putExtra("PRODUCT_TYPE_EXTRA", k);
|
||
|
intent.putExtra("FLOW_TYPE_EXTRA", j);
|
||
|
intent.putExtra("SUCCESS_TITLE", str2);
|
||
|
intent.putExtra("SUCCESS_DESCRIPTION", str3);
|
||
|
context.startActivity(intent);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC6621cYR.CeN
|
||
|
public final void a(int i) {
|
||
|
Button button = this.btnSubmit;
|
||
|
if (button == null) {
|
||
|
C14957gcv.a("");
|
||
|
button = null;
|
||
|
}
|
||
|
button.setText(getString(i));
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC6621cYR.CeN
|
||
|
public final void d() {
|
||
|
InterfaceC1903aRj interfaceC1903aRj = this.d;
|
||
|
if (interfaceC1903aRj != null) {
|
||
|
EasycashCommonNCBConsentActivity.HBt hBt = EasycashCommonNCBConsentActivity.b;
|
||
|
Context requireContext = requireContext();
|
||
|
C14957gcv.c(requireContext, "");
|
||
|
String h = interfaceC1903aRj.h();
|
||
|
C14957gcv.c((Object) h, "");
|
||
|
String j = interfaceC1903aRj.j();
|
||
|
C14957gcv.c((Object) j, "");
|
||
|
String k = interfaceC1903aRj.k();
|
||
|
C14957gcv.c((Object) k, "");
|
||
|
Intent aeo_ = EasycashCommonNCBConsentActivity.HBt.aeo_(new fJI(requireContext, h, j, k, null, interfaceC1903aRj.e(), interfaceC1903aRj.f(), interfaceC1903aRj.c(), interfaceC1903aRj.g()));
|
||
|
Context context = getContext();
|
||
|
if (context != null) {
|
||
|
context.startActivity(aeo_);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // com.scb.phone.view.fragment.easycash.EasycashSuccessDialogFragment.HBt
|
||
|
public final void j() {
|
||
|
Lld lld = this.tracker;
|
||
|
Lld lld2 = null;
|
||
|
if (lld == null) {
|
||
|
C14957gcv.a("");
|
||
|
lld = null;
|
||
|
}
|
||
|
InterfaceC1903aRj interfaceC1903aRj = this.d;
|
||
|
lld.j(interfaceC1903aRj != null ? interfaceC1903aRj.j() : null);
|
||
|
Lld lld3 = this.tracker;
|
||
|
if (lld3 != null) {
|
||
|
lld2 = lld3;
|
||
|
} else {
|
||
|
C14957gcv.a("");
|
||
|
}
|
||
|
Lld lld4 = lld2;
|
||
|
if (getActivity() != null) {
|
||
|
lld4.c(((BaseActivity) getActivity()).scbAnalytics, "apply_loan_result");
|
||
|
}
|
||
|
EasycashLandingActivity.c(getContext());
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Multi-variable type inference failed */
|
||
|
@Override // com.scb.phone.view.fragment.easycash.Hilt_EasycashCommonReviewFragment, com.scb.phone.view.fragment.etb.BreadcrumbFragment, com.scb.phone.view.fragment.Hilt_BaseFragment, androidx.fragment.app.Fragment
|
||
|
public final void onAttach(Context context) {
|
||
|
C14957gcv.e(context, "");
|
||
|
super.onAttach(context);
|
||
|
if (context instanceof InterfaceC1903aRj) {
|
||
|
this.d = (InterfaceC1903aRj) context;
|
||
|
}
|
||
|
if (context instanceof InterfaceC1853aQM) {
|
||
|
this.c = (InterfaceC1853aQM) context;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // androidx.fragment.app.Fragment
|
||
|
public final void onResume() {
|
||
|
super.onResume();
|
||
|
this.h = false;
|
||
|
}
|
||
|
|
||
|
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
|
||
|
public final void onDestroyView() {
|
||
|
aQS aqs = null;
|
||
|
this.d = null;
|
||
|
aQS aqs2 = this.presenter;
|
||
|
if (aqs2 != null) {
|
||
|
aqs = aqs2;
|
||
|
} else {
|
||
|
C14957gcv.a("");
|
||
|
}
|
||
|
aqs.w_();
|
||
|
super.onDestroyView();
|
||
|
}
|
||
|
}
|