正在查看: klikUMKM v2.0.1 应用的 l.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: klikUMKM v2.0.1 应用的 l.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package ia;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.fragment.app.FragmentActivity;
import androidx.fragment.app.n0;
import androidx.media.o;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.yx.credit.indonesia.R$drawable;
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.ComputeRepayAmountRsp;
import com.yx.credit.indonesia.http.entity.OrderContentRsp;
import com.yx.credit.indonesia.http.entity.RepaymentTransferDataEntity;
import com.yx.credit.indonesia.ui.repayment.RepaymentActivity;
import com.yx.credit.indonesia.view.LoadingErrorView;
import com.yx.credit.indonesia.view.LoadingView;
import j4.c0;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Objects;
public class l extends d implements ja.a {
public int f9110b0;
public LoadingView f9111c0;
public LoadingErrorView f9112d0;
public RecyclerView f9113e0;
public LinearLayout f9114f0;
public TextView f9115g0;
public TextView f9116h0;
public LinearLayout i0;
public ImageView j0;
public k f9117k0;
public o f9118l0;
public LinearLayout f9122p0;
public View f9123q0;
public boolean f9124r0;
public final int f9119m0 = R$drawable.circle_select;
public final int f9120n0 = R$drawable.circle_unselect;
public boolean f9121o0 = false;
public long f9125s0 = 0;
@Override
public final void C(Bundle bundle) {
super.C(bundle);
this.f11295a0 = System.currentTimeMillis();
androidx.constraintlayout.compose.a.y("OrderUnRepaidFragment");
}
@Override
public final View D(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
View inflate = layoutInflater.inflate(R$layout.fragment_order_content, viewGroup, false);
this.f9123q0 = inflate;
this.f9111c0 = (LoadingView) inflate.findViewById(R$id.loading_view_fragment);
this.f9112d0 = (LoadingErrorView) this.f9123q0.findViewById(R$id.loading_error_view_fragment);
this.f9113e0 = (RecyclerView) this.f9123q0.findViewById(R$id.rv_list_fragment);
this.f9114f0 = (LinearLayout) this.f9123q0.findViewById(R$id.ll_bottom_fragment);
this.f9115g0 = (TextView) this.f9123q0.findViewById(R$id.tv_total_fragment);
this.f9116h0 = (TextView) this.f9123q0.findViewById(R$id.tv_confirm_fragment);
this.i0 = (LinearLayout) this.f9123q0.findViewById(R$id.ll_no_data_fragment);
this.j0 = (ImageView) this.f9123q0.findViewById(R$id.iv_select_all_fragment);
this.f9122p0 = (LinearLayout) this.f9123q0.findViewById(R$id.ll_select_all_activity);
this.f9118l0 = new o(this);
k kVar = new k(this, new f(this));
this.f9117k0 = kVar;
this.f9113e0.setAdapter(kVar);
this.f9113e0.setLayoutManager(new LinearLayoutManager(1));
final int i10 = 0;
this.f9122p0.setOnClickListener(new View.OnClickListener(this) {
public final l f9102b;
{
this.f9102b = this;
}
@Override
public final void onClick(View view) {
l lVar = this.f9102b;
switch (i10) {
case 0:
boolean z10 = lVar.f9121o0;
ArrayList arrayList = new ArrayList();
ArrayList arrayList2 = lVar.f9117k0.f8894c;
if (h4.h.v(arrayList2)) {
Iterator it = arrayList2.iterator();
while (it.hasNext()) {
OrderContentRsp.Data.BillListDetail billListDetail = (OrderContentRsp.Data.BillListDetail) it.next();
if (!z10) {
arrayList.add(Long.valueOf(billListDetail.getRepayPlanId()));
}
}
}
if (!h4.h.v(arrayList)) {
lVar.f9125s0 = 0L;
lVar.U(0L);
break;
} else {
lVar.X(true, arrayList, new f(lVar));
break;
}
case 1:
androidx.constraintlayout.compose.a.e("OrderUnRepaidFragment", System.currentTimeMillis() - lVar.f11295a0, true);
ArrayList arrayList3 = lVar.f9117k0.f8894c;
ArrayList arrayList4 = new ArrayList();
if (h4.h.v(arrayList3)) {
Iterator it2 = arrayList3.iterator();
while (it2.hasNext()) {
OrderContentRsp.Data.BillListDetail billListDetail2 = (OrderContentRsp.Data.BillListDetail) it2.next();
if (billListDetail2.isSelect()) {
arrayList4.add(Long.valueOf(billListDetail2.getRepayPlanId()));
}
}
}
RepaymentTransferDataEntity repaymentTransferDataEntity = new RepaymentTransferDataEntity();
repaymentTransferDataEntity.setAmount(lVar.f9125s0);
repaymentTransferDataEntity.setRepayPlanIds(arrayList4);
FragmentActivity l6 = lVar.l();
int i11 = RepaymentActivity.V;
Intent intent = new Intent(l6, (Class<?>) RepaymentActivity.class);
intent.putExtra("entity", repaymentTransferDataEntity);
l6.startActivity(intent);
break;
default:
lVar.T();
break;
}
}
});
final int i11 = 1;
this.f9116h0.setOnClickListener(new View.OnClickListener(this) {
public final l f9102b;
{
this.f9102b = this;
}
@Override
public final void onClick(View view) {
l lVar = this.f9102b;
switch (i11) {
case 0:
boolean z10 = lVar.f9121o0;
ArrayList arrayList = new ArrayList();
ArrayList arrayList2 = lVar.f9117k0.f8894c;
if (h4.h.v(arrayList2)) {
Iterator it = arrayList2.iterator();
while (it.hasNext()) {
OrderContentRsp.Data.BillListDetail billListDetail = (OrderContentRsp.Data.BillListDetail) it.next();
if (!z10) {
arrayList.add(Long.valueOf(billListDetail.getRepayPlanId()));
}
}
}
if (!h4.h.v(arrayList)) {
lVar.f9125s0 = 0L;
lVar.U(0L);
break;
} else {
lVar.X(true, arrayList, new f(lVar));
break;
}
case 1:
androidx.constraintlayout.compose.a.e("OrderUnRepaidFragment", System.currentTimeMillis() - lVar.f11295a0, true);
ArrayList arrayList3 = lVar.f9117k0.f8894c;
ArrayList arrayList4 = new ArrayList();
if (h4.h.v(arrayList3)) {
Iterator it2 = arrayList3.iterator();
while (it2.hasNext()) {
OrderContentRsp.Data.BillListDetail billListDetail2 = (OrderContentRsp.Data.BillListDetail) it2.next();
if (billListDetail2.isSelect()) {
arrayList4.add(Long.valueOf(billListDetail2.getRepayPlanId()));
}
}
}
RepaymentTransferDataEntity repaymentTransferDataEntity = new RepaymentTransferDataEntity();
repaymentTransferDataEntity.setAmount(lVar.f9125s0);
repaymentTransferDataEntity.setRepayPlanIds(arrayList4);
FragmentActivity l6 = lVar.l();
int i112 = RepaymentActivity.V;
Intent intent = new Intent(l6, (Class<?>) RepaymentActivity.class);
intent.putExtra("entity", repaymentTransferDataEntity);
l6.startActivity(intent);
break;
default:
lVar.T();
break;
}
}
});
final int i12 = 2;
this.f9112d0.setRetryListener(new View.OnClickListener(this) {
public final l f9102b;
{
this.f9102b = this;
}
@Override
public final void onClick(View view) {
l lVar = this.f9102b;
switch (i12) {
case 0:
boolean z10 = lVar.f9121o0;
ArrayList arrayList = new ArrayList();
ArrayList arrayList2 = lVar.f9117k0.f8894c;
if (h4.h.v(arrayList2)) {
Iterator it = arrayList2.iterator();
while (it.hasNext()) {
OrderContentRsp.Data.BillListDetail billListDetail = (OrderContentRsp.Data.BillListDetail) it.next();
if (!z10) {
arrayList.add(Long.valueOf(billListDetail.getRepayPlanId()));
}
}
}
if (!h4.h.v(arrayList)) {
lVar.f9125s0 = 0L;
lVar.U(0L);
break;
} else {
lVar.X(true, arrayList, new f(lVar));
break;
}
case 1:
androidx.constraintlayout.compose.a.e("OrderUnRepaidFragment", System.currentTimeMillis() - lVar.f11295a0, true);
ArrayList arrayList3 = lVar.f9117k0.f8894c;
ArrayList arrayList4 = new ArrayList();
if (h4.h.v(arrayList3)) {
Iterator it2 = arrayList3.iterator();
while (it2.hasNext()) {
OrderContentRsp.Data.BillListDetail billListDetail2 = (OrderContentRsp.Data.BillListDetail) it2.next();
if (billListDetail2.isSelect()) {
arrayList4.add(Long.valueOf(billListDetail2.getRepayPlanId()));
}
}
}
RepaymentTransferDataEntity repaymentTransferDataEntity = new RepaymentTransferDataEntity();
repaymentTransferDataEntity.setAmount(lVar.f9125s0);
repaymentTransferDataEntity.setRepayPlanIds(arrayList4);
FragmentActivity l6 = lVar.l();
int i112 = RepaymentActivity.V;
Intent intent = new Intent(l6, (Class<?>) RepaymentActivity.class);
intent.putExtra("entity", repaymentTransferDataEntity);
l6.startActivity(intent);
break;
default:
lVar.T();
break;
}
}
});
return this.f9123q0;
}
@Override
public final void E() {
super.E();
androidx.constraintlayout.compose.a.x("OrderUnRepaidFragment", System.currentTimeMillis() - this.f11295a0);
}
@Override
public final void F() {
this.G = true;
o oVar = this.f9118l0;
if (oVar != null) {
oVar.f4990b = null;
}
}
@Override
public final void I() {
super.I();
T();
}
@Override
public final void T() {
Objects.toString(this.f9123q0);
this.Y.getClass();
p6.f.n();
if (this.f9123q0 == null) {
return;
}
if (this.f9124r0) {
p6.f.n();
return;
}
this.f9124r0 = true;
this.f9111c0.setVisibility(0);
this.f9112d0.setVisibility(8);
this.f9118l0.m(this.f9110b0);
}
public final void U(long j7) {
this.f9121o0 = !this.f9121o0;
ArrayList arrayList = this.f9117k0.f8894c;
if (h4.h.v(arrayList)) {
Iterator it = arrayList.iterator();
while (it.hasNext()) {
((OrderContentRsp.Data.BillListDetail) it.next()).setSelect(this.f9121o0);
}
}
if (this.f9121o0) {
this.j0.setImageResource(this.f9119m0);
} else {
this.j0.setImageResource(this.f9120n0);
}
this.f9117k0.d();
this.f9115g0.setText(j4.j.m(R$string.rp_space_replace, c0.z(j7)));
if (W() > 0) {
this.f9114f0.setVisibility(0);
} else {
this.f9114f0.setVisibility(8);
}
}
public final void V() {
this.f9111c0.setVisibility(8);
this.f9112d0.setVisibility(8);
}
public final int W() {
ArrayList arrayList = this.f9117k0.f8894c;
int i10 = 0;
if (h4.h.v(arrayList)) {
Iterator it = arrayList.iterator();
while (it.hasNext()) {
if (((OrderContentRsp.Data.BillListDetail) it.next()).isSelect()) {
i10++;
}
}
}
return i10;
}
public final void X(boolean z10, ArrayList arrayList, i iVar) {
if (j4.d.A()) {
return;
}
if (z10) {
n0 m6 = m();
k9.a aVar = (k9.a) m6.B("loading_dialog_fragment");
this.Z = aVar;
p6.f fVar = this.Y;
if (aVar == null) {
fVar.getClass();
p6.f.n();
this.Z = new l9.f();
} else {
fVar.getClass();
p6.f.n();
}
if (this.Z.u()) {
fVar.getClass();
p6.f.n();
} else {
fVar.getClass();
p6.f.n();
this.Z.Y(m6, "loading_dialog_fragment");
}
} else {
this.f9111c0.setVisibility(0);
this.f9112d0.setVisibility(8);
}
HashMap hashMap = new HashMap();
hashMap.put("repayPlanIds", arrayList);
com.yx.credit.base.net.k.a.w("https://api.klikumkm.co.id/api/indo/repay/computeRepayAmount", hashMap, ComputeRepayAmountRsp.class, true).M(cb.b.a()).R(new h(this, z10, iVar));
}
@Override
public final void a() {
this.f9124r0 = false;
this.f9111c0.setVisibility(8);
this.f9112d0.setVisibility(0);
}
@Override
public final void h(OrderContentRsp.Data data) {
this.f9124r0 = false;
V();
List<OrderContentRsp.Data.BillListDetail> billListDetailVOList = data.getBillListDetailVOList();
if (!h4.h.v(billListDetailVOList)) {
this.f9113e0.setVisibility(8);
this.i0.setVisibility(0);
return;
}
ArrayList arrayList = new ArrayList();
arrayList.add(Long.valueOf(billListDetailVOList.get(0).getRepayPlanId()));
this.f9125s0 = 0L;
X(false, arrayList, new g(this, billListDetailVOList));
this.f9113e0.setVisibility(0);
this.i0.setVisibility(8);
this.f9117k0.l(billListDetailVOList);
}
}