what-the-bank/sources/com/scb/phone/view/fragment/parntner/nsip/NsipPartnerPaymentSuccessFr...

141 lines
4.4 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.fragment.parntner.nsip;
import android.content.Context;
import android.os.Bundle;
import com.scb.phone.view.activity.BaseActivity;
import java.util.List;
import o.AbstractC14961gcz;
import o.C14957gcv;
import o.C15581guh;
import o.C17437wka;
import o.EO;
import o.EW;
import o.InterfaceC13393fZL;
import o.InterfaceC14890gbN;
import o.QI;
import o.cYH;
import o.fHN;
import o.fZZ;
/* loaded from: classes5.dex */
public final class NsipPartnerPaymentSuccessFragment extends Hilt_NsipPartnerPaymentSuccessFragment implements cYH, fHN {
public static final HBt d = new HBt(0);
private boolean f;
private List<QI> g;
private boolean h;
private final InterfaceC13393fZL i;
private boolean j;
private EW l;
@Override // com.scb.phone.view.fragment.PurchaseSuccessFragment, com.scb.phone.view.fragment.ScreenShotFragment
public final /* synthetic */ void d(EO eo, boolean z, boolean z2) {
C14957gcv.e((EW) eo, "");
this.f = z;
this.j = z2;
f();
}
public NsipPartnerPaymentSuccessFragment() {
Sts sts = Sts.d;
C14957gcv.e(sts, "");
this.i = new fZZ(sts);
}
/* loaded from: classes5.dex */
public static final class HBt {
private HBt() {
}
public /* synthetic */ HBt(byte b) {
this();
}
}
@Override // com.scb.phone.view.fragment.PurchaseSuccessFragment, com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
public final void onActivityCreated(Bundle bundle) {
super.onActivityCreated(bundle);
Bundle arguments = getArguments();
if (arguments != null) {
this.l = (EW) arguments.getParcelable("EXTRA_NSIP_SUCCESS");
this.g = arguments.getParcelableArrayList("EXTRA_NSIP_DEEPLINK_BUTTON");
this.componentFactory.e = this;
this.presenter.e(this.l, this.g);
((C17437wka) this.i.e()).e(arguments.getString("NSIP_TRACKER_FROM", C17437wka.b.d));
C17437wka c17437wka = (C17437wka) this.i.e();
String str = C17437wka.e.b;
if (getActivity() != null) {
c17437wka.c(((BaseActivity) getActivity()).scbAnalytics, str);
}
}
}
@Override // o.fHN
public final void s() {
this.componentFactory.e = null;
this.h = true;
}
@Override // com.scb.phone.view.fragment.PurchaseSuccessFragment, o.cYH
public final void d(EW ew, boolean z, boolean z2) {
C14957gcv.e(ew, "");
this.f = z;
this.j = z2;
f();
}
@Override // com.scb.phone.view.fragment.PurchaseSuccessFragment
public final void onShareSlipButtonClick() {
this.f = true;
super.onShareSlipButtonClick();
Bundle arguments = getArguments();
((C17437wka) this.i.e()).e(arguments != null ? arguments.getString("NSIP_TRACKER_FROM", C17437wka.b.d) : null);
C17437wka c17437wka = (C17437wka) this.i.e();
String str = C17437wka.e.c;
if (getActivity() != null) {
c17437wka.c(((BaseActivity) getActivity()).scbAnalytics, str);
}
}
@Override // com.scb.phone.view.fragment.PurchaseSuccessFragment
public final void onSaveSlipButtonClick() {
this.f = false;
super.onSaveSlipButtonClick();
}
private final void f() {
l();
Context context = getContext();
if (context != null) {
if (getActivity() != null) {
if (BaseActivity.P() && this.h && C15581guh.b(context, "android.permission.READ_MEDIA_IMAGES")) {
super.d(this.l, this.f, this.j);
return;
}
}
if (this.h && C15581guh.b(context, "android.permission.WRITE_EXTERNAL_STORAGE")) {
super.d(this.l, this.f, this.j);
}
}
}
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
public final void onDestroyView() {
this.presenter.w_();
super.onDestroyView();
}
/* loaded from: classes5.dex */
static final class Sts extends AbstractC14961gcz implements InterfaceC14890gbN<C17437wka> {
public static final Sts d = new Sts();
@Override // o.InterfaceC14890gbN
public final /* synthetic */ C17437wka invoke() {
return new C17437wka();
}
Sts() {
super(0);
}
}
}