正在查看: PrestaMax v1.0.9 应用的 Pay2Activity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: PrestaMax v1.0.9 应用的 Pay2Activity.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 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.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 Pay2Activity extends MaxActivity {
public class mwowwskti implements Callback {
public final TransferTextView f13569emazevgh;
public final kitld.aiyptt f13570mwowwskti;
public final TransferTextView f13572zwfgajm;
public mwowwskti(kitld.aiyptt aiypttVar, TransferTextView transferTextView, TransferTextView transferTextView2) {
this.f13570mwowwskti = aiypttVar;
this.f13569emazevgh = transferTextView;
this.f13572zwfgajm = transferTextView2;
}
public void onFailure(Call call, Throwable th) {
Pay2Activity.this.rubjtuopd(this.f13570mwowwskti, th);
}
public void onResponse(Call call, Response response) {
RepaymentBean repaymentBean;
this.f13570mwowwskti.dismiss();
if (!response.isSuccessful() || response.body() == null || (repaymentBean = (RepaymentBean) ((HttpBean) response.body()).bdwwtyzq) == null) {
Pay2Activity.this.momzvk(this.f13570mwowwskti, response);
} else {
this.f13569emazevgh.setText(repaymentBean.mwowwskti());
this.f13572zwfgajm.setEnabled(true);
}
}
}
public void mypv(View view) {
setResult(-1);
finish();
}
public void okynidv(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();
}
public void yebtjpgtd(View view) {
getOnBackPressedDispatcher().onBackPressed();
}
@Override
public boolean dispatchTouchEvent(MotionEvent motionEvent) {
qpcdhxz.nmqbnjf.vikxvh(PointEnum.POINT_PAY, motionEvent);
return super.dispatchTouchEvent(motionEvent);
}
@Override
public void onCreate(Bundle bundle) {
OrderItemBean orderItemBean;
Serializable serializableExtra;
super.onCreate(bundle);
setContentView(R$layout.activity_pay2);
String stringExtra = getIntent().getStringExtra("gnuwxy");
boolean booleanExtra = getIntent().getBooleanExtra("asdweve", true);
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, 4);
String sjdatecqy2 = orderItemBean == null ? "" : orderItemBean.sjdatecqy();
if (sjdatecqy2.isEmpty()) {
AppUtil.slyvsmo(this);
}
((TransferMaterialToolbar) findViewById(R$id.toolbar)).setNavigationOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
Pay2Activity.this.yebtjpgtd(view);
}
});
((TransferTextView) findViewById(R$id.amountView)).setAmountText(new BigDecimal(stringExtra));
((TransferTextView) findViewById(R$id.amountView2)).setAmountText(new BigDecimal(stringExtra));
TransferTextView transferTextView = (TransferTextView) findViewById(R$id.orderAmountView);
TransferTextView transferTextView2 = (TransferTextView) findViewById(R$id.termView);
TransferTextView transferTextView3 = (TransferTextView) findViewById(R$id.dateView);
TransferTextView transferTextView4 = (TransferTextView) findViewById(R$id.orderAmountView2);
if (orderItemBean != null) {
transferTextView.setAmountText(orderItemBean.yvxno());
transferTextView2.setTermText(orderItemBean.pzetpkg().toString());
transferTextView3.setText(orderItemBean.zybqm());
transferTextView4.setAmountText(orderItemBean.yvxno());
} else {
transferTextView.setText("-");
transferTextView2.setText("-");
transferTextView3.setText("-");
transferTextView4.setText("-");
}
final TransferTextView transferTextView5 = (TransferTextView) findViewById(R$id.codeView);
findViewById(R$id.copyView).setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
Pay2Activity.this.okynidv(transferTextView5, view);
}
});
TransferTextView transferTextView6 = (TransferTextView) findViewById(R$id.bankView);
transferTextView6.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
Pay2Activity.this.mypv(view);
}
});
transferTextView6.setEnabled(false);
kitld.aiyptt aiypttVar = new kitld.aiyptt(this);
aiypttVar.show();
HashMap hashMap = new HashMap();
hashMap.put("aijrufx", sjdatecqy2);
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, transferTextView5, transferTextView6));
}
@Override
public void onDestroy() {
qpcdhxz.nmqbnjf.mwowwskti(PointEnum.POINT_PAY);
super.onDestroy();
}
}