正在查看: TodoCrédito v1.4 应用的 d.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: TodoCrédito v1.4 应用的 d.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package k5;
import android.text.SpannableString;
import android.text.TextPaint;
import android.text.method.LinkMovementMethod;
import android.text.style.ClickableSpan;
import android.util.Log;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;
import androidx.annotation.NonNull;
import com.nick.dialog.DialogUtils;
import com.tdcd.mx.ds.R$layout;
import com.tdcd.mx.ds.databinding.MizdokrpntbBinding;
import com.tdcd.mx.pvhczd.evidences.Tumor;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
import k5.d;
import l5.k;
import l5.n;
import me.jessyan.autosize.BuildConfig;
import p5.h;
public class d {
public class a implements f4.a {
public class RunnableC0150a implements Runnable {
public final DialogUtils f10557c;
public RunnableC0150a(DialogUtils dialogUtils) {
this.f10557c = dialogUtils;
}
@Override
public void run() {
this.f10557c.c();
}
}
@Override
public void a(@NonNull DialogUtils dialogUtils, @NonNull View view) {
view.getRootView().postDelayed(new RunnableC0150a(dialogUtils), 3000L);
}
}
public class b implements f4.a {
public final k f10559a;
public final String f10560b;
public final View.OnClickListener f10561c;
public class a implements View.OnClickListener {
public a() {
}
@Override
public void onClick(View view) {
d.d();
}
}
public b(k kVar, String str, View.OnClickListener onClickListener) {
this.f10559a = kVar;
this.f10560b = str;
this.f10561c = onClickListener;
}
public static void c(MizdokrpntbBinding mizdokrpntbBinding, View.OnClickListener onClickListener, DialogUtils dialogUtils, View view) {
if (!mizdokrpntbBinding.zsrqfow.isChecked()) {
Toast.makeText(view.getContext(), "Por favor, acepte primero el acuerdo de préstamo.", 0).show();
} else {
onClickListener.onClick(view);
dialogUtils.c();
}
}
@Override
public void a(@NonNull final DialogUtils dialogUtils, @NonNull View view) {
final MizdokrpntbBinding bind = MizdokrpntbBinding.bind(view);
bind.nd.setText(this.f10559a.c());
bind.fyoabamhk.setText(this.f10559a.b());
bind.gos.setText(this.f10559a.a());
d.e(bind.zsrqfow222, this.f10560b);
TextView textView = bind.dqkoyikxa;
final View.OnClickListener onClickListener = this.f10561c;
textView.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view2) {
d.b.c(MizdokrpntbBinding.this, onClickListener, dialogUtils, view2);
}
});
bind.imageView.setOnClickListener(new a());
}
}
public class c extends ClickableSpan {
public final TextView f10563c;
public final String f10564d;
public c(TextView textView, String str) {
this.f10563c = textView;
this.f10564d = str;
}
@Override
public void onClick(View view) {
h.d(this.f10563c.getContext(), this.f10564d);
}
@Override
public void updateDrawState(TextPaint textPaint) {
super.updateDrawState(textPaint);
textPaint.setColor(-16776961);
textPaint.bgColor = 0;
textPaint.setUnderlineText(false);
}
}
public static String a(String str, String str2, String str3, String str4, String str5, String str6, String str7, String str8, String str9, String str10, String str11, String str12) {
return "https://h5.todocredito.mx/loan.html?" + ("realName=" + str + "&gender=" + str2 + "&idNumber=" + str3 + "&phone=" + str4 + "&bankNumber=" + str5 + "&contractAmountTotal=" + str6 + "&serviceFeeRate=" + str7 + "&interestRate=" + str8 + "&repaymentTotal=" + str9 + "&repayTime=" + str10 + "&term=" + str11 + "&loanTime=" + str12);
}
public static String b(List<Tumor> list, k kVar) {
try {
Iterator<Tumor> it = list.iterator();
int i9 = 0;
while (it.hasNext()) {
i9 += it.next().getAmount();
}
Tumor tumor = list.get(0);
String format = new SimpleDateFormat("yyyy-MM-dd").format(new Date());
String str = tumor.getTerm() + BuildConfig.FLAVOR;
String str2 = tumor.getDailyRate() + BuildConfig.FLAVOR;
String str3 = i9 + BuildConfig.FLAVOR;
String a9 = kVar.a();
return a(kVar.j(), BuildConfig.FLAVOR, kVar.i(), n.g(), a9, str3, BuildConfig.FLAVOR, str2, BuildConfig.FLAVOR, BuildConfig.FLAVOR, str, format);
} catch (Exception e9) {
Log.e(BuildConfig.FLAVOR, e9.toString());
return "https://h5.todocredito.mx/loan.html";
}
}
public static void c(k kVar, String str, View.OnClickListener onClickListener) {
DialogUtils.d().g(R$layout.mizdokrpntb).e(DialogUtils.ALIGN.BOTTOM).f(true).h(new b(kVar, str, onClickListener)).i();
}
public static void d() {
DialogUtils.d().g(R$layout.guqofgl).e(DialogUtils.ALIGN.CENTER).f(true).h(new a()).i();
}
public static void e(TextView textView, String str) {
SpannableString spannableString = new SpannableString(m5.a.a("He leído y acepto el <Contrato de Préstamo>"));
spannableString.setSpan(new c(textView, str), spannableString.toString().indexOf("<"), spannableString.toString().indexOf(">") + 1, 33);
textView.setText(spannableString);
textView.setMovementMethod(LinkMovementMethod.getInstance());
}
}