正在查看: klikUMKM v2.0.1 应用的 MyHistoryOrderDetailActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: klikUMKM v2.0.1 应用的 MyHistoryOrderDetailActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.yx.credit.indonesia.ui.my;
import android.content.Intent;
import android.os.Bundle;
import android.text.SpannableString;
import android.text.TextUtils;
import android.text.style.ForegroundColorSpan;
import android.text.style.StyleSpan;
import android.text.style.UnderlineSpan;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import cb.b;
import com.google.firebase.encoders.json.BuildConfig;
import com.yx.credit.base.YxApplication;
import com.yx.credit.base.activity.BaseFragmentActivity;
import com.yx.credit.base.net.k;
import com.yx.credit.indonesia.R$color;
import com.yx.credit.indonesia.R$id;
import com.yx.credit.indonesia.R$layout;
import com.yx.credit.indonesia.R$string;
import com.yx.credit.indonesia.http.entity.HistoryPreviewPdfRsp;
import com.yx.credit.indonesia.http.entity.MyHistoryOrderDetailRsp;
import com.yx.credit.indonesia.ui.my.MyHistoryOrderDetailActivity;
import com.yx.credit.indonesia.view.LoadingErrorView;
import com.yx.credit.indonesia.view.LoadingView;
import j4.c0;
import j4.j;
import j4.m;
import java.util.HashMap;
import java.util.List;
import ra.a;
public class MyHistoryOrderDetailActivity extends BaseFragmentActivity implements a {
public static final int f7629f0 = 0;
public ImageView K;
public TextView L;
public LoadingView M;
public LoadingErrorView N;
public k2.a O;
public long P;
public TextView Q;
public TextView R;
public TextView S;
public TextView T;
public TextView U;
public TextView V;
public TextView W;
public TextView X;
public TextView Y;
public TextView Z;
public TextView f7630a0;
public TextView f7631b0;
public TextView f7632c0;
public TextView f7633d0;
public MyHistoryOrderDetailRsp.Data f7634e0;
public static SpannableString M(int i10, String str) {
if (str == null) {
str = BuildConfig.FLAVOR;
}
String m6 = j.m(i10, str);
SpannableString spannableString = new SpannableString(m6);
int indexOf = m6.indexOf(str);
int length = str.length() + indexOf;
spannableString.setSpan(new ForegroundColorSpan(j.j(R$color.color_333333)), indexOf, length, 17);
spannableString.setSpan(new StyleSpan(1), indexOf, length, 17);
return spannableString;
}
public final void N() {
this.M.setVisibility(0);
this.N.setVisibility(8);
k2.a aVar = this.O;
long j7 = this.P;
aVar.getClass();
HashMap hashMap = new HashMap();
hashMap.put("applyId", Long.valueOf(j7));
k.a.w("https://api.klikumkm.co.id/api/indo/apply/query/historyorder/detail", hashMap, MyHistoryOrderDetailRsp.class, true).M(b.a()).R(new ra.b(aVar));
}
@Override
public final void b(MyHistoryOrderDetailRsp.Data data) {
this.M.setVisibility(8);
this.N.setVisibility(8);
this.f7634e0 = data;
SpannableString spannableString = new SpannableString(j.m(R$string.lihat_perjanjian, new Object[0]));
spannableString.setSpan(new UnderlineSpan(), 0, spannableString.length(), 0);
this.f7633d0.setText(spannableString);
TextView textView = this.Q;
String applyNo = data.getApplyNo();
if (applyNo == null) {
applyNo = BuildConfig.FLAVOR;
}
SpannableString spannableString2 = new SpannableString(applyNo);
int length = applyNo.length();
spannableString2.setSpan(new ForegroundColorSpan(j.j(R$color.color_333333)), 0, length, 17);
spannableString2.setSpan(new StyleSpan(1), 0, length, 17);
textView.setText(spannableString2);
gc.b.t(this.R, data.getStatus());
this.S.setText(M(R$string.waktu_aplikasi_replace, data.getApplyTime()));
this.T.setText(M(R$string.jumlah_pinjaman_repace, j.m(R$string.rp_replace, c0.z(data.getAmount()))));
this.U.setText(M(R$string.periode_aplikasi_replace, j.m(R$string.hari_replace, data.getApplyPeriod())));
this.V.setText(M(R$string.rekening_pinjaman_replace, data.getWithdrawAccount()));
this.W.setText(M(R$string.jumlah_penarikan_rp_replace, j.m(R$string.rp_replace, c0.z(data.getContractAmt()))));
this.X.setText(M(R$string.biaya_pencairan_rp_replace, j.m(R$string.rp_replace, c0.z(data.getServiceFee()))));
this.Y.setText(M(R$string.total_biaya_rp_replace, j.m(R$string.rp_replace, c0.z(data.getTotalAmount()))));
this.Z.setText(M(R$string.Jumlah_total_yang_harus_dibayarkan_replace, j.m(R$string.rp_replace, c0.z(data.getTotalPaymentAmount()))));
this.f7630a0.setText(M(R$string.jumlah_installment_replace, data.getLoanItem() + BuildConfig.FLAVOR));
if (TextUtils.isEmpty(data.getLentAt())) {
this.f7631b0.setText(M(R$string.batas_waktu_pembayaran_pinjaman_replace, BuildConfig.FLAVOR));
} else {
this.f7631b0.setText(M(R$string.batas_waktu_pembayaran_pinjaman_replace, data.getLentAt() + BuildConfig.FLAVOR));
}
if (TextUtils.isEmpty(data.getRepayDate())) {
this.f7632c0.setText(M(R$string.waktu_pencairan_pinjaman_replace, BuildConfig.FLAVOR));
return;
}
this.f7632c0.setText(M(R$string.waktu_pencairan_pinjaman_replace, data.getRepayDate() + BuildConfig.FLAVOR));
}
@Override
public final void h() {
}
@Override
public final void m(List list) {
}
@Override
public final void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(R$layout.activity_my_history_order_detail);
Intent intent = getIntent();
if (intent != null) {
this.P = intent.getLongExtra("apply_id", 0L);
}
J();
G();
K();
this.K = (ImageView) findViewById(R$id.iv_back_base_title);
this.L = (TextView) findViewById(R$id.tv_title_base_title);
this.M = (LoadingView) findViewById(R$id.loading_view_activity);
this.N = (LoadingErrorView) findViewById(R$id.loading_error_view_activity);
this.Q = (TextView) findViewById(R$id.tv_number);
this.R = (TextView) findViewById(R$id.tv_status);
this.S = (TextView) findViewById(R$id.tv_apply_time);
this.T = (TextView) findViewById(R$id.tv_loan_amount);
this.U = (TextView) findViewById(R$id.tv_apply_limit);
this.V = (TextView) findViewById(R$id.tv_account);
this.W = (TextView) findViewById(R$id.tv_withdrawal_amount);
this.X = (TextView) findViewById(R$id.tv_service_charge);
this.Y = (TextView) findViewById(R$id.tv_total_amout);
this.Z = (TextView) findViewById(R$id.tv_should_pay_amout);
this.f7630a0 = (TextView) findViewById(R$id.tv_by_stages);
this.f7631b0 = (TextView) findViewById(R$id.tv_pay_end_time);
this.f7632c0 = (TextView) findViewById(R$id.tv_loan_disbursement_time);
this.f7633d0 = (TextView) findViewById(R$id.tv_look_privacy);
final int i10 = 0;
this.K.setOnClickListener(new View.OnClickListener(this) {
public final MyHistoryOrderDetailActivity f11228b;
{
this.f11228b = this;
}
@Override
public final void onClick(View view) {
MyHistoryOrderDetailRsp.Data data;
MyHistoryOrderDetailActivity myHistoryOrderDetailActivity = this.f11228b;
switch (i10) {
case 0:
int i11 = MyHistoryOrderDetailActivity.f7629f0;
myHistoryOrderDetailActivity.finish();
break;
case 1:
int i12 = MyHistoryOrderDetailActivity.f7629f0;
myHistoryOrderDetailActivity.N();
break;
default:
int i13 = MyHistoryOrderDetailActivity.f7629f0;
if (!androidx.constraintlayout.compose.a.o() && (data = myHistoryOrderDetailActivity.f7634e0) != null) {
String applyId = data.getApplyId();
if (!j4.d.A()) {
myHistoryOrderDetailActivity.L();
HashMap hashMap = new HashMap();
hashMap.put("applyId", applyId);
com.yx.credit.base.net.k.a.w("https://api.klikumkm.co.id/api/indo/apply/contract/preview/check", hashMap, HistoryPreviewPdfRsp.class, true).M(cb.b.a()).R(new d(myHistoryOrderDetailActivity));
break;
}
}
break;
}
}
});
final int i11 = 1;
this.N.setRetryListener(new View.OnClickListener(this) {
public final MyHistoryOrderDetailActivity f11228b;
{
this.f11228b = this;
}
@Override
public final void onClick(View view) {
MyHistoryOrderDetailRsp.Data data;
MyHistoryOrderDetailActivity myHistoryOrderDetailActivity = this.f11228b;
switch (i11) {
case 0:
int i112 = MyHistoryOrderDetailActivity.f7629f0;
myHistoryOrderDetailActivity.finish();
break;
case 1:
int i12 = MyHistoryOrderDetailActivity.f7629f0;
myHistoryOrderDetailActivity.N();
break;
default:
int i13 = MyHistoryOrderDetailActivity.f7629f0;
if (!androidx.constraintlayout.compose.a.o() && (data = myHistoryOrderDetailActivity.f7634e0) != null) {
String applyId = data.getApplyId();
if (!j4.d.A()) {
myHistoryOrderDetailActivity.L();
HashMap hashMap = new HashMap();
hashMap.put("applyId", applyId);
com.yx.credit.base.net.k.a.w("https://api.klikumkm.co.id/api/indo/apply/contract/preview/check", hashMap, HistoryPreviewPdfRsp.class, true).M(cb.b.a()).R(new d(myHistoryOrderDetailActivity));
break;
}
}
break;
}
}
});
final int i12 = 2;
this.f7633d0.setOnClickListener(new View.OnClickListener(this) {
public final MyHistoryOrderDetailActivity f11228b;
{
this.f11228b = this;
}
@Override
public final void onClick(View view) {
MyHistoryOrderDetailRsp.Data data;
MyHistoryOrderDetailActivity myHistoryOrderDetailActivity = this.f11228b;
switch (i12) {
case 0:
int i112 = MyHistoryOrderDetailActivity.f7629f0;
myHistoryOrderDetailActivity.finish();
break;
case 1:
int i122 = MyHistoryOrderDetailActivity.f7629f0;
myHistoryOrderDetailActivity.N();
break;
default:
int i13 = MyHistoryOrderDetailActivity.f7629f0;
if (!androidx.constraintlayout.compose.a.o() && (data = myHistoryOrderDetailActivity.f7634e0) != null) {
String applyId = data.getApplyId();
if (!j4.d.A()) {
myHistoryOrderDetailActivity.L();
HashMap hashMap = new HashMap();
hashMap.put("applyId", applyId);
com.yx.credit.base.net.k.a.w("https://api.klikumkm.co.id/api/indo/apply/contract/preview/check", hashMap, HistoryPreviewPdfRsp.class, true).M(cb.b.a()).R(new d(myHistoryOrderDetailActivity));
break;
}
}
break;
}
}
});
((ViewGroup) findViewById(R$id.ll_back)).setPadding(0, m.o(YxApplication.f7325c), 0, 0);
this.O = new k2.a((a) this);
this.L.setText(j.m(R$string.perintah_pinjaman_historis, new Object[0]));
N();
}
@Override
public final void onDestroy() {
super.onDestroy();
k2.a aVar = this.O;
if (aVar != null) {
aVar.f9578b = null;
}
}
@Override
public final void u() {
this.M.setVisibility(8);
this.N.setVisibility(0);
}
}