what-the-bank/sources/com/scb/phone/view/fragment/fastpay/FastPaySuccessFragment.java

1077 lines
52 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.fragment.fastpay;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewTreeObserver;
import android.widget.Button;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.fragment.app.FragmentActivity;
import androidx.recyclerview.widget.RecyclerView;
import com.scb.phone.R;
import com.scb.phone.view.activity.BaseActivity;
import com.scb.phone.view.activity.HomeActivity;
import com.scb.phone.view.activity.donations.SharingMomentsPreviewActivity;
import com.scb.phone.view.activity.fastpay.FastPaySuccessActivity;
import com.scb.phone.view.custom.common.CustomDialog;
import com.scb.phone.view.custom.transferandpay.CustomTransferAndPayTarget;
import com.scb.phone.view.fragment.fastpay.FastPaySuccessFragment;
import com.scb.phone.view.fragment.transferandpay.ContextualAdsFragment;
import java.util.List;
import o.AbstractC13163fSk;
import o.AbstractC13482fbE;
import o.AbstractC14961gcz;
import o.C0375Fe;
import o.C0693Mj;
import o.C10456eEq;
import o.C1191Xp;
import o.C12944fLv;
import o.C14866gag;
import o.C14954gcs;
import o.C14957gcv;
import o.C15582gui;
import o.C2974aoj;
import o.EnumC8951daY;
import o.InterfaceC13391fZD;
import o.InterfaceC14890gbN;
import o.InterfaceC14894gbR;
import o.InterfaceC15577gud;
import o.InterfaceC9010dbe;
import o.JF;
import o.XPZ;
import o.cNJ;
import o.fHN;
import o.fJM;
import o.fSC;
import o.fSQ;
import o.guQ;
import o.nfK;
import o.pug;
import o.qeC;
import org.jmrtd.lds.ImageInfo;
/* loaded from: classes5.dex */
public final class FastPaySuccessFragment extends Hilt_FastPaySuccessFragment implements InterfaceC9010dbe.SWS, ViewTreeObserver.OnGlobalLayoutListener, fHN {
public static final RVV d = new RVV(0);
final fSC c = new fSC();
C1191Xp f;
private boolean h;
private nfK i;
boolean j;
private Uri l;
private boolean m;
@InterfaceC13391fZD
public cNJ successPresenter;
@InterfaceC13391fZD
public C12944fLv successScreenshotHelper;
public static final /* synthetic */ void a(FastPaySuccessFragment fastPaySuccessFragment, final InterfaceC15577gud interfaceC15577gud) {
guQ.b("onShowRationale", new Object[0]);
((CustomDialog) CustomDialog.e(new Object[]{CustomDialog.b(fastPaySuccessFragment.requireContext()).c(R.string.permission_storage_title).d(R.string.permission_storage).aoT_(R.string.permission_allow, new DialogInterface.OnClickListener(interfaceC15577gud) { // from class: o.eZa
private InterfaceC15577gud d;
@Override // android.content.DialogInterface.OnClickListener
public final void onClick(DialogInterface dialogInterface, int i) {
FastPaySuccessFragment.c(this.d);
}
{
this.d = interfaceC15577gud;
}
}), Integer.valueOf(R.string.permission_deny), new DialogInterface.OnClickListener(interfaceC15577gud) { // from class: o.eZi
private InterfaceC15577gud e;
@Override // android.content.DialogInterface.OnClickListener
public final void onClick(DialogInterface dialogInterface, int i) {
FastPaySuccessFragment.d(this.e);
}
{
this.e = interfaceC15577gud;
}
}})).show();
}
public static final /* synthetic */ void asU_(FastPaySuccessFragment fastPaySuccessFragment, Uri uri) {
fastPaySuccessFragment.l = uri;
String obj = uri.toString();
C14957gcv.c((Object) obj, "");
if (obj.length() == 0 || !fastPaySuccessFragment.isResumed() || fastPaySuccessFragment.getActivity() == null || !fastPaySuccessFragment.m) {
return;
}
EnumC8951daY enumC8951daY = EnumC8951daY.SUCCESS;
FragmentActivity activity = fastPaySuccessFragment.getActivity();
if (activity != null) {
FragmentActivity fragmentActivity = activity;
String string = fastPaySuccessFragment.getString(R.string.saved_slip);
if (fastPaySuccessFragment.getActivity() != null) {
BaseActivity.a(new Object[]{(BaseActivity) fastPaySuccessFragment.getActivity(), fragmentActivity, Integer.valueOf(R.id.success_view_container), string, enumC8951daY}, 855668825, -855668822, R.id.success_view_container);
}
}
fastPaySuccessFragment.m = false;
}
public static final /* synthetic */ void b(FastPaySuccessFragment fastPaySuccessFragment) {
if (C2974aoj.c(String.valueOf(fastPaySuccessFragment.l))) {
EnumC8951daY enumC8951daY = EnumC8951daY.ERROR;
FragmentActivity activity = fastPaySuccessFragment.getActivity();
if (activity != null) {
FragmentActivity fragmentActivity = activity;
String string = fastPaySuccessFragment.getString(R.string.share_error);
if (fastPaySuccessFragment.getActivity() != null) {
BaseActivity.a(new Object[]{(BaseActivity) fastPaySuccessFragment.getActivity(), fragmentActivity, Integer.valueOf(R.id.success_view_container), string, enumC8951daY}, 855668825, -855668822, R.id.success_view_container);
return;
}
return;
}
return;
}
FragmentActivity activity2 = fastPaySuccessFragment.getActivity();
C1191Xp c1191Xp = null;
BaseActivity baseActivity = activity2 instanceof BaseActivity ? (BaseActivity) activity2 : null;
if (baseActivity != null) {
C1191Xp c1191Xp2 = fastPaySuccessFragment.f;
if (c1191Xp2 == null) {
C14957gcv.a("");
} else {
c1191Xp = c1191Xp2;
}
if (!a(c1191Xp)) {
if (fastPaySuccessFragment.D()) {
baseActivity.scbAnalytics.e("billpay_slip", new pug("source", fastPaySuccessFragment.Q()), new pug("subtype", fastPaySuccessFragment.O()), new pug("button", "share_slip"));
} else {
baseActivity.scbAnalytics.c("share_slip_action");
}
} else {
baseActivity.scbAnalytics.e("share_slip_action", new pug("source", "movie"));
}
}
Intent intent = new Intent("android.intent.action.SEND");
intent.setType(ImageInfo.JPEG_MIME_TYPE);
intent.addFlags(1);
intent.putExtra("android.intent.extra.STREAM", fastPaySuccessFragment.l);
fastPaySuccessFragment.startActivity(Intent.createChooser(intent, fastPaySuccessFragment.getString(R.string.share_slip)));
}
public static final /* synthetic */ nfK c(FastPaySuccessFragment fastPaySuccessFragment) {
nfK nfk = fastPaySuccessFragment.i;
if (nfk != null) {
return nfk;
}
throw new IllegalArgumentException("Required value was null.".toString());
}
public static final /* synthetic */ void e(FastPaySuccessFragment fastPaySuccessFragment, Throwable th) {
guQ.a(th, "onSaveScreenshotError", new Object[0]);
if (fastPaySuccessFragment.isDetached() || fastPaySuccessFragment.getActivity() == null) {
return;
}
EnumC8951daY enumC8951daY = EnumC8951daY.ERROR;
FragmentActivity activity = fastPaySuccessFragment.getActivity();
if (activity != null) {
FragmentActivity fragmentActivity = activity;
String string = fastPaySuccessFragment.getString(R.string.saved_slip_error);
if (fastPaySuccessFragment.getActivity() != null) {
BaseActivity.a(new Object[]{(BaseActivity) fastPaySuccessFragment.getActivity(), fragmentActivity, Integer.valueOf(R.id.success_view_container), string, enumC8951daY}, 855668825, -855668822, R.id.success_view_container);
}
}
}
public static final /* synthetic */ void w() {
guQ.b("onNeverAskAgain", new Object[0]);
}
public static final /* synthetic */ void z() {
guQ.b("onPermissionDenied", new Object[0]);
}
/* JADX WARN: Code restructure failed: missing block: B:56:0x00da, code lost:
if (d(r4) == false) goto L67;
*/
/* JADX WARN: Removed duplicated region for block: B:101:0x0218 */
/* JADX WARN: Removed duplicated region for block: B:46:0x00b6 */
/* JADX WARN: Removed duplicated region for block: B:50:0x00c1 */
/* JADX WARN: Removed duplicated region for block: B:71:0x012b */
@Override // androidx.fragment.app.Fragment
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void onViewCreated(android.view.View r13, android.os.Bundle r14) {
/*
Method dump skipped, instructions count: 547
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.fragment.fastpay.FastPaySuccessFragment.onViewCreated(android.view.View, android.os.Bundle):void");
}
@Override // o.InterfaceC9010dbe.SWS
public final void a(String str) {
C14957gcv.e(str, "");
this.customTarget.setFavoriteName(str);
}
@Override // o.InterfaceC9010dbe.SWS
public final void c(List<C0375Fe> list) {
C14957gcv.e(list, "");
nfK nfk = this.i;
if (nfk != null) {
FrameLayout frameLayout = nfk.g;
C14957gcv.c(frameLayout, "");
FrameLayout frameLayout2 = frameLayout;
C14957gcv.e(frameLayout2, "");
frameLayout2.setVisibility(0);
ContextualAdsFragment.IeS ieS = ContextualAdsFragment.d;
ContextualAdsFragment a = ContextualAdsFragment.IeS.a("TRANSFER", list, "ADS_TRANSFER_TYPE", null, false);
AbstractC13482fbE a2 = getChildFragmentManager().a();
nfK nfk2 = this.i;
if (nfk2 == null) {
throw new IllegalArgumentException("Required value was null.".toString());
}
int id = nfk2.g.getId();
ContextualAdsFragment contextualAdsFragment = a;
if (id == 0) {
throw new IllegalArgumentException("Must use non-zero containerViewId");
}
a2.b(id, contextualAdsFragment, null, 2);
a2.b();
return;
}
throw new IllegalArgumentException("Required value was null.".toString());
}
@Override // o.InterfaceC9010dbe.SWS
public final void e(String str, String str2, String str3) {
C14957gcv.e(str, "");
C14957gcv.e(str2, "");
C14957gcv.e(str3, "");
nfK nfk = this.i;
if (nfk != null) {
LinearLayout linearLayout = nfk.j;
C14957gcv.c(linearLayout, "");
LinearLayout linearLayout2 = linearLayout;
C14957gcv.e(linearLayout2, "");
linearLayout2.setVisibility(0);
ImageView imageView = nfk.i;
C14957gcv.c(imageView, "");
C10456eEq.aqe_(imageView, str, null);
nfk.s.setText(str2);
nfk.r.setText(str3);
return;
}
throw new IllegalArgumentException("Required value was null.".toString());
}
@Override // o.InterfaceC9010dbe.SWS
public final void r() {
this.customTarget.setAddFavoriteButtonVisible(true);
}
@Override // o.InterfaceC9010dbe.SWS
public final void c() {
CustomTransferAndPayTarget customTransferAndPayTarget = this.customTarget;
customTransferAndPayTarget.mFavouriteIcon.setVisibility(8);
customTransferAndPayTarget.mFavouriteName.setVisibility(8);
this.customTarget.setAddFavoriteButtonVisible(false);
}
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
public final void onDestroyView() {
this.c.dispose();
cNJ cnj = this.successPresenter;
if (cnj == null) {
C14957gcv.a("");
cnj = null;
}
cnj.w_();
super.onDestroyView();
}
/* loaded from: classes5.dex */
final /* synthetic */ class LWm extends C14954gcs implements InterfaceC14894gbR<Uri, C14866gag> {
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Uri uri) {
Uri uri2 = uri;
C14957gcv.e(uri2, "");
FastPaySuccessFragment.asU_((FastPaySuccessFragment) this.f, uri2);
return C14866gag.c;
}
LWm(Object obj) {
super(1, obj, FastPaySuccessFragment.class, "onSaveScreenshotSuccess", "onSaveScreenshotSuccess(Landroid/net/Uri;)V");
}
}
/* loaded from: classes5.dex */
final /* synthetic */ class Sts extends C14954gcs implements InterfaceC14894gbR<Throwable, C14866gag> {
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Throwable th) {
Throwable th2 = th;
C14957gcv.e(th2, "");
FastPaySuccessFragment.e((FastPaySuccessFragment) this.f, th2);
return C14866gag.c;
}
Sts(Object obj) {
super(1, obj, FastPaySuccessFragment.class, "onSaveScreenshotError", "onSaveScreenshotError(Ljava/lang/Throwable;)V");
}
}
/* loaded from: classes5.dex */
final /* synthetic */ class HBt extends C14954gcs implements InterfaceC14894gbR<Throwable, C14866gag> {
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Throwable th) {
Throwable th2 = th;
C14957gcv.e(th2, "");
FastPaySuccessFragment.e((FastPaySuccessFragment) this.f, th2);
return C14866gag.c;
}
HBt(Object obj) {
super(1, obj, FastPaySuccessFragment.class, "onSaveScreenshotError", "onSaveScreenshotError(Ljava/lang/Throwable;)V");
}
}
/* loaded from: classes5.dex */
final /* synthetic */ class IeS extends C14954gcs implements InterfaceC14894gbR<Uri, C14866gag> {
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Uri uri) {
Uri uri2 = uri;
C14957gcv.e(uri2, "");
FastPaySuccessFragment.asU_((FastPaySuccessFragment) this.f, uri2);
return C14866gag.c;
}
IeS(Object obj) {
super(1, obj, FastPaySuccessFragment.class, "onSaveScreenshotSuccess", "onSaveScreenshotSuccess(Landroid/net/Uri;)V");
}
}
/* loaded from: classes5.dex */
static final class jNh extends AbstractC14961gcz implements InterfaceC14890gbN<C14866gag> {
private FastPaySuccessFragment e;
@Override // o.InterfaceC14890gbN
public final /* synthetic */ C14866gag invoke() {
FragmentActivity activity = this.e.getActivity();
FastPaySuccessActivity fastPaySuccessActivity = activity instanceof FastPaySuccessActivity ? (FastPaySuccessActivity) activity : null;
if (fastPaySuccessActivity != null) {
FastPaySuccessFragment fastPaySuccessFragment = this.e;
if (!HomeActivity.r()) {
fastPaySuccessActivity.finishAffinity();
}
Intent intent = (Intent) HomeActivity.e(new Object[]{fastPaySuccessActivity}, -1290522472, 1290522474, (int) System.currentTimeMillis());
intent.putExtra("com.scb.phone.EXTRA_NEW_INSTANCE_REFRESH", true);
C14957gcv.c(intent, "");
fastPaySuccessFragment.startActivity(intent);
}
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
jNh(FastPaySuccessFragment fastPaySuccessFragment) {
super(0);
this.e = fastPaySuccessFragment;
}
}
@Override // o.InterfaceC9010dbe.SWS
public final void l() {
this.h = true;
this.m = true;
C1191Xp c1191Xp = this.f;
if (c1191Xp == null) {
C14957gcv.a("");
c1191Xp = null;
}
if (c1191Xp.m) {
nfK nfk = this.i;
if (nfk != null) {
Button button = nfk.l;
C14957gcv.c(button, "");
Button button2 = button;
C14957gcv.e(button2, "");
button2.setVisibility(8);
nfK nfk2 = this.i;
if (nfk2 != null) {
Button button3 = nfk2.m;
C14957gcv.c(button3, "");
Button button4 = button3;
C14957gcv.e(button4, "");
button4.setVisibility(0);
nfK nfk3 = this.i;
if (nfk3 != null) {
Button button5 = nfk3.c;
C14957gcv.c(button5, "");
Button button6 = button5;
C14957gcv.e(button6, "");
button6.setVisibility(0);
} else {
throw new IllegalArgumentException("Required value was null.".toString());
}
} else {
throw new IllegalArgumentException("Required value was null.".toString());
}
} else {
throw new IllegalArgumentException("Required value was null.".toString());
}
} else {
nfK nfk4 = this.i;
if (nfk4 != null) {
Button button7 = nfk4.l;
C14957gcv.c(button7, "");
Button button8 = button7;
C14957gcv.e(button8, "");
button8.setVisibility(0);
nfK nfk5 = this.i;
if (nfk5 != null) {
Button button9 = nfk5.b;
C14957gcv.c(button9, "");
Button button10 = button9;
C14957gcv.e(button10, "");
button10.setVisibility(8);
nfK nfk6 = this.i;
if (nfk6 != null) {
Button button11 = nfk6.c;
C14957gcv.c(button11, "");
Button button12 = button11;
C14957gcv.e(button12, "");
button12.setVisibility(8);
} else {
throw new IllegalArgumentException("Required value was null.".toString());
}
} else {
throw new IllegalArgumentException("Required value was null.".toString());
}
} else {
throw new IllegalArgumentException("Required value was null.".toString());
}
}
c(false);
}
@Override // o.InterfaceC9010dbe.SWS
public final void e(JF jf) {
C14957gcv.e(jf, "");
SharingMomentsPreviewActivity.e(getContext(), jf);
}
/* loaded from: classes5.dex */
static final class vUG extends AbstractC14961gcz implements InterfaceC14890gbN<C14866gag> {
private FastPaySuccessFragment b;
@Override // o.InterfaceC14890gbN
public final /* synthetic */ C14866gag invoke() {
this.b.m = true;
this.b.c(true);
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
vUG(FastPaySuccessFragment fastPaySuccessFragment) {
super(0);
this.b = fastPaySuccessFragment;
}
}
/* loaded from: classes5.dex */
static final class NHB extends AbstractC14961gcz implements InterfaceC14890gbN<C14866gag> {
private FastPaySuccessFragment c;
@Override // o.InterfaceC14890gbN
public final /* synthetic */ C14866gag invoke() {
this.c.m = true;
this.c.c(true);
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
NHB(FastPaySuccessFragment fastPaySuccessFragment) {
super(0);
this.c = fastPaySuccessFragment;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes5.dex */
public static final class saX extends AbstractC14961gcz implements InterfaceC14890gbN<C14866gag> {
private FastPaySuccessFragment b;
private boolean d;
@Override // o.InterfaceC14890gbN
public final /* synthetic */ C14866gag invoke() {
FastPaySuccessFragment fastPaySuccessFragment = this.b;
boolean z = this.d;
if (!fastPaySuccessFragment.isDetached() && fastPaySuccessFragment.getContext() != null && !fastPaySuccessFragment.j) {
C1191Xp c1191Xp = fastPaySuccessFragment.f;
C1191Xp c1191Xp2 = null;
if (c1191Xp == null) {
C14957gcv.a("");
c1191Xp = null;
}
if (c1191Xp.p.at == null) {
fastPaySuccessFragment.j = !z;
C12944fLv c12944fLv = fastPaySuccessFragment.successScreenshotHelper;
if (c12944fLv == null) {
C14957gcv.a("");
c12944fLv = null;
}
C1191Xp c1191Xp3 = fastPaySuccessFragment.f;
if (c1191Xp3 == null) {
C14957gcv.a("");
} else {
c1191Xp2 = c1191Xp3;
}
AbstractC13163fSk<Uri> d = c12944fLv.d(c1191Xp2, fastPaySuccessFragment.getContext(), true, z, false);
final LWm lWm = new LWm(fastPaySuccessFragment);
fSQ<? super Uri> fsq = new fSQ(lWm) { // from class: o.eZb
private InterfaceC14894gbR c;
@Override // o.fSQ
public final void c(Object obj) {
FastPaySuccessFragment.e(this.c, obj);
}
{
this.c = lWm;
}
};
final Sts sts = new Sts(fastPaySuccessFragment);
fastPaySuccessFragment.c.e(d.subscribe(fsq, new fSQ(sts) { // from class: o.eYX
private InterfaceC14894gbR b;
@Override // o.fSQ
public final void c(Object obj) {
FastPaySuccessFragment.c(this.b, obj);
}
{
this.b = sts;
}
}));
}
}
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
saX(FastPaySuccessFragment fastPaySuccessFragment, boolean z) {
super(0);
this.b = fastPaySuccessFragment;
this.d = z;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes5.dex */
public final /* synthetic */ class jbe extends C14954gcs implements InterfaceC14894gbR<InterfaceC15577gud, C14866gag> {
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(InterfaceC15577gud interfaceC15577gud) {
InterfaceC15577gud interfaceC15577gud2 = interfaceC15577gud;
C14957gcv.e(interfaceC15577gud2, "");
FastPaySuccessFragment.a((FastPaySuccessFragment) this.f, interfaceC15577gud2);
return C14866gag.c;
}
jbe(Object obj) {
super(1, obj, FastPaySuccessFragment.class, "showRationalePermissionDialog", "showRationalePermissionDialog(Lpermissions/dispatcher/PermissionRequest;)V");
}
}
/* loaded from: classes5.dex */
static final class dAO extends AbstractC14961gcz implements InterfaceC14890gbN<C14866gag> {
private FastPaySuccessFragment b;
@Override // o.InterfaceC14890gbN
public final /* synthetic */ C14866gag invoke() {
cNJ cnj = this.b.successPresenter;
C1191Xp c1191Xp = null;
if (cnj == null) {
C14957gcv.a("");
cnj = null;
}
C1191Xp c1191Xp2 = this.b.f;
if (c1191Xp2 == null) {
C14957gcv.a("");
} else {
c1191Xp = c1191Xp2;
}
cnj.b(c1191Xp);
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
dAO(FastPaySuccessFragment fastPaySuccessFragment) {
super(0);
this.b = fastPaySuccessFragment;
}
}
@Override // o.InterfaceC9010dbe.SWS
public final void k() {
c("billpay_slip", new pug("button", "share_moment"));
}
/* loaded from: classes5.dex */
static final class mxa extends AbstractC14961gcz implements InterfaceC14890gbN<C14866gag> {
private FastPaySuccessFragment c;
@Override // o.InterfaceC14890gbN
public final /* synthetic */ C14866gag invoke() {
FastPaySuccessFragment.b(this.c);
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
mxa(FastPaySuccessFragment fastPaySuccessFragment) {
super(0);
this.c = fastPaySuccessFragment;
}
}
/* loaded from: classes5.dex */
static final class Plv extends AbstractC14961gcz implements InterfaceC14890gbN<C14866gag> {
private FastPaySuccessFragment a;
@Override // o.InterfaceC14890gbN
public final /* synthetic */ C14866gag invoke() {
FastPaySuccessFragment.b(this.a);
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
Plv(FastPaySuccessFragment fastPaySuccessFragment) {
super(0);
this.a = fastPaySuccessFragment;
}
}
/* loaded from: classes5.dex */
static final class ZnX extends AbstractC14961gcz implements InterfaceC14890gbN<C14866gag> {
private XPZ c;
@Override // o.InterfaceC14890gbN
public final /* synthetic */ C14866gag invoke() {
if (this.c.e.getVisibility() == 8) {
fJM.e(this.c.e);
} else {
fJM.d(this.c.e);
}
fJM.b(this.c.d);
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
ZnX(XPZ xpz) {
super(0);
this.c = xpz;
}
}
@Override // android.view.ViewTreeObserver.OnGlobalLayoutListener
public final void onGlobalLayout() {
nfK nfk = this.i;
if (nfk != null) {
nfk.n.getViewTreeObserver().removeOnGlobalLayoutListener(this);
return;
}
throw new IllegalArgumentException("Required value was null.".toString());
}
/* loaded from: classes5.dex */
static final class tOB extends AbstractC14961gcz implements InterfaceC14890gbN<C14866gag> {
private FastPaySuccessFragment a;
@Override // o.InterfaceC14890gbN
public final /* synthetic */ C14866gag invoke() {
RelativeLayout relativeLayout = FastPaySuccessFragment.c(this.a).n;
FastPaySuccessFragment fastPaySuccessFragment = this.a;
relativeLayout.removeView(FastPaySuccessFragment.c(fastPaySuccessFragment).f9225o);
relativeLayout.removeView(FastPaySuccessFragment.c(fastPaySuccessFragment).h);
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
tOB(FastPaySuccessFragment fastPaySuccessFragment) {
super(0);
this.a = fastPaySuccessFragment;
}
}
@Override // o.fHN
public final void s() {
if (getContext() != null) {
cNJ cnj = this.successPresenter;
if (cnj == null) {
C14957gcv.a("");
cnj = null;
}
cnj.a();
}
}
/* loaded from: classes5.dex */
public static final class RVV {
private RVV() {
}
public /* synthetic */ RVV(byte b) {
this();
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes5.dex */
public final /* synthetic */ class ZqN extends C14954gcs implements InterfaceC14890gbN<C14866gag> {
@Override // o.InterfaceC14890gbN
public final /* synthetic */ C14866gag invoke() {
FastPaySuccessFragment.z();
return C14866gag.c;
}
ZqN(Object obj) {
super(0, obj, FastPaySuccessFragment.class, "onPermissionDenied", "onPermissionDenied()V");
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes5.dex */
public final /* synthetic */ class ojQ extends C14954gcs implements InterfaceC14890gbN<C14866gag> {
@Override // o.InterfaceC14890gbN
public final /* synthetic */ C14866gag invoke() {
FastPaySuccessFragment.w();
return C14866gag.c;
}
ojQ(Object obj) {
super(0, obj, FastPaySuccessFragment.class, "onNeverAskAgain", "onNeverAskAgain()V");
}
}
public static /* synthetic */ void c(InterfaceC15577gud interfaceC15577gud) {
C14957gcv.e(interfaceC15577gud, "");
interfaceC15577gud.c();
}
public static /* synthetic */ void e(InterfaceC14894gbR interfaceC14894gbR, Object obj) {
C14957gcv.e(interfaceC14894gbR, "");
interfaceC14894gbR.invoke(obj);
}
public static /* synthetic */ void b(InterfaceC14894gbR interfaceC14894gbR, Object obj) {
C14957gcv.e(interfaceC14894gbR, "");
interfaceC14894gbR.invoke(obj);
}
public static /* synthetic */ void d(InterfaceC15577gud interfaceC15577gud) {
C14957gcv.e(interfaceC15577gud, "");
interfaceC15577gud.e();
}
public static /* synthetic */ void d(InterfaceC14894gbR interfaceC14894gbR, Object obj) {
C14957gcv.e(interfaceC14894gbR, "");
interfaceC14894gbR.invoke(obj);
}
public static /* synthetic */ void c(InterfaceC14894gbR interfaceC14894gbR, Object obj) {
C14957gcv.e(interfaceC14894gbR, "");
interfaceC14894gbR.invoke(obj);
}
/* JADX INFO: Access modifiers changed from: private */
public final void c(boolean z) {
String str;
if (getActivity() != null) {
if (BaseActivity.P()) {
str = "android.permission.READ_MEDIA_IMAGES";
C15582gui.b(this, new String[]{str}, new jbe(this), new ZqN(this), new ojQ(this), new saX(this, z)).e();
}
}
str = "android.permission.WRITE_EXTERNAL_STORAGE";
C15582gui.b(this, new String[]{str}, new jbe(this), new ZqN(this), new ojQ(this), new saX(this, z)).e();
}
@Override // androidx.fragment.app.Fragment
public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
C14957gcv.e(layoutInflater, "");
View inflate = layoutInflater.inflate(R.layout.2131559647, viewGroup, false);
int i = R.id.additional_recycler_view;
RecyclerView recyclerView = (RecyclerView) qeC.e(inflate, R.id.additional_recycler_view);
if (recyclerView != null) {
i = R.id.auto_save_off_donations_save_button;
Button button = (Button) qeC.e(inflate, R.id.auto_save_off_donations_save_button);
if (button != null) {
i = R.id.auto_save_off_save_button;
Button button2 = (Button) qeC.e(inflate, R.id.auto_save_off_save_button);
if (button2 != null) {
i = R.id.auto_save_off_share_button;
Button button3 = (Button) qeC.e(inflate, R.id.auto_save_off_share_button);
if (button3 != null) {
i = R.id.bill_payment_layout;
RelativeLayout relativeLayout = (RelativeLayout) qeC.e(inflate, R.id.bill_payment_layout);
if (relativeLayout != null) {
i = R.id.buttons_container;
LinearLayout linearLayout = (LinearLayout) qeC.e(inflate, R.id.buttons_container);
if (linearLayout != null) {
i = R.id.end_slip;
ImageView imageView = (ImageView) qeC.e(inflate, R.id.end_slip);
if (imageView != null) {
i = R.id.expand_icon_image_view;
ImageView imageView2 = (ImageView) qeC.e(inflate, R.id.expand_icon_image_view);
if (imageView2 != null) {
int i2 = R.id.fl_fragment_contextual_ads;
FrameLayout frameLayout = (FrameLayout) qeC.e(inflate, R.id.fl_fragment_contextual_ads);
if (frameLayout != null) {
i2 = R.id.ic_arrow_right_coachmark;
ImageView imageView3 = (ImageView) qeC.e(inflate, R.id.ic_arrow_right_coachmark);
if (imageView3 != null) {
i2 = R.id.iv_void_remark;
ImageView imageView4 = (ImageView) qeC.e(inflate, R.id.iv_void_remark);
if (imageView4 != null) {
i2 = R.id.layout_slip;
RelativeLayout relativeLayout2 = (RelativeLayout) qeC.e(inflate, R.id.layout_slip);
if (relativeLayout2 != null) {
i2 = R.id.line_black;
View e = qeC.e(inflate, R.id.line_black);
if (e != null) {
i2 = R.id.line_view;
View e2 = qeC.e(inflate, R.id.line_view);
if (e2 != null) {
i2 = R.id.ll_void_remark_container;
LinearLayout linearLayout2 = (LinearLayout) qeC.e(inflate, R.id.ll_void_remark_container);
if (linearLayout2 != null) {
i2 = R.id.overlay_qr_code_tutorial_image_view;
ImageView imageView5 = (ImageView) qeC.e(inflate, R.id.overlay_qr_code_tutorial_image_view);
if (imageView5 != null) {
i2 = R.id.qr_code_layout;
View e3 = qeC.e(inflate, R.id.qr_code_layout);
if (e3 != null) {
ImageView imageView6 = (ImageView) qeC.e(e3, R.id.expand_icon_image_view);
if (imageView6 != null) {
i = R.id.qr_code_description;
TextView textView = (TextView) qeC.e(e3, R.id.qr_code_description);
if (textView != null) {
i = R.id.qr_code_image;
ImageView imageView7 = (ImageView) qeC.e(e3, R.id.qr_code_image);
if (imageView7 != null) {
LinearLayout linearLayout3 = (LinearLayout) qeC.e(e3, R.id.qr_code_layout);
if (linearLayout3 != null) {
i = R.id.qr_code_section;
LinearLayout linearLayout4 = (LinearLayout) qeC.e(e3, R.id.qr_code_section);
if (linearLayout4 != null) {
TextView textView2 = (TextView) qeC.e(e3, R.id.qr_code_section_header);
if (textView2 != null) {
TextView textView3 = (TextView) qeC.e(e3, R.id.reference_id_text_view);
if (textView3 != null) {
XPZ xpz = new XPZ((LinearLayout) e3, imageView6, textView, imageView7, linearLayout3, linearLayout4, textView2, textView3);
TextView textView4 = (TextView) qeC.e(inflate, R.id.qr_code_section_coachmark_description);
if (textView4 != null) {
TextView textView5 = (TextView) qeC.e(inflate, R.id.qr_code_section_coachmark_header);
if (textView5 != null) {
RelativeLayout relativeLayout3 = (RelativeLayout) qeC.e(inflate, R.id.qr_code_section_relative_layout);
if (relativeLayout3 != null) {
TextView textView6 = (TextView) qeC.e(inflate, R.id.return_button);
if (textView6 != null) {
RelativeLayout relativeLayout4 = (RelativeLayout) inflate;
Button button4 = (Button) qeC.e(inflate, R.id.share_button);
if (button4 != null) {
Button button5 = (Button) qeC.e(inflate, R.id.share_moment_button);
if (button5 != null) {
TextView textView7 = (TextView) qeC.e(inflate, R.id.tv_void_remark_description);
if (textView7 != null) {
TextView textView8 = (TextView) qeC.e(inflate, R.id.tv_void_remark_title);
if (textView8 != null) {
nfK nfk = new nfK(relativeLayout4, recyclerView, button, button2, button3, relativeLayout, linearLayout, imageView, imageView2, frameLayout, imageView3, imageView4, relativeLayout2, e, e2, linearLayout2, imageView5, xpz, textView4, textView5, relativeLayout3, textView6, relativeLayout4, button4, button5, textView7, textView8);
this.i = nfk;
RelativeLayout relativeLayout5 = nfk.n;
C14957gcv.c(relativeLayout5, "");
return relativeLayout5;
}
i = R.id.tv_void_remark_title;
} else {
i = R.id.tv_void_remark_description;
}
} else {
i = R.id.share_moment_button;
}
} else {
i = R.id.share_button;
}
} else {
i = R.id.return_button;
}
} else {
i = R.id.qr_code_section_relative_layout;
}
} else {
i = R.id.qr_code_section_coachmark_header;
}
} else {
i = R.id.qr_code_section_coachmark_description;
}
throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i)));
}
i = R.id.reference_id_text_view;
} else {
i = R.id.qr_code_section_header;
}
}
} else {
i = R.id.qr_code_layout;
}
throw new NullPointerException("Missing required view with ID: ".concat(e3.getResources().getResourceName(i)));
}
}
}
throw new NullPointerException("Missing required view with ID: ".concat(e3.getResources().getResourceName(i)));
}
}
}
}
}
}
}
}
}
i = i2;
throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i)));
}
}
}
}
}
}
}
}
throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i)));
}
@Override // o.InterfaceC9010dbe.SWS
public final void m() {
C12944fLv c12944fLv;
C1191Xp c1191Xp;
C1191Xp c1191Xp2 = null;
if (!isDetached() && getContext() != null) {
C12944fLv c12944fLv2 = this.successScreenshotHelper;
if (c12944fLv2 != null) {
c12944fLv = c12944fLv2;
} else {
C14957gcv.a("");
c12944fLv = null;
}
C1191Xp c1191Xp3 = this.f;
if (c1191Xp3 == null) {
C14957gcv.a("");
c1191Xp = null;
} else {
c1191Xp = c1191Xp3;
}
AbstractC13163fSk<Uri> d2 = c12944fLv.d(c1191Xp, getContext(), this.h, false, false);
final IeS ieS = new IeS(this);
fSQ<? super Uri> fsq = new fSQ(ieS) { // from class: o.eYZ
private InterfaceC14894gbR e;
@Override // o.fSQ
public final void c(Object obj) {
FastPaySuccessFragment.b(this.e, obj);
}
{
this.e = ieS;
}
};
final HBt hBt = new HBt(this);
this.c.e(d2.subscribe(fsq, new fSQ(hBt) { // from class: o.eYY
private InterfaceC14894gbR a;
@Override // o.fSQ
public final void c(Object obj) {
FastPaySuccessFragment.d(this.a, obj);
}
{
this.a = hBt;
}
}));
}
this.h = false;
this.m = false;
nfK nfk = this.i;
if (nfk != null) {
Button button = nfk.l;
C14957gcv.c(button, "");
Button button2 = button;
C14957gcv.e(button2, "");
button2.setVisibility(8);
nfK nfk2 = this.i;
if (nfk2 != null) {
Button button3 = nfk2.c;
C14957gcv.c(button3, "");
Button button4 = button3;
C14957gcv.e(button4, "");
button4.setVisibility(0);
C1191Xp c1191Xp4 = this.f;
if (c1191Xp4 == null) {
C14957gcv.a("");
} else {
c1191Xp2 = c1191Xp4;
}
if (c1191Xp2.m) {
nfK nfk3 = this.i;
if (nfk3 != null) {
Button button5 = nfk3.m;
C14957gcv.c(button5, "");
Button button6 = button5;
C14957gcv.e(button6, "");
button6.setVisibility(0);
nfK nfk4 = this.i;
if (nfk4 != null) {
Button button7 = nfk4.d;
C14957gcv.c(button7, "");
Button button8 = button7;
C14957gcv.e(button8, "");
button8.setVisibility(0);
return;
}
throw new IllegalArgumentException("Required value was null.".toString());
}
throw new IllegalArgumentException("Required value was null.".toString());
}
nfK nfk5 = this.i;
if (nfk5 != null) {
Button button9 = nfk5.b;
C14957gcv.c(button9, "");
Button button10 = button9;
C14957gcv.e(button10, "");
button10.setVisibility(0);
return;
}
throw new IllegalArgumentException("Required value was null.".toString());
}
throw new IllegalArgumentException("Required value was null.".toString());
}
throw new IllegalArgumentException("Required value was null.".toString());
}
@Override // o.InterfaceC9010dbe.SWS
public final void c(String str) {
C14957gcv.e(str, "");
}
@Override // o.InterfaceC9010dbe.SWS
public final void c(C0693Mj c0693Mj) {
C14957gcv.e(c0693Mj, "");
}
}