正在查看: PrestaMax v1.0.9 应用的 DelAccountSmsActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: PrestaMax v1.0.9 应用的 DelAccountSmsActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.prestamx.max.activity;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.text.Editable;
import android.view.View;
import android.widget.Toast;
import androidx.appcompat.widget.AppCompatEditText;
import androidx.appcompat.widget.LinearLayoutCompat;
import com.prestamx.max.R$color;
import com.prestamx.max.R$drawable;
import com.prestamx.max.R$id;
import com.prestamx.max.R$layout;
import com.prestamx.max.R$string;
import com.prestamx.max.bean.DelAccountBean;
import com.prestamx.max.bean.HttpBean;
import com.prestamx.max.java_calss.ActivityUtil;
import com.prestamx.max.java_calss.AppUtil;
import com.prestamx.max.java_calss.yyqsz;
import com.prestamx.max.transfer_view.TransferMaterialToolbar;
import com.prestamx.max.transfer_view.TransferTextView;
import java.util.HashMap;
import java.util.Objects;
import java.util.UUID;
import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;
public class DelAccountSmsActivity extends MaxActivity {
public final CountDownTimer f13383jzzsan = new emazevgh(60000, 1000);
public AppCompatEditText f13384ksocihbb;
public LinearLayoutCompat f13385sjdatecqy;
public kitld.aiyptt f13386vikxvh;
public TransferTextView f13387vpqvb;
public TransferTextView f13388wavzltwms;
public class emazevgh extends CountDownTimer {
public emazevgh(long j, long j2) {
super(j, j2);
}
@Override
public void onFinish() {
DelAccountSmsActivity.this.f13387vpqvb.setEnabled(true);
DelAccountSmsActivity.this.f13387vpqvb.setText(R$string.hatjui);
DelAccountSmsActivity.this.f13387vpqvb.setTextColor(rubjtuopd.mwowwskti.zwfgajm(DelAccountSmsActivity.this, R$color.theme));
}
@Override
public void onTick(long j) {
DelAccountSmsActivity.this.f13387vpqvb.setEnabled(false);
DelAccountSmsActivity.this.f13387vpqvb.setText((j / 1000) + " s");
DelAccountSmsActivity.this.f13387vpqvb.setTextColor(rubjtuopd.mwowwskti.zwfgajm(DelAccountSmsActivity.this, R$color.white5));
}
}
public class mwowwskti extends yyqsz.mwowwskti {
public final TransferTextView f13391mwowwskti;
public mwowwskti(TransferTextView transferTextView) {
this.f13391mwowwskti = transferTextView;
}
@Override
public void afterTextChanged(Editable editable) {
this.f13391mwowwskti.setEnabled(editable != null && editable.length() == 4);
}
}
public class nmqbnjf implements Callback {
public nmqbnjf() {
}
public void onFailure(Call call, Throwable th) {
DelAccountSmsActivity delAccountSmsActivity = DelAccountSmsActivity.this;
delAccountSmsActivity.rubjtuopd(delAccountSmsActivity.f13386vikxvh, th);
}
public void onResponse(Call call, Response response) {
DelAccountSmsActivity.this.f13386vikxvh.dismiss();
if (!response.isSuccessful() || response.body() == null) {
DelAccountSmsActivity delAccountSmsActivity = DelAccountSmsActivity.this;
delAccountSmsActivity.momzvk(delAccountSmsActivity.f13386vikxvh, response);
} else {
if (!"200".equals(((HttpBean) response.body()).tqbmypjx)) {
AppUtil.slyvsmo(DelAccountSmsActivity.this);
return;
}
if (!Boolean.TRUE.equals(((DelAccountBean) ((HttpBean) response.body()).bdwwtyzq).mwowwskti())) {
DelAccountSmsActivity.this.wiuidnyon(true);
} else {
DelAccountSmsActivity.this.setResult(-1);
DelAccountSmsActivity.this.finish();
}
}
}
}
public class zwfgajm implements Callback {
public zwfgajm() {
}
public void onFailure(Call call, Throwable th) {
DelAccountSmsActivity delAccountSmsActivity = DelAccountSmsActivity.this;
delAccountSmsActivity.rubjtuopd(delAccountSmsActivity.f13386vikxvh, th);
}
public void onResponse(Call call, Response response) {
DelAccountSmsActivity.this.f13386vikxvh.dismiss();
if (!response.isSuccessful() || response.body() == null) {
DelAccountSmsActivity delAccountSmsActivity = DelAccountSmsActivity.this;
delAccountSmsActivity.momzvk(delAccountSmsActivity.f13386vikxvh, response);
return;
}
HttpBean httpBean = (HttpBean) response.body();
if (!"200".equals(httpBean.tqbmypjx)) {
if (Objects.equals(AppUtil.f13777vpqvb, httpBean.tqbmypjx)) {
Toast.makeText(DelAccountSmsActivity.this, httpBean.sjv, 0).show();
return;
} else {
AppUtil.slyvsmo(DelAccountSmsActivity.this);
return;
}
}
DelAccountSmsActivity.this.f13383jzzsan.cancel();
DelAccountSmsActivity.this.f13383jzzsan.start();
DelAccountSmsActivity delAccountSmsActivity2 = DelAccountSmsActivity.this;
ActivityUtil.bhwkhnew(delAccountSmsActivity2, delAccountSmsActivity2.f13384ksocihbb, 300L);
AppUtil.zwfgajm(DelAccountSmsActivity.this, 4);
}
}
public void hebzbk(View view) {
Editable text = this.f13384ksocihbb.getText();
if (text != null) {
kamfujg(text.toString());
}
}
public void hiqobdks(View view) {
osroeap();
}
public void wcewpl(View view) {
getOnBackPressedDispatcher().onBackPressed();
}
public final void kamfujg(String str) {
wiuidnyon(false);
this.f13386vikxvh.show();
HashMap hashMap = new HashMap();
hashMap.put("wsr", str);
hashMap.put("rpsz", hzmc.mwowwskti.nmqbnjf(this).wavzltwms());
com.prestamx.max.java_calss.vikxvh.zppskyagv().nqymzx(com.prestamx.max.java_calss.vikxvh.mwowwskti(this, hashMap)).enqueue(new nmqbnjf());
}
@Override
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(R$layout.activity_del_account_sms);
((TransferMaterialToolbar) findViewById(R$id.toolbar)).setNavigationOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
DelAccountSmsActivity.this.wcewpl(view);
}
});
ActivityUtil.wdmirpab(this, 27);
this.f13384ksocihbb = (AppCompatEditText) findViewById(R$id.edit_id);
this.f13388wavzltwms = (TransferTextView) findViewById(R$id.idErrorView);
this.f13387vpqvb = (TransferTextView) findViewById(R$id.sendSmsView);
this.f13385sjdatecqy = (LinearLayoutCompat) findViewById(R$id.edit_id_layout);
TransferTextView transferTextView = (TransferTextView) findViewById(R$id.confirm_button);
this.f13384ksocihbb.setHint(com.prestamx.max.java_calss.yyqsz.zppskyagv(getString(R$string.lxyftu)));
this.f13384ksocihbb.addTextChangedListener(new mwowwskti(transferTextView));
this.f13386vikxvh = new kitld.aiyptt(this);
transferTextView.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
DelAccountSmsActivity.this.hebzbk(view);
}
});
this.f13387vpqvb.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
DelAccountSmsActivity.this.hiqobdks(view);
}
});
osroeap();
}
@Override
public void onDestroy() {
this.f13386vikxvh.dismiss();
this.f13386vikxvh = null;
this.f13383jzzsan.cancel();
super.onDestroy();
}
public final void osroeap() {
this.f13386vikxvh.show();
HashMap hashMap = new HashMap();
hashMap.put("pqbx", hzmc.mwowwskti.nmqbnjf(this).wavzltwms());
hashMap.put("ygrit", AppUtil.f13783zybqm);
hashMap.put("fnd", UUID.randomUUID().toString());
hashMap.put("blqlu", AppUtil.f13775slyvsmo);
hashMap.put("dwcbrv", AppUtil.f13768mwowwskti);
com.prestamx.max.java_calss.vikxvh.zppskyagv().sjdatecqy(com.prestamx.max.java_calss.vikxvh.mwowwskti(this, hashMap)).enqueue(new zwfgajm());
}
public final void wiuidnyon(boolean z) {
if (z) {
this.f13385sjdatecqy.setBackgroundResource(R$drawable.view_bg_del_input_e);
this.f13388wavzltwms.setVisibility(0);
} else {
this.f13385sjdatecqy.setBackgroundResource(R$drawable.view_bg_del_input);
this.f13388wavzltwms.setVisibility(8);
}
}
}