正在查看: Mabilis Cash v1.19.4 应用的 PHCashboxDetailActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Mabilis Cash v1.19.4 应用的 PHCashboxDetailActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.loans.mabiliscash.business.cashbox;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import androidx.appcompat.app.AppCompatDialog;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout;
import androidx.viewbinding.ViewBinding;
import com.alibaba.android.arouter.facade.annotation.Route;
import com.bumptech.glide.Glide;
import com.fintopia.libCommon.common.CommonActivity;
import com.fintopia.libCommon.common.CommonObserver;
import com.fintopia.libCommon.widgets.dialog.CancelClickListener;
import com.fintopia.libCommon.widgets.dialog.ConfirmClickListener;
import com.fintopia.libCommon.widgets.dialog.bottom.BaseBottomSheetDialog;
import com.lingyue.supertoolkit.tools.customtools.CollectionUtils;
import com.lingyue.supertoolkit.widgets.ToastCompat;
import com.lingyue.supertoolkit.widgets.adapters.LinearVerticalDivider;
import com.loans.mabiliscash.R;
import com.loans.mabiliscash.auth.helper.AuthUtils;
import com.loans.mabiliscash.auth.living.preview.PHCashboxLiveCheckPreviewActivity;
import com.loans.mabiliscash.business.cashbox.adapter.CashboxRulesAdapter;
import com.loans.mabiliscash.common.BindClickCall;
import com.loans.mabiliscash.common.PHViewBindingActivity;
import com.loans.mabiliscash.databinding.ActivityCashboxDetailBinding;
import com.loans.mabiliscash.home.adapters.PaymentMethodAdapter;
import com.loans.mabiliscash.home.widgets.HomeBottomSheetSelectDialog;
import com.loans.mabiliscash.models.PaymentMethodInfo;
import com.loans.mabiliscash.models.TrackingEvents;
import com.loans.mabiliscash.models.response.CashboxHomeResponse;
import com.loans.mabiliscash.models.response.PHBooleanResponse;
import com.loans.mabiliscash.models.response.PaymentMethodListResponse;
import com.loans.mabiliscash.payment.PHBindPaymentMethodActivity;
import com.loans.mabiliscash.utils.FormatUtil;
import com.loans.mabiliscash.widght.PHCommonDialog;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.disposables.Disposable;
import io.reactivex.functions.Action;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.collections.CollectionsKt;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.StringCompanionObject;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@Route(path = "/app/cashbox")
@Metadata
public final class PHCashboxDetailActivity extends PHViewBindingActivity<ActivityCashboxDetailBinding> {
@NotNull
public static final Companion Companion = new Companion(null);
@Nullable
private CashboxHomeResponse.Body p;
@Nullable
private CashboxRulesAdapter r;
@Nullable
private PaymentMethodInfo f142t;
@Nullable
private PaymentMethodAdapter f143u;
@NotNull
private final List<String> q = new ArrayList();
@NotNull
private final List<PaymentMethodInfo> s = new ArrayList();
@Metadata
public static final class Companion {
public Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
public final void a(@NotNull Context context) {
Intrinsics.checkNotNullParameter(context, "context");
context.startActivity(new Intent(context, (Class<?>) PHCashboxDetailActivity.class));
}
private Companion() {
}
}
public static final void A0(AppCompatDialog appCompatDialog) {
appCompatDialog.dismiss();
}
private final void B0(BigDecimal bigDecimal, String str, String str2, final Function1<? super Boolean, Unit> function1) {
this.apiHelper.a().R(bigDecimal, str, str2).w(AndroidSchedulers.a()).j(new Action() {
public final void run() {
PHCashboxDetailActivity.C0(PHCashboxDetailActivity.this);
}
}).a(new CommonObserver<PHBooleanResponse>() {
{
super(PHCashboxDetailActivity.this);
}
public void c(PHBooleanResponse pHBooleanResponse) {
function1.invoke(Boolean.valueOf(pHBooleanResponse != null ? pHBooleanResponse.body : false));
}
public void onSubscribe(Disposable disposable) {
Intrinsics.checkNotNullParameter(disposable, "d");
super/*com.veda.android.bananalibrary.net.DefaultObserver*/.onSubscribe(disposable);
PHCashboxDetailActivity.this.showLoadingDialog();
}
});
}
public static final void C0(PHCashboxDetailActivity pHCashboxDetailActivity) {
pHCashboxDetailActivity.dismissLoadingDialog();
}
private final void D0() {
this.apiHelper.a().G0().w(AndroidSchedulers.a()).a(new CommonObserver<PaymentMethodListResponse>() {
{
super(PHCashboxDetailActivity.this);
}
protected boolean d() {
return false;
}
public void e(Throwable th, PaymentMethodListResponse paymentMethodListResponse) {
super.e(th, paymentMethodListResponse);
PHCashboxDetailActivity.this.finish();
}
public void c(PaymentMethodListResponse paymentMethodListResponse) {
List list;
List list2;
ViewBinding viewBinding;
ViewBinding viewBinding2;
PaymentMethodInfo paymentMethodInfo;
List list3;
PaymentMethodInfo paymentMethodInfo2;
List list4;
List list5;
PaymentMethodInfo paymentMethodInfo3;
ViewBinding viewBinding3;
ViewBinding viewBinding4;
ViewBinding viewBinding5;
Intrinsics.checkNotNullParameter(paymentMethodListResponse, "result");
list = PHCashboxDetailActivity.this.s;
list.clear();
list2 = PHCashboxDetailActivity.this.s;
List<PaymentMethodInfo> list6 = paymentMethodListResponse.body.paymentCredentials;
Intrinsics.checkNotNullExpressionValue(list6, "paymentCredentials");
list2.addAll(list6);
if (CollectionUtils.a(paymentMethodListResponse.body.paymentCredentials)) {
viewBinding4 = ((PHViewBindingActivity) PHCashboxDetailActivity.this).o;
((ActivityCashboxDetailBinding) viewBinding4).i.setVisibility(8);
viewBinding5 = ((PHViewBindingActivity) PHCashboxDetailActivity.this).o;
((ActivityCashboxDetailBinding) viewBinding5).h.setVisibility(8);
PHCashboxDetailActivity.this.N0(null);
return;
}
viewBinding = ((PHViewBindingActivity) PHCashboxDetailActivity.this).o;
((ActivityCashboxDetailBinding) viewBinding).i.setVisibility(0);
if (paymentMethodListResponse.body.paymentCredentials.size() == 1) {
viewBinding3 = ((PHViewBindingActivity) PHCashboxDetailActivity.this).o;
((ActivityCashboxDetailBinding) viewBinding3).h.setVisibility(8);
} else {
viewBinding2 = ((PHViewBindingActivity) PHCashboxDetailActivity.this).o;
((ActivityCashboxDetailBinding) viewBinding2).h.setVisibility(0);
}
paymentMethodInfo = PHCashboxDetailActivity.this.f142t;
if (paymentMethodInfo != null) {
list3 = PHCashboxDetailActivity.this.s;
paymentMethodInfo2 = PHCashboxDetailActivity.this.f142t;
if (CollectionsKt.M(list3, paymentMethodInfo2)) {
PHCashboxDetailActivity pHCashboxDetailActivity = PHCashboxDetailActivity.this;
list4 = pHCashboxDetailActivity.s;
list5 = PHCashboxDetailActivity.this.s;
paymentMethodInfo3 = PHCashboxDetailActivity.this.f142t;
pHCashboxDetailActivity.N0((PaymentMethodInfo) list4.get(CollectionsKt.Y(list5, paymentMethodInfo3)));
return;
}
}
PHCashboxDetailActivity.this.N0(paymentMethodListResponse.body.paymentCredentials.get(0));
}
});
}
public final void E0() {
this.apiHelper.a().H0().w(AndroidSchedulers.a()).j(new Action() {
public final void run() {
PHCashboxDetailActivity.F0(PHCashboxDetailActivity.this);
}
}).a(new CommonObserver<CashboxHomeResponse>() {
{
super(PHCashboxDetailActivity.this);
}
public void e(Throwable th, CashboxHomeResponse cashboxHomeResponse) {
super.e(th, cashboxHomeResponse);
PHCashboxDetailActivity.this.Q();
PHCashboxDetailActivity.this.finish();
}
public void c(CashboxHomeResponse cashboxHomeResponse) {
PHCashboxDetailActivity.this.M0(cashboxHomeResponse != null ? cashboxHomeResponse.body : null);
PHCashboxDetailActivity.this.Q();
}
public void onSubscribe(Disposable disposable) {
Intrinsics.checkNotNullParameter(disposable, "d");
super/*com.veda.android.bananalibrary.net.DefaultObserver*/.onSubscribe(disposable);
PHCashboxDetailActivity.this.showLoadingDialog();
PHCashboxDetailActivity.this.p = null;
}
});
}
public static final void F0(PHCashboxDetailActivity pHCashboxDetailActivity) {
SwipeRefreshLayout swipeRefreshLayout;
ActivityCashboxDetailBinding activityCashboxDetailBinding = (ActivityCashboxDetailBinding) pHCashboxDetailActivity.o;
if (activityCashboxDetailBinding != null && (swipeRefreshLayout = activityCashboxDetailBinding.k) != null) {
swipeRefreshLayout.setRefreshing(false);
}
pHCashboxDetailActivity.dismissLoadingDialog();
}
private final void G0() {
new PHCommonDialog.Builder(this).j(R.string.cashbox_withdrawal_auth_alert_msg).f(R.string.done).g(new ConfirmClickListener() {
public final void a(AppCompatDialog appCompatDialog) {
PHCashboxDetailActivity.H0(PHCashboxDetailActivity.this, appCompatDialog);
}
}).k(TrackingEvents.PH_CASHBOX_AUTH_ALERT_DIALOG).a().show();
}
public static final void H0(final PHCashboxDetailActivity pHCashboxDetailActivity, AppCompatDialog appCompatDialog) {
Intrinsics.checkNotNullParameter(appCompatDialog, "confirmDialog");
appCompatDialog.dismiss();
pHCashboxDetailActivity.authUtil.h(pHCashboxDetailActivity, new AuthUtils.IAuthCallBack() {
@Override
public void a() {
PHCashboxDetailActivity.this.dismissLoadingDialog();
}
@Override
public Bundle b() {
return com.loans.mabiliscash.auth.helper.g.a(this);
}
@Override
public void onStart() {
PHCashboxDetailActivity.this.showLoadingDialog();
}
});
}
private final void I0() {
new PHCommonDialog.Builder(this).i(getString(R.string.cashbox_bind_payment_method_alert)).f(R.string.add).g(new ConfirmClickListener() {
public final void a(AppCompatDialog appCompatDialog) {
PHCashboxDetailActivity.J0(PHCashboxDetailActivity.this, appCompatDialog);
}
}).k(TrackingEvents.PH_CASHBOX_WITHDRAW_BIND_PAYMENT_METHOD_ALERT_DIALOG).a().show();
}
public static final void J0(PHCashboxDetailActivity pHCashboxDetailActivity, AppCompatDialog appCompatDialog) {
appCompatDialog.dismiss();
PHBindPaymentMethodActivity.startForResult(pHCashboxDetailActivity, -1);
}
private final void K0() {
if (this.s.size() < 2) {
return;
}
?? homeBottomSheetSelectDialog = new HomeBottomSheetSelectDialog(this, TrackingEvents.PH_CASHBOX_PAYMENT_CREDENTIALS_SELECT_DIALOG);
homeBottomSheetSelectDialog.l(R.string.payment_method);
homeBottomSheetSelectDialog.r(new HomeBottomSheetSelectDialog.OnItemClickListener() {
@Override
public final void a(BaseBottomSheetDialog baseBottomSheetDialog, int i) {
PHCashboxDetailActivity.L0(PHCashboxDetailActivity.this, baseBottomSheetDialog, i);
}
});
PaymentMethodAdapter paymentMethodAdapter = this.f143u;
if (paymentMethodAdapter == null) {
this.f143u = new PaymentMethodAdapter(this, this.s);
} else if (paymentMethodAdapter != null) {
paymentMethodAdapter.g(this.s);
}
homeBottomSheetSelectDialog.p(this.f143u);
homeBottomSheetSelectDialog.show();
}
public static final void L0(PHCashboxDetailActivity pHCashboxDetailActivity, BaseBottomSheetDialog baseBottomSheetDialog, int i) {
baseBottomSheetDialog.dismiss();
if (i > CollectionsKt.m(pHCashboxDetailActivity.s)) {
return;
}
PaymentMethodInfo paymentMethodInfo = pHCashboxDetailActivity.s.get(i);
PaymentMethodInfo paymentMethodInfo2 = pHCashboxDetailActivity.f142t;
if (paymentMethodInfo2 == null || !Intrinsics.a(paymentMethodInfo, paymentMethodInfo2)) {
PaymentMethodInfo paymentMethodInfo3 = pHCashboxDetailActivity.f142t;
if (paymentMethodInfo3 != null) {
paymentMethodInfo3.isChecked = false;
}
pHCashboxDetailActivity.N0(paymentMethodInfo);
}
}
public final void M0(CashboxHomeResponse.Body body) {
if (body != null) {
this.p = body;
((ActivityCashboxDetailBinding) this.o).m.setText(body.canWithdrawBalance);
((ActivityCashboxDetailBinding) this.o).o.setText(body.undeterminedWalletBalance);
((ActivityCashboxDetailBinding) this.o).s.setText(body.cumulativeWithdrawBalance);
this.q.clear();
List<String> list = body.ruleDesc;
if (list != null) {
this.q.addAll(list);
}
if (this.r == null) {
CashboxRulesAdapter cashboxRulesAdapter = new CashboxRulesAdapter(this, this.q);
this.r = cashboxRulesAdapter;
((ActivityCashboxDetailBinding) this.o).l.setAdapter(cashboxRulesAdapter);
((ActivityCashboxDetailBinding) this.o).l.setLayoutManager(new LinearLayoutManager(this));
RecyclerView recyclerView = ((ActivityCashboxDetailBinding) this.o).l;
final int color = getResources().getColor(R.color.transparent);
recyclerView.addItemDecoration(new LinearVerticalDivider(color) {
@Override
protected float a(View view, RecyclerView recyclerView2, RecyclerView.State state) {
Intrinsics.checkNotNullParameter(view, "view");
Intrinsics.checkNotNullParameter(recyclerView2, "parent");
Intrinsics.checkNotNullParameter(state, "state");
if (state.getItemCount() - 1 == recyclerView2.getChildAdapterPosition(view)) {
return PHCashboxDetailActivity.this.getResources().getDimensionPixelOffset(2131165498);
}
return 0.0f;
}
});
}
}
CashboxRulesAdapter cashboxRulesAdapter2 = this.r;
if (cashboxRulesAdapter2 != null) {
cashboxRulesAdapter2.notifyDataSetChanged();
}
}
public final void N0(PaymentMethodInfo paymentMethodInfo) {
this.f142t = paymentMethodInfo;
if (paymentMethodInfo != null) {
paymentMethodInfo.isChecked = true;
}
((ActivityCashboxDetailBinding) this.o).q.setText(paymentMethodInfo == null ? getString(R.string.no_account_bound) : u0(paymentMethodInfo));
if (paymentMethodInfo != null) {
Glide.with(this).load(paymentMethodInfo.bankLogoUrl).error(R.drawable.ic_other_bank_logo).into(((ActivityCashboxDetailBinding) this.o).i);
}
}
public static final void n0(PHCashboxDetailActivity pHCashboxDetailActivity, View view) {
PHFrozenDetailsActivity.start(pHCashboxDetailActivity);
}
public static final void o0(PHCashboxDetailActivity pHCashboxDetailActivity, View view) {
PHCashboxFlowsActivity.start(pHCashboxDetailActivity);
}
public static final void p0(PHCashboxDetailActivity pHCashboxDetailActivity, View view) {
pHCashboxDetailActivity.K0();
}
public static final void q0(PHCashboxDetailActivity pHCashboxDetailActivity, View view) {
pHCashboxDetailActivity.x0();
}
public static final void r0(PHCashboxDetailActivity pHCashboxDetailActivity) {
((ActivityCashboxDetailBinding) pHCashboxDetailActivity.o).k.setRefreshing(true);
pHCashboxDetailActivity.E0();
}
public static final void s0(PHCashboxDetailActivity pHCashboxDetailActivity, CashboxHomeResponse.Body body, PaymentMethodInfo paymentMethodInfo, AppCompatDialog appCompatDialog) {
appCompatDialog.dismiss();
BigDecimal bigDecimal = body.canWithdrawBalanceValue;
Intrinsics.checkNotNullExpressionValue(bigDecimal, "canWithdrawBalanceValue");
pHCashboxDetailActivity.v0(bigDecimal, paymentMethodInfo);
}
public static final void t0(AppCompatDialog appCompatDialog) {
appCompatDialog.dismiss();
}
private final String u0(PaymentMethodInfo paymentMethodInfo) {
StringCompanionObject stringCompanionObject = StringCompanionObject.a;
String format = String.format("%s %s", Arrays.copyOf(new Object[]{FormatUtil.b(paymentMethodInfo.accountNumber), paymentMethodInfo.bankName}, 2));
Intrinsics.checkNotNullExpressionValue(format, "format(...)");
return format;
}
private final void v0(BigDecimal bigDecimal, PaymentMethodInfo paymentMethodInfo) {
this.apiHelper.a().b(bigDecimal, paymentMethodInfo.paymentMethod, paymentMethodInfo.credentialId).w(AndroidSchedulers.a()).j(new Action() {
public final void run() {
PHCashboxDetailActivity.w0(PHCashboxDetailActivity.this);
}
}).a(new CommonObserver<PHBooleanResponse>() {
{
super(PHCashboxDetailActivity.this);
}
public void c(PHBooleanResponse pHBooleanResponse) {
CommonActivity commonActivity = PHCashboxDetailActivity.this;
ToastCompat.g(commonActivity, commonActivity.getString(R.string.cashbox_withdrawal_success));
PHCashboxDetailActivity.this.E0();
}
public void onSubscribe(Disposable disposable) {
Intrinsics.checkNotNullParameter(disposable, "d");
super/*com.veda.android.bananalibrary.net.DefaultObserver*/.onSubscribe(disposable);
PHCashboxDetailActivity.this.showLoadingDialog();
}
});
}
public static final void w0(PHCashboxDetailActivity pHCashboxDetailActivity) {
pHCashboxDetailActivity.dismissLoadingDialog();
}
private final void x0() {
final CashboxHomeResponse.Body body;
if (!this.userSession.c().hasFinishedLoanAuth) {
G0();
return;
}
final PaymentMethodInfo paymentMethodInfo = this.f142t;
if (paymentMethodInfo == null) {
I0();
return;
}
if (paymentMethodInfo == null || (body = this.p) == null) {
return;
}
if (!body.isMinWithdrawBalanceAllowed()) {
ToastCompat.g(this, getString(R.string.cashbox_withdrawal_min_limit_alert));
return;
}
if (!body.withdrawCountStatus) {
ToastCompat.g(this, getString(R.string.cashbox_withdrawal_count_limit));
return;
}
BigDecimal bigDecimal = body.canWithdrawBalanceValue;
Intrinsics.checkNotNullExpressionValue(bigDecimal, "canWithdrawBalanceValue");
String str = paymentMethodInfo.paymentMethod;
Intrinsics.checkNotNullExpressionValue(str, "paymentMethod");
String str2 = paymentMethodInfo.credentialId;
Intrinsics.checkNotNullExpressionValue(str2, "credentialId");
B0(bigDecimal, str, str2, new Function1() {
public final Object invoke(Object obj) {
Unit y0;
y0 = PHCashboxDetailActivity.y0(PHCashboxDetailActivity.this, body, paymentMethodInfo, ((Boolean) obj).booleanValue());
return y0;
}
});
}
public static final Unit y0(final PHCashboxDetailActivity pHCashboxDetailActivity, final CashboxHomeResponse.Body body, final PaymentMethodInfo paymentMethodInfo, boolean z2) {
if (z2) {
PHCashboxLiveCheckPreviewActivity.Companion companion = PHCashboxLiveCheckPreviewActivity.Companion;
BigDecimal bigDecimal = body.canWithdrawBalanceValue;
Intrinsics.checkNotNullExpressionValue(bigDecimal, "canWithdrawBalanceValue");
companion.a(pHCashboxDetailActivity, bigDecimal, paymentMethodInfo);
} else {
new PHCommonDialog.Builder(pHCashboxDetailActivity).i(pHCashboxDetailActivity.getString(R.string.cashbox_withdrawal_confirm, body.canWithdrawBalance, pHCashboxDetailActivity.u0(paymentMethodInfo))).f(R.string.confirm).g(new ConfirmClickListener() {
public final void a(AppCompatDialog appCompatDialog) {
PHCashboxDetailActivity.z0(PHCashboxDetailActivity.this, body, paymentMethodInfo, appCompatDialog);
}
}).b(R.string.cancel).c(new CancelClickListener() {
public final void a(AppCompatDialog appCompatDialog) {
PHCashboxDetailActivity.A0(appCompatDialog);
}
}).k(TrackingEvents.PH_CASHBOX_WITHDRAW_CONFIRM_DIALOG).a().show();
}
return Unit.a;
}
public static final void z0(PHCashboxDetailActivity pHCashboxDetailActivity, CashboxHomeResponse.Body body, PaymentMethodInfo paymentMethodInfo, AppCompatDialog appCompatDialog) {
appCompatDialog.dismiss();
BigDecimal bigDecimal = body.canWithdrawBalanceValue;
Intrinsics.checkNotNullExpressionValue(bigDecimal, "canWithdrawBalanceValue");
pHCashboxDetailActivity.v0(bigDecimal, paymentMethodInfo);
}
@Override
@NotNull
public ActivityCashboxDetailBinding bindingInflater() {
ActivityCashboxDetailBinding c = ActivityCashboxDetailBinding.c(getLayoutInflater());
Intrinsics.checkNotNullExpressionValue(c, "inflate(...)");
return c;
}
protected void o() {
super.o();
V(((ActivityCashboxDetailBinding) this.o).d, new BindClickCall() {
@Override
public final void onClick(View view) {
PHCashboxDetailActivity.n0(PHCashboxDetailActivity.this, view);
}
});
V(((ActivityCashboxDetailBinding) this.o).f, new BindClickCall() {
@Override
public final void onClick(View view) {
PHCashboxDetailActivity.o0(PHCashboxDetailActivity.this, view);
}
});
V(((ActivityCashboxDetailBinding) this.o).e, new BindClickCall() {
@Override
public final void onClick(View view) {
PHCashboxDetailActivity.p0(PHCashboxDetailActivity.this, view);
}
});
V(((ActivityCashboxDetailBinding) this.o).b, new BindClickCall() {
@Override
public final void onClick(View view) {
PHCashboxDetailActivity.q0(PHCashboxDetailActivity.this, view);
}
});
((ActivityCashboxDetailBinding) this.o).k.setColorSchemeResources(new int[]{android.R.color.holo_blue_dark, android.R.color.holo_orange_dark});
((ActivityCashboxDetailBinding) this.o).k.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {
public final void onRefresh() {
PHCashboxDetailActivity.r0(PHCashboxDetailActivity.this);
}
});
}
protected void onActivityResult(int i, int i2, @Nullable Intent intent) {
final PaymentMethodInfo paymentMethodInfo;
final CashboxHomeResponse.Body body;
super.onActivityResult(i, i2, intent);
if (i != 100348 || i2 != -1 || (paymentMethodInfo = this.f142t) == null || (body = this.p) == null) {
return;
}
new PHCommonDialog.Builder(this).i(getString(R.string.cashbox_withdrawal_confirm, body.canWithdrawBalance, u0(paymentMethodInfo))).f(R.string.confirm).g(new ConfirmClickListener() {
public final void a(AppCompatDialog appCompatDialog) {
PHCashboxDetailActivity.s0(PHCashboxDetailActivity.this, body, paymentMethodInfo, appCompatDialog);
}
}).b(R.string.cancel).c(new CancelClickListener() {
public final void a(AppCompatDialog appCompatDialog) {
PHCashboxDetailActivity.t0(appCompatDialog);
}
}).k(TrackingEvents.PH_CASHBOX_WITHDRAW_CONFIRM_DIALOG).a().show();
}
protected void onResume() {
super.onResume();
sendFetchUserInfoRequest();
D0();
E0();
}
}