what-the-bank/sources/com/scb/phone/view/fragment/chubb/ChubbPaySuccessFragment.java

711 lines
27 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.fragment.chubb;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.PorterDuff;
import android.net.Uri;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewTreeObserver;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.core.view.ViewCompat;
import androidx.fragment.app.FragmentActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import butterknife.Optional;
import butterknife.Unbinder;
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.deeplink.PartnerSuccessRedirectActivity;
import com.scb.phone.view.activity.donations.SharingMomentsPreviewActivity;
import com.scb.phone.view.activity.prelogin.QuickOperationSuccessActivity;
import com.scb.phone.view.adapter.chubb.PaymentInfoAdapter;
import com.scb.phone.view.custom.common.CustomDialog;
import com.scb.phone.view.custom.transferandpay.CustomNoteItem;
import com.scb.phone.view.custom.transferandpay.CustomTransferAndPayItem;
import com.scb.phone.view.custom.transferandpay.CustomTransferAndPaySource;
import com.scb.phone.view.custom.transferandpay.CustomTransferAndPayTarget;
import com.scb.phone.view.fragment.chubb.ChubbPaySuccessFragment;
import java.util.List;
import o.AbstractC13163fSk;
import o.C0375Fe;
import o.C0506Ie;
import o.C0693Mj;
import o.C10736eNa;
import o.C10742eNg;
import o.C1168Xb;
import o.C1185Xl;
import o.C1189Xo;
import o.C1191Xp;
import o.C1192Xq;
import o.C13417fZt;
import o.C14957gcv;
import o.C6204cLu;
import o.C6583cXR;
import o.EZ;
import o.EnumC8951daY;
import o.InterfaceC13391fZD;
import o.InterfaceC15577gud;
import o.InterfaceC9012dbg;
import o.JF;
import o.XL;
import o.cNJ;
import o.eMZ;
import o.fHN;
import o.fKR;
import o.fKY;
import o.fRR;
import o.fSJ;
import o.guQ;
import o.nMh;
import o.pug;
import o.pyT;
import org.jmrtd.lds.ImageInfo;
/* loaded from: classes5.dex */
public class ChubbPaySuccessFragment extends Hilt_ChubbPaySuccessFragment implements InterfaceC9012dbg, ViewTreeObserver.OnGlobalLayoutListener, fHN {
@BindView
Button autoSaveOffDonationsSaveButton;
@BindView
Button autoSaveOffSaveButton;
@BindView
Button autoSaveOffShareButton;
@BindView
LinearLayout billLinearLayout;
@BindView
RelativeLayout billPaymentRelativeLayout;
private fSJ c;
@BindView
TextView coachmarkQRCodeSectionDescription;
@BindView
TextView coachmarkQRCodeSectionHeader;
private Uri d;
@BindView
protected LinearLayout deeplinkCallbackButtonLayout;
@BindView
ImageView endSlipImage;
@BindView
ImageView expandIcon;
private boolean h;
private C0506Ie i;
private boolean j = false;
@BindView
View lineBlackView;
@BindView
View lineView;
@BindView
ImageView mOverlayQRCodeSectionCoachmarkImageView;
@BindView
RelativeLayout mQRCodeSectionCoachmarkContainer;
@BindView
TextView mRemainingBalanceTextView;
@BindView
RelativeLayout mRootView;
@BindView
TextView qrCodeDescriptionTextView;
@BindView
ImageView qrCodeImageView;
@BindView
LinearLayout qrCodeLayout;
@BindView
TextView qrCodeSectionHeaderTextView;
@BindView
LinearLayout qrCodeSectionView;
@BindView
RecyclerView recyclerViewChubb;
@BindView
TextView refIdTextView;
@BindView
TextView returnTextView;
@BindView
Button shareButton;
@BindView
Button shareMomentButton;
@BindView
RelativeLayout slipRelativeLayout;
@InterfaceC13391fZD
public cNJ successPresenter;
@InterfaceC13391fZD
public C6204cLu themesSlipPresenter;
@Override // o.InterfaceC9010dbe.SWS
public final void c(String str) {
}
@Override // o.InterfaceC9010dbe.SWS
public final void c(List<C0375Fe> list) {
}
@Override // o.InterfaceC9010dbe.SWS
public final void c(C0693Mj c0693Mj) {
}
@Override // o.InterfaceC9010dbe.SWS
public final void e(String str, String str2, String str3) {
}
/* loaded from: classes5.dex */
public class ChubbScreenshot_ViewBinding implements Unbinder {
private ChubbScreenshot b;
public ChubbScreenshot_ViewBinding(ChubbScreenshot chubbScreenshot, View view) {
this.b = chubbScreenshot;
chubbScreenshot.textTitle = (TextView) pyT.e(view, R.id.text_title, "field 'textTitle'", TextView.class);
chubbScreenshot.textDateTime = (TextView) pyT.e(view, R.id.text_date_time, "field 'textDateTime'", TextView.class);
chubbScreenshot.textReferenceId = (TextView) pyT.e(view, R.id.text_reference_id, "field 'textReferenceId'", TextView.class);
chubbScreenshot.successIcon = (ImageView) pyT.e(view, R.id.success_icon, "field 'successIcon'", ImageView.class);
chubbScreenshot.customSource = (CustomTransferAndPaySource) pyT.e(view, R.id.transfer_and_pay_source, "field 'customSource'", CustomTransferAndPaySource.class);
chubbScreenshot.customTarget = (CustomTransferAndPayTarget) pyT.e(view, R.id.transfer_and_pay_target, "field 'customTarget'", CustomTransferAndPayTarget.class);
chubbScreenshot.customAmount = (CustomTransferAndPayItem) pyT.e(view, R.id.transfer_and_pay_amount, "field 'customAmount'", CustomTransferAndPayItem.class);
chubbScreenshot.customFees = (CustomTransferAndPayItem) pyT.e(view, R.id.transfer_and_pay_fees, "field 'customFees'", CustomTransferAndPayItem.class);
chubbScreenshot.billerNote = (CustomNoteItem) pyT.e(view, R.id.transfer_and_pay_biller_note, "field 'billerNote'", CustomNoteItem.class);
chubbScreenshot.userNote = (CustomNoteItem) pyT.e(view, R.id.transfer_and_pay_user_note, "field 'userNote'", CustomNoteItem.class);
chubbScreenshot.fullDivider = pyT.a(view, R.id.full_divider, "field 'fullDivider'");
chubbScreenshot.recyclerViewChubb = (RecyclerView) pyT.e(view, R.id.recycler_view_chubb, "field 'recyclerViewChubb'", RecyclerView.class);
}
@Override // butterknife.Unbinder
public final void a() {
ChubbScreenshot chubbScreenshot = this.b;
if (chubbScreenshot == null) {
throw new IllegalStateException("Bindings already cleared.");
}
this.b = null;
chubbScreenshot.textTitle = null;
chubbScreenshot.textDateTime = null;
chubbScreenshot.textReferenceId = null;
chubbScreenshot.successIcon = null;
chubbScreenshot.customSource = null;
chubbScreenshot.customTarget = null;
chubbScreenshot.customAmount = null;
chubbScreenshot.customFees = null;
chubbScreenshot.billerNote = null;
chubbScreenshot.userNote = null;
chubbScreenshot.fullDivider = null;
chubbScreenshot.recyclerViewChubb = null;
}
}
public static ChubbPaySuccessFragment a(C0506Ie c0506Ie) {
Bundle bundle = new Bundle();
bundle.putParcelable("com.scb.phone.EXTRA_SUCCESS", c0506Ie);
ChubbPaySuccessFragment chubbPaySuccessFragment = new ChubbPaySuccessFragment();
chubbPaySuccessFragment.setArguments(bundle);
return chubbPaySuccessFragment;
}
@Override // androidx.fragment.app.Fragment
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
List<XL> list;
View inflate = layoutInflater.inflate(R.layout.2131559504, viewGroup, false);
Bundle arguments = getArguments();
if (arguments != null) {
this.i = (C0506Ie) arguments.getParcelable("com.scb.phone.EXTRA_SUCCESS");
this.successPresenter.e((cNJ) this);
C0506Ie c0506Ie = this.i;
super.a(c0506Ie, inflate, getContext());
this.successPresenter.c(c0506Ie);
C1192Xq c1192Xq = this.i.b;
List<XL> list2 = null;
if (c1192Xq == null) {
C14957gcv.a("");
c1192Xq = null;
}
CustomTransferAndPayTarget customTransferAndPayTarget = this.customTarget;
customTransferAndPayTarget.mFavouriteIcon.setVisibility(8);
customTransferAndPayTarget.mFavouriteName.setVisibility(8);
Context context = getContext();
RecyclerView recyclerView = this.recyclerViewChubb;
List<XL> list3 = c1192Xq.g;
if (list3 != null) {
list = list3;
} else {
C14957gcv.a("");
list = null;
}
e(context, recyclerView, list, this, true);
this.mRemainingBalanceTextView.setText(String.format(getString(R.string.remaining_balance), getString(R.string.bill_payment_remaining_limit).toLowerCase(), this.i.t));
if (this.i.e != null && !this.i.e.isEmpty()) {
for (C1185Xl c1185Xl : this.i.e) {
Button button = (Button) getLayoutInflater().inflate(R.layout.2131558928, (ViewGroup) null);
button.setText(c1185Xl.b);
button.setOnClickListener(new View.OnClickListener(this, c1185Xl) { // from class: o.eMX
private ChubbPaySuccessFragment d;
private C1185Xl e;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
r2.startActivity(PartnerSuccessRedirectActivity.adw_(this.d.getContext(), this.e));
}
{
this.d = this;
this.e = c1185Xl;
}
});
this.deeplinkCallbackButtonLayout.addView(button);
}
}
if (getActivity() != null) {
List<XL> list4 = c1192Xq.g;
if (list4 != null) {
list2 = list4;
} else {
C14957gcv.a("");
}
if (b(list2)) {
this.endSlipImage.setBackgroundColor(nMh.getColor(getActivity(), R.color.f14042131100912));
}
}
}
return inflate;
}
@Override // com.scb.phone.view.fragment.transferandpay.BaseSuccessFragment
public final void a(C1191Xp c1191Xp, View view, Context context) {
super.a(c1191Xp, view, context);
this.successPresenter.c(c1191Xp);
}
@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 // o.InterfaceC9010dbe.SWS
public final void r() {
this.customTarget.setAddFavoriteButtonVisible(true);
}
@Override // o.InterfaceC9010dbe.SWS
public final void a(String str) {
this.customTarget.setFavoriteName(str);
}
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
public void onDestroy() {
cNJ cnj = this.successPresenter;
if (cnj != null) {
cnj.w_();
}
fSJ fsj = this.c;
if (fsj != null) {
fsj.dispose();
}
super.onDestroy();
}
@Override // androidx.fragment.app.Fragment
public void onRequestPermissionsResult(int i, String[] strArr, int[] iArr) {
super.onRequestPermissionsResult(i, strArr, iArr);
C10742eNg.c(this, i, iArr);
}
public final void a(boolean z) {
Context context = getContext();
if (isDetached() || context == null || this.h) {
return;
}
this.h = true;
this.c = AbstractC13163fSk.fromCallable(new fKY(new IeS(this), new ChubbScreenshot(this, String.format("TXN_%s", this.i.r), this.i, this, z, false), getContext())).observeOn(fRR.e()).subscribeOn(C13417fZt.b()).subscribe(new C10736eNa(this), new eMZ(this));
}
public static void B() {
guQ.b("onPermissionDenied", new Object[0]);
}
public final void e(InterfaceC15577gud interfaceC15577gud) {
guQ.b("onShowRationale", new Object[0]);
((CustomDialog) CustomDialog.e(new Object[]{CustomDialog.b(getContext()).c(R.string.permission_storage_title).d(R.string.permission_storage).aoT_(R.string.permission_allow, new DialogInterface.OnClickListener(interfaceC15577gud) { // from class: o.eNb
private InterfaceC15577gud d;
@Override // android.content.DialogInterface.OnClickListener
public final void onClick(DialogInterface dialogInterface, int i) {
this.d.c();
}
{
this.d = interfaceC15577gud;
}
}), Integer.valueOf(R.string.permission_deny), new DialogInterface.OnClickListener(interfaceC15577gud) { // from class: o.eNc
private InterfaceC15577gud e;
@Override // android.content.DialogInterface.OnClickListener
public final void onClick(DialogInterface dialogInterface, int i) {
this.e.e();
}
{
this.e = interfaceC15577gud;
}
}})).show();
}
public static void z() {
guQ.b("onPermissionDeniedAndroid13", new Object[0]);
}
@OnClick
@Optional
public void onShareButtonClick() {
Uri uri = this.d;
if (uri == null || uri.toString().isEmpty()) {
EnumC8951daY enumC8951daY = EnumC8951daY.ERROR;
FragmentActivity activity = getActivity();
if (activity != null) {
String string = getString(R.string.share_error);
if (getActivity() != null) {
BaseActivity.a(new Object[]{(BaseActivity) getActivity(), activity, Integer.valueOf(R.id.success_view_container), string, enumC8951daY}, 855668825, -855668822, R.id.success_view_container);
return;
}
return;
}
return;
}
if (getActivity() instanceof BaseActivity) {
((BaseActivity) getActivity()).scbAnalytics.c("share_slip_action");
}
Intent intent = new Intent("android.intent.action.SEND");
intent.setType(ImageInfo.JPEG_MIME_TYPE);
intent.addFlags(1);
intent.putExtra("android.intent.extra.STREAM", this.d);
startActivity(Intent.createChooser(intent, getString(R.string.share_slip)));
}
@OnClick
@Optional
public void onReturnHomeClick() {
if (getActivity() != null) {
getActivity().finishAffinity();
}
HomeActivity.c(getContext(), true);
}
public static void w() {
guQ.b("onNeverAskAgain", new Object[0]);
}
public static void C() {
guQ.b("onNeverAskAgainAndroid13", new Object[0]);
}
@Override // o.InterfaceC9010dbe.SWS
public final void e(JF jf) {
SharingMomentsPreviewActivity.e(getContext(), jf);
}
@OnClick
public void saveSlipButton() {
this.j = true;
e(true);
}
@OnClick
public void saveSlipDonationsButton() {
this.j = true;
e(true);
}
@OnClick
public void setShareMomentButton() {
this.successPresenter.b(this.i);
}
@Override // o.InterfaceC9010dbe.SWS
public final void k() {
c("billpay_slip", new pug("button", "share_moment"));
}
@OnClick
public void shareSlipButton() {
onShareButtonClick();
}
@Override // android.view.ViewTreeObserver.OnGlobalLayoutListener
public void onGlobalLayout() {
this.mRootView.getViewTreeObserver().removeOnGlobalLayoutListener(this);
}
@Override // o.fHN
public final void s() {
if (getContext() != null) {
this.successPresenter.a();
}
}
@OnClick
public void closeTutorial() {
this.mRootView.removeView(this.mQRCodeSectionCoachmarkContainer);
this.mRootView.removeView(this.mOverlayQRCodeSectionCoachmarkImageView);
}
/* loaded from: classes5.dex */
public class ChubbScreenshot extends EZ {
@BindView
CustomNoteItem billerNote;
fHN c;
@BindView
CustomTransferAndPayItem customAmount;
@BindView
CustomTransferAndPayItem customFees;
@BindView
CustomTransferAndPaySource customSource;
@BindView
CustomTransferAndPayTarget customTarget;
C0506Ie d;
final ChubbPaySuccessFragment f;
@BindView
View fullDivider;
@BindView
RecyclerView recyclerViewChubb;
@BindView
ImageView successIcon;
@BindView
TextView textDateTime;
@BindView
TextView textReferenceId;
@BindView
TextView textTitle;
@BindView
CustomNoteItem userNote;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public ChubbScreenshot(ChubbPaySuccessFragment chubbPaySuccessFragment, String str, C0506Ie c0506Ie, fHN fhn, boolean z, boolean z2) {
super(R.layout.2131560072, str, z2, z);
this.f = chubbPaySuccessFragment;
this.d = c0506Ie;
this.c = fhn;
}
}
/* loaded from: classes5.dex */
public class IeS extends fKR<ChubbScreenshot> {
private ChubbPaySuccessFragment a;
@Override // o.fKR
public final /* synthetic */ void b(ChubbScreenshot chubbScreenshot, View view) {
ChubbScreenshot chubbScreenshot2 = chubbScreenshot;
ButterKnife.c(chubbScreenshot2, view);
chubbScreenshot2.successIcon.getDrawable().mutate().setColorFilter(nMh.getColor(chubbScreenshot2.f.requireContext(), R.color.f3432131099851), PorterDuff.Mode.SRC_ATOP);
chubbScreenshot2.textTitle.setText(chubbScreenshot2.d.s);
chubbScreenshot2.textDateTime.setText(chubbScreenshot2.d.f);
chubbScreenshot2.textReferenceId.setText(chubbScreenshot2.d.r);
chubbScreenshot2.customAmount.amountInfo.setVisibility(8);
chubbScreenshot2.fullDivider.setVisibility(8);
C1192Xq c1192Xq = chubbScreenshot2.d.b;
List<XL> list = null;
if (c1192Xq == null) {
C14957gcv.a("");
c1192Xq = null;
}
C1189Xo c1189Xo = chubbScreenshot2.d.p;
chubbScreenshot2.customSource.setAvatar(c1189Xo.Q.toString());
chubbScreenshot2.customSource.setSourceName(c1189Xo.b());
chubbScreenshot2.customSource.setAccountNumber(c1189Xo.d());
chubbScreenshot2.customSource.setDivider(false);
chubbScreenshot2.customTarget.setTargetName(c1189Xo.e());
chubbScreenshot2.customTarget.setAvatar(C6583cXR.VS_(chubbScreenshot2.f.getContext(), R.drawable.biller_place_holder).toString());
if (!TextUtils.isEmpty(c1189Xo.x)) {
chubbScreenshot2.customTarget.setBillerAvatar(c1189Xo.x);
} else {
chubbScreenshot2.customTarget.setBillerAvatar(c1189Xo.l);
}
CustomTransferAndPayTarget customTransferAndPayTarget = chubbScreenshot2.customTarget;
customTransferAndPayTarget.mFavouriteIcon.setVisibility(8);
customTransferAndPayTarget.mFavouriteName.setVisibility(8);
chubbScreenshot2.customTarget.setReferenceNumbers(c1189Xo.t);
chubbScreenshot2.customTarget.setFullDivider(true);
chubbScreenshot2.customAmount.setValue(c1189Xo.j.c);
CustomTransferAndPayItem customTransferAndPayItem = chubbScreenshot2.customAmount;
C1168Xb c1168Xb = c1189Xo.j;
customTransferAndPayItem.amountInfo.setVisibility(0);
customTransferAndPayItem.amountInfo.setValues(c1168Xb);
if (TextUtils.isEmpty(c1189Xo.m()) || c1189Xo.m().equals("0.00")) {
chubbScreenshot2.customFees.setVisibility(8);
chubbScreenshot2.customAmount.mDividerView.setVisibility(TextUtils.isEmpty(c1189Xo.aH) ^ true ? 0 : 8);
chubbScreenshot2.customAmount.mBottomSpace.setVisibility(8);
chubbScreenshot2.customAmount.setFullDivider(true);
} else {
chubbScreenshot2.customFees.setValue(c1189Xo.m());
chubbScreenshot2.customFees.mTopSpace.setVisibility(8);
chubbScreenshot2.customFees.setFullDivider(true);
}
Context context = chubbScreenshot2.f.getContext();
if (TextUtils.isEmpty(c1189Xo.O)) {
chubbScreenshot2.billerNote.setVisibility(8);
if ((chubbScreenshot2.f.getActivity() instanceof QuickOperationSuccessActivity) || TextUtils.isEmpty(c1189Xo.aH)) {
chubbScreenshot2.customFees.mDividerView.setVisibility(8);
}
} else {
chubbScreenshot2.billerNote.setTitle(context.getString(R.string.review_biller_note));
chubbScreenshot2.billerNote.setText(c1189Xo.O);
chubbScreenshot2.billerNote.setVisibility(0);
if ((chubbScreenshot2.f.getActivity() instanceof QuickOperationSuccessActivity) || TextUtils.isEmpty(c1189Xo.aH)) {
chubbScreenshot2.billerNote.divider.setVisibility(8);
}
}
Context context2 = chubbScreenshot2.f.getContext();
if (!TextUtils.isEmpty(c1189Xo.aH)) {
chubbScreenshot2.userNote.setTitle(context2.getString(R.string.request_to_pay_incoming_note));
chubbScreenshot2.userNote.setText(c1189Xo.aH);
chubbScreenshot2.userNote.divider.setVisibility(8);
} else {
chubbScreenshot2.userNote.setVisibility(8);
}
RecyclerView recyclerView = chubbScreenshot2.recyclerViewChubb;
chubbScreenshot2.f.getContext();
recyclerView.setLayoutManager(new LinearLayoutManager());
ViewCompat.d((View) chubbScreenshot2.recyclerViewChubb, false);
PaymentInfoAdapter paymentInfoAdapter = new PaymentInfoAdapter(chubbScreenshot2.f.getContext(), chubbScreenshot2.c, true);
chubbScreenshot2.recyclerViewChubb.setAdapter(paymentInfoAdapter);
List<XL> list2 = c1192Xq.g;
if (list2 != null) {
list = list2;
} else {
C14957gcv.a("");
}
paymentInfoAdapter.a = true;
paymentInfoAdapter.d = list;
paymentInfoAdapter.notifyDataSetChanged();
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public IeS(ChubbPaySuccessFragment chubbPaySuccessFragment) {
super(chubbPaySuccessFragment.themesSlipPresenter);
this.a = chubbPaySuccessFragment;
}
}
public static /* synthetic */ void a(ChubbPaySuccessFragment chubbPaySuccessFragment, Throwable th) {
guQ.a(th, "onSaveScreenshotError", new Object[0]);
FragmentActivity activity = chubbPaySuccessFragment.getActivity();
if (chubbPaySuccessFragment.isDetached() || activity == null) {
return;
}
EnumC8951daY enumC8951daY = EnumC8951daY.ERROR;
FragmentActivity activity2 = chubbPaySuccessFragment.getActivity();
if (activity2 != null) {
String string = chubbPaySuccessFragment.getString(R.string.saved_slip_error);
if (chubbPaySuccessFragment.getActivity() != null) {
BaseActivity.a(new Object[]{(BaseActivity) chubbPaySuccessFragment.getActivity(), activity2, Integer.valueOf(R.id.success_view_container), string, enumC8951daY}, 855668825, -855668822, R.id.success_view_container);
}
}
}
public static /* synthetic */ void ark_(ChubbPaySuccessFragment chubbPaySuccessFragment, Uri uri) {
chubbPaySuccessFragment.d = uri;
FragmentActivity activity = chubbPaySuccessFragment.getActivity();
if (uri.toString().isEmpty() || !chubbPaySuccessFragment.getUserVisibleHint() || activity == null || !chubbPaySuccessFragment.j) {
return;
}
EnumC8951daY enumC8951daY = EnumC8951daY.SUCCESS;
FragmentActivity activity2 = chubbPaySuccessFragment.getActivity();
if (activity2 != null) {
String string = chubbPaySuccessFragment.getString(R.string.saved_slip);
if (chubbPaySuccessFragment.getActivity() != null) {
BaseActivity.a(new Object[]{(BaseActivity) chubbPaySuccessFragment.getActivity(), activity2, Integer.valueOf(R.id.success_view_container), string, enumC8951daY}, 855668825, -855668822, R.id.success_view_container);
}
}
chubbPaySuccessFragment.j = false;
}
private void e(boolean z) {
if (getActivity() != null) {
if (BaseActivity.P()) {
C10742eNg.e(this, z);
return;
}
}
C10742eNg.b(this, z);
}
@Override // o.InterfaceC9010dbe.SWS
public final void m() {
Context context = getContext();
if (!isDetached() && context != null) {
this.c = AbstractC13163fSk.fromCallable(new fKY(new IeS(this), new ChubbScreenshot(this, String.format("TXN_%s", this.i.r), this.i, this, false, true), getContext())).observeOn(fRR.e()).subscribeOn(C13417fZt.b()).subscribe(new C10736eNa(this), new eMZ(this));
}
if (!this.i.m) {
this.autoSaveOffSaveButton.setVisibility(0);
this.autoSaveOffShareButton.setVisibility(0);
this.shareButton.setVisibility(8);
} else {
this.shareButton.setVisibility(8);
this.shareMomentButton.setVisibility(0);
this.autoSaveOffShareButton.setVisibility(0);
this.autoSaveOffDonationsSaveButton.setVisibility(0);
}
}
@Override // o.InterfaceC9010dbe.SWS
public final void l() {
this.j = true;
if (!this.i.m) {
this.shareButton.setVisibility(0);
this.autoSaveOffSaveButton.setVisibility(8);
this.autoSaveOffShareButton.setVisibility(8);
} else {
this.shareButton.setVisibility(8);
this.shareMomentButton.setVisibility(0);
this.autoSaveOffShareButton.setVisibility(0);
}
e(false);
}
}