导航菜单

页面标题

页面副标题

klikUMKM v2.0.1 - RepaymentActivity.java 源代码

正在查看: klikUMKM v2.0.1 应用的 RepaymentActivity.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.yx.credit.indonesia.ui.repayment;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
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$id;
import com.yx.credit.indonesia.R$layout;
import com.yx.credit.indonesia.R$string;
import com.yx.credit.indonesia.http.entity.RepaymentRsp;
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 j4.j;
import j4.m;
import java.util.HashMap;
import ta.c;
import ua.d;

public class RepaymentActivity extends BaseFragmentActivity {
    public static final int V = 0;
    public ImageView K;
    public TextView L;
    public LoadingView M;
    public LoadingErrorView N;
    public TextView O;
    public TextView P;
    public RecyclerView Q;
    public d R;
    public c S;
    public long T;
    public RepaymentTransferDataEntity U;

    @Override
    public final boolean H() {
        return true;
    }

    @Override
    public final boolean I() {
        return true;
    }

    public final void M() {
        this.M.setVisibility(0);
        this.N.setVisibility(8);
        d dVar = this.R;
        dVar.getClass();
        HashMap hashMap = new HashMap();
        k.a.w("https://api.klikumkm.co.id/api/indo/repay/wayList", hashMap, RepaymentRsp.class, true).M(b.a()).R(new ua.c(dVar));
    }

    @Override
    public final void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setContentView(R$layout.activity_repayment);
        Intent intent = getIntent();
        if (intent != null) {
            RepaymentTransferDataEntity repaymentTransferDataEntity = (RepaymentTransferDataEntity) intent.getSerializableExtra("entity");
            this.U = repaymentTransferDataEntity;
            if (repaymentTransferDataEntity != null) {
                this.T = repaymentTransferDataEntity.getAmount();
            }
        }
        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.O = (TextView) findViewById(R$id.tv_total_number);
        this.P = (TextView) findViewById(R$id.tv_confirm);
        this.Q = (RecyclerView) findViewById(R$id.rv_list);
        final int i10 = 0;
        this.K.setOnClickListener(new View.OnClickListener(this) {

            public final RepaymentActivity f11606b;

            {
                this.f11606b = this;
            }

            @Override
            public final void onClick(View view) {
                RepaymentActivity repaymentActivity = this.f11606b;
                switch (i10) {
                    case 0:
                        int i11 = RepaymentActivity.V;
                        repaymentActivity.finish();
                        break;
                    case 1:
                        int i12 = RepaymentActivity.V;
                        c0.q(repaymentActivity.T + BuildConfig.FLAVOR);
                        break;
                    default:
                        int i13 = RepaymentActivity.V;
                        repaymentActivity.M();
                        break;
                }
            }
        });
        final int i11 = 1;
        this.P.setOnClickListener(new View.OnClickListener(this) {

            public final RepaymentActivity f11606b;

            {
                this.f11606b = this;
            }

            @Override
            public final void onClick(View view) {
                RepaymentActivity repaymentActivity = this.f11606b;
                switch (i11) {
                    case 0:
                        int i112 = RepaymentActivity.V;
                        repaymentActivity.finish();
                        break;
                    case 1:
                        int i12 = RepaymentActivity.V;
                        c0.q(repaymentActivity.T + BuildConfig.FLAVOR);
                        break;
                    default:
                        int i13 = RepaymentActivity.V;
                        repaymentActivity.M();
                        break;
                }
            }
        });
        final int i12 = 2;
        this.N.setRetryListener(new View.OnClickListener(this) {

            public final RepaymentActivity f11606b;

            {
                this.f11606b = this;
            }

            @Override
            public final void onClick(View view) {
                RepaymentActivity repaymentActivity = this.f11606b;
                switch (i12) {
                    case 0:
                        int i112 = RepaymentActivity.V;
                        repaymentActivity.finish();
                        break;
                    case 1:
                        int i122 = RepaymentActivity.V;
                        c0.q(repaymentActivity.T + BuildConfig.FLAVOR);
                        break;
                    default:
                        int i13 = RepaymentActivity.V;
                        repaymentActivity.M();
                        break;
                }
            }
        });
        ((ViewGroup) findViewById(R$id.ll_back)).setPadding(0, m.o(YxApplication.f7325c), 0, 0);
        d dVar = new d(0);
        dVar.f11835b = this;
        this.R = dVar;
        this.L.setText(j.m(R$string.pembayaran, new Object[0]));
        c cVar = new c(this, this);
        this.S = cVar;
        this.Q.setAdapter(cVar);
        this.Q.setLayoutManager(new LinearLayoutManager(1));
        this.Q.g(new qa.k(1));
        this.O.setText(c0.z(this.T));
        M();
    }

    @Override
    public final void onDestroy() {
        super.onDestroy();
        d dVar = this.R;
        if (dVar != null) {
            dVar.f11835b = null;
        }
    }
}