导航菜单

页面标题

页面副标题

klikUMKM v2.0.1 - MyPrivacyAgreementActivity.java 源代码

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

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


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

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 cb.b;
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.http.entity.MyPrivacyAgreementRsp;
import com.yx.credit.indonesia.ui.my.MyPrivacyAgreementActivity;
import com.yx.credit.indonesia.view.LoadingErrorView;
import com.yx.credit.indonesia.view.LoadingView;
import j4.m;
import java.util.HashMap;
import k2.a;
import ra.c;

public class MyPrivacyAgreementActivity extends BaseFragmentActivity {
    public static final int Q = 0;
    public ImageView K;
    public TextView L;
    public LoadingView M;
    public LoadingErrorView N;
    public a O;
    public String P;

    public final void M() {
        this.M.setVisibility(0);
        this.N.setVisibility(8);
        a aVar = this.O;
        aVar.getClass();
        HashMap hashMap = new HashMap();
        k.a.w("https://api.klikumkm.co.id/api/indo/agreements/privacyContent", hashMap, MyPrivacyAgreementRsp.class, true).M(b.a()).R(new c(aVar));
    }

    @Override
    public final void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setContentView(R$layout.activity_my_privacy_agreement);
        Intent intent = getIntent();
        if (intent != null) {
            this.P = intent.getStringExtra("title");
        }
        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);
        final int i10 = 0;
        this.K.setOnClickListener(new View.OnClickListener(this) {

            public final MyPrivacyAgreementActivity f11240b;

            {
                this.f11240b = this;
            }

            @Override
            public final void onClick(View view) {
                MyPrivacyAgreementActivity myPrivacyAgreementActivity = this.f11240b;
                switch (i10) {
                    case 0:
                        int i11 = MyPrivacyAgreementActivity.Q;
                        myPrivacyAgreementActivity.finish();
                        break;
                    default:
                        int i12 = MyPrivacyAgreementActivity.Q;
                        myPrivacyAgreementActivity.M();
                        break;
                }
            }
        });
        final int i11 = 1;
        this.N.setRetryListener(new View.OnClickListener(this) {

            public final MyPrivacyAgreementActivity f11240b;

            {
                this.f11240b = this;
            }

            @Override
            public final void onClick(View view) {
                MyPrivacyAgreementActivity myPrivacyAgreementActivity = this.f11240b;
                switch (i11) {
                    case 0:
                        int i112 = MyPrivacyAgreementActivity.Q;
                        myPrivacyAgreementActivity.finish();
                        break;
                    default:
                        int i12 = MyPrivacyAgreementActivity.Q;
                        myPrivacyAgreementActivity.M();
                        break;
                }
            }
        });
        ((ViewGroup) findViewById(R$id.ll_back)).setPadding(0, m.o(YxApplication.f7325c), 0, 0);
        a aVar = new a(20, false);
        aVar.f9578b = this;
        this.O = aVar;
        this.L.setText(this.P);
        M();
    }

    @Override
    public final void onDestroy() {
        super.onDestroy();
        a aVar = this.O;
        if (aVar != null) {
            aVar.f9578b = null;
        }
    }
}