正在查看: PrestaMax v1.0.9 应用的 PayActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: PrestaMax v1.0.9 应用的 PayActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.prestamx.max.activity;
import android.content.ClipData;
import android.content.ClipboardManager;
import android.os.Build;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View;
import android.widget.Toast;
import androidx.activity.OnBackPressedCallback;
import com.prestamx.max.R$id;
import com.prestamx.max.R$layout;
import com.prestamx.max.R$string;
import com.prestamx.max.bean.HttpBean;
import com.prestamx.max.bean.OrderItemBean;
import com.prestamx.max.bean.PayUpAmountBean;
import com.prestamx.max.bean.RepaymentBean;
import com.prestamx.max.java_calss.ActivityUtil;
import com.prestamx.max.java_calss.AppUtil;
import com.prestamx.max.room.PointEnum;
import com.prestamx.max.transfer_view.TransferMaterialToolbar;
import com.prestamx.max.transfer_view.TransferTextView;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.HashMap;
import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;
public class PayActivity extends MaxActivity {
public PayUpAmountBean f13573vikxvh = null;
public class emazevgh implements Callback {
public emazevgh() {
}
public void onFailure(Call call, Throwable th) {
}
public void onResponse(Call call, Response response) {
if (!response.isSuccessful() || response.body() == null) {
return;
}
PayActivity.this.f13573vikxvh = (PayUpAmountBean) ((HttpBean) response.body()).bdwwtyzq;
}
}
public class mwowwskti implements Callback {
public final TransferTextView f13575emazevgh;
public final kitld.aiyptt f13576mwowwskti;
public final TransferTextView f13578zwfgajm;
public mwowwskti(kitld.aiyptt aiypttVar, TransferTextView transferTextView, TransferTextView transferTextView2) {
this.f13576mwowwskti = aiypttVar;
this.f13575emazevgh = transferTextView;
this.f13578zwfgajm = transferTextView2;
}
public void onFailure(Call call, Throwable th) {
PayActivity.this.rubjtuopd(this.f13576mwowwskti, th);
}
public void onResponse(Call call, Response response) {
RepaymentBean repaymentBean;
this.f13576mwowwskti.dismiss();
if (!response.isSuccessful() || response.body() == null || (repaymentBean = (RepaymentBean) ((HttpBean) response.body()).bdwwtyzq) == null) {
PayActivity.this.momzvk(this.f13576mwowwskti, response);
} else {
this.f13575emazevgh.setText(repaymentBean.mwowwskti());
this.f13578zwfgajm.setEnabled(true);
}
}
}
public class zwfgajm extends OnBackPressedCallback {
public zwfgajm(boolean z) {
super(z);
}
@Override
public void handleOnBackPressed() {
if (PayActivity.this.f13573vikxvh != null) {
PayActivity.this.hebzbk();
} else {
PayActivity.this.finish();
}
}
}
public void kbpjcqc(View view) {
getOnBackPressedDispatcher().onBackPressed();
}
public void mmzqqpyl(TransferTextView transferTextView, View view) {
((ClipboardManager) getSystemService("clipboard")).setPrimaryClip(ClipData.newPlainText(com.prestamx.max.java_calss.yyqsz.zppskyagv("lXMJxi9lDWO6lbU3KfnhEQ=="), transferTextView.getText()));
Toast.makeText(this, com.prestamx.max.java_calss.yyqsz.zppskyagv(getString(R$string.sfnuru)), 0).show();
hebzbk();
}
public void wcewpl(View view) {
setResult(-1);
getOnBackPressedDispatcher().onBackPressed();
}
@Override
public boolean dispatchTouchEvent(MotionEvent motionEvent) {
qpcdhxz.nmqbnjf.vikxvh(PointEnum.POINT_PAY, motionEvent);
return super.dispatchTouchEvent(motionEvent);
}
public final void hebzbk() {
PayUpAmountBean payUpAmountBean = this.f13573vikxvh;
if (payUpAmountBean != null) {
try {
String zwfgajm2 = payUpAmountBean.mwowwskti().zwfgajm();
String emazevgh2 = payUpAmountBean.mwowwskti().emazevgh();
String mwowwskti2 = payUpAmountBean.mwowwskti().mwowwskti();
new kitld.hebzbk(this).sjdatecqy(new BigDecimal(zwfgajm2), new BigDecimal(emazevgh2), new BigDecimal(mwowwskti2)).show();
} catch (Exception unused) {
}
this.f13573vikxvh = null;
}
}
@Override
public void onCreate(Bundle bundle) {
OrderItemBean orderItemBean;
String qwppmv2;
String str;
Serializable serializableExtra;
super.onCreate(bundle);
setContentView(R$layout.activity_pay);
String stringExtra = getIntent().getStringExtra("gnuwxy");
boolean booleanExtra = getIntent().getBooleanExtra("asdweve", false);
try {
if (Build.VERSION.SDK_INT >= 33) {
serializableExtra = getIntent().getSerializableExtra("asnjlc", OrderItemBean.class);
orderItemBean = (OrderItemBean) serializableExtra;
} else {
orderItemBean = (OrderItemBean) getIntent().getSerializableExtra("asnjlc");
}
} catch (Exception e) {
e.printStackTrace();
orderItemBean = null;
}
ActivityUtil.wdmirpab(this, 3);
if (orderItemBean == null) {
str = "";
qwppmv2 = "";
} else {
String sjdatecqy2 = orderItemBean.sjdatecqy();
qwppmv2 = orderItemBean.qwppmv();
str = sjdatecqy2;
}
if (str.isEmpty()) {
AppUtil.slyvsmo(this);
}
((TransferMaterialToolbar) findViewById(R$id.toolbar)).setNavigationOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
PayActivity.this.kbpjcqc(view);
}
});
((TransferTextView) findViewById(R$id.amountView)).setAmountText(new BigDecimal(stringExtra));
final TransferTextView transferTextView = (TransferTextView) findViewById(R$id.codeView);
findViewById(R$id.copyView).setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
PayActivity.this.mmzqqpyl(transferTextView, view);
}
});
TransferTextView transferTextView2 = (TransferTextView) findViewById(R$id.bankView);
transferTextView2.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
PayActivity.this.wcewpl(view);
}
});
transferTextView2.setEnabled(false);
kitld.aiyptt aiypttVar = new kitld.aiyptt(this);
aiypttVar.show();
HashMap hashMap = new HashMap();
hashMap.put("aijrufx", str);
hashMap.put("zlhizdc", Boolean.valueOf(booleanExtra));
hashMap.put("ewdgfj", Boolean.TRUE);
com.prestamx.max.java_calss.vikxvh.zppskyagv().slyvsmo(com.prestamx.max.java_calss.vikxvh.mwowwskti(this, hashMap)).enqueue(new mwowwskti(aiypttVar, transferTextView, transferTextView2));
HashMap hashMap2 = new HashMap();
hashMap2.put("ctuo", str);
hashMap2.put("bfzkix", qwppmv2);
com.prestamx.max.java_calss.vikxvh.zppskyagv().qwppmv(com.prestamx.max.java_calss.vikxvh.mwowwskti(this, hashMap2)).enqueue(new emazevgh());
getOnBackPressedDispatcher().addCallback(new zwfgajm(true));
}
@Override
public void onDestroy() {
qpcdhxz.nmqbnjf.mwowwskti(PointEnum.POINT_PAY);
super.onDestroy();
}
}