导航菜单

页面标题

页面副标题

klikUMKM v2.0.1 - PermissionStatementActivity.java 源代码

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

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


package com.yx.credit.indonesia.ui;

import aa.n;
import aa.o;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
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.PermissionStatementRsp;
import com.yx.credit.indonesia.ui.LoginActivity;
import com.yx.credit.indonesia.ui.PermissionStatementActivity;
import com.yx.credit.indonesia.view.LoadingErrorView;
import com.yx.credit.indonesia.view.LoadingView;
import j4.m;
import java.util.HashMap;
import la.j;

public class PermissionStatementActivity extends BaseFragmentActivity {
    public static final int O = 0;
    public LoadingView K;
    public LoadingErrorView L;
    public TextView M;
    public TextView N;

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

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

    public final void M() {
        this.K.setVisibility(0);
        this.L.setVisibility(8);
        HashMap hashMap = new HashMap();
        k.a.w("https://api.klikumkm.co.id/api/indo/agreements/permission/content", hashMap, PermissionStatementRsp.class, true).M(b.a()).R(new j(this));
    }

    @Override
    public final void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setContentView(R$layout.activity_permission_statement);
        J();
        G();
        K();
        this.K = (LoadingView) findViewById(R$id.loading_view_activity);
        this.L = (LoadingErrorView) findViewById(R$id.loading_error_view_activity);
        this.M = (TextView) findViewById(R$id.tv_cancel);
        this.N = (TextView) findViewById(R$id.tv_confirm);
        final int i10 = 0;
        this.L.setRetryListener(new View.OnClickListener(this) {

            public final PermissionStatementActivity f10033b;

            {
                this.f10033b = this;
            }

            @Override
            public final void onClick(View view) {
                switch (i10) {
                    case 0:
                        int i11 = PermissionStatementActivity.O;
                        this.f10033b.M();
                        break;
                    case 1:
                        int i12 = PermissionStatementActivity.O;
                        PermissionStatementActivity permissionStatementActivity = this.f10033b;
                        o oVar = n.a;
                        oVar.a = false;
                        SharedPreferences.Editor editor = (SharedPreferences.Editor) ((t8.c) oVar.f352b).f11605c;
                        if (editor != null) {
                            editor.putBoolean("read_permission", false);
                            editor.apply();
                        }
                        BaseFragmentActivity baseFragmentActivity = permissionStatementActivity.F;
                        boolean z10 = LoginActivity.S;
                        baseFragmentActivity.startActivity(new Intent(baseFragmentActivity, (Class<?>) LoginActivity.class));
                        permissionStatementActivity.finish();
                        break;
                    default:
                        PermissionStatementActivity permissionStatementActivity2 = this.f10033b;
                        int i13 = PermissionStatementActivity.O;
                        uc.e.G(YxApplication.f7325c);
                        o oVar2 = n.a;
                        oVar2.a = true;
                        SharedPreferences.Editor editor2 = (SharedPreferences.Editor) ((t8.c) oVar2.f352b).f11605c;
                        if (editor2 != null) {
                            editor2.putBoolean("read_permission", true);
                            editor2.apply();
                        }
                        BaseFragmentActivity baseFragmentActivity2 = permissionStatementActivity2.F;
                        boolean z11 = LoginActivity.S;
                        baseFragmentActivity2.startActivity(new Intent(baseFragmentActivity2, (Class<?>) LoginActivity.class));
                        permissionStatementActivity2.finish();
                        permissionStatementActivity2.F(true);
                        break;
                }
            }
        });
        final int i11 = 1;
        this.M.setOnClickListener(new View.OnClickListener(this) {

            public final PermissionStatementActivity f10033b;

            {
                this.f10033b = this;
            }

            @Override
            public final void onClick(View view) {
                switch (i11) {
                    case 0:
                        int i112 = PermissionStatementActivity.O;
                        this.f10033b.M();
                        break;
                    case 1:
                        int i12 = PermissionStatementActivity.O;
                        PermissionStatementActivity permissionStatementActivity = this.f10033b;
                        o oVar = n.a;
                        oVar.a = false;
                        SharedPreferences.Editor editor = (SharedPreferences.Editor) ((t8.c) oVar.f352b).f11605c;
                        if (editor != null) {
                            editor.putBoolean("read_permission", false);
                            editor.apply();
                        }
                        BaseFragmentActivity baseFragmentActivity = permissionStatementActivity.F;
                        boolean z10 = LoginActivity.S;
                        baseFragmentActivity.startActivity(new Intent(baseFragmentActivity, (Class<?>) LoginActivity.class));
                        permissionStatementActivity.finish();
                        break;
                    default:
                        PermissionStatementActivity permissionStatementActivity2 = this.f10033b;
                        int i13 = PermissionStatementActivity.O;
                        uc.e.G(YxApplication.f7325c);
                        o oVar2 = n.a;
                        oVar2.a = true;
                        SharedPreferences.Editor editor2 = (SharedPreferences.Editor) ((t8.c) oVar2.f352b).f11605c;
                        if (editor2 != null) {
                            editor2.putBoolean("read_permission", true);
                            editor2.apply();
                        }
                        BaseFragmentActivity baseFragmentActivity2 = permissionStatementActivity2.F;
                        boolean z11 = LoginActivity.S;
                        baseFragmentActivity2.startActivity(new Intent(baseFragmentActivity2, (Class<?>) LoginActivity.class));
                        permissionStatementActivity2.finish();
                        permissionStatementActivity2.F(true);
                        break;
                }
            }
        });
        final int i12 = 2;
        this.N.setOnClickListener(new View.OnClickListener(this) {

            public final PermissionStatementActivity f10033b;

            {
                this.f10033b = this;
            }

            @Override
            public final void onClick(View view) {
                switch (i12) {
                    case 0:
                        int i112 = PermissionStatementActivity.O;
                        this.f10033b.M();
                        break;
                    case 1:
                        int i122 = PermissionStatementActivity.O;
                        PermissionStatementActivity permissionStatementActivity = this.f10033b;
                        o oVar = n.a;
                        oVar.a = false;
                        SharedPreferences.Editor editor = (SharedPreferences.Editor) ((t8.c) oVar.f352b).f11605c;
                        if (editor != null) {
                            editor.putBoolean("read_permission", false);
                            editor.apply();
                        }
                        BaseFragmentActivity baseFragmentActivity = permissionStatementActivity.F;
                        boolean z10 = LoginActivity.S;
                        baseFragmentActivity.startActivity(new Intent(baseFragmentActivity, (Class<?>) LoginActivity.class));
                        permissionStatementActivity.finish();
                        break;
                    default:
                        PermissionStatementActivity permissionStatementActivity2 = this.f10033b;
                        int i13 = PermissionStatementActivity.O;
                        uc.e.G(YxApplication.f7325c);
                        o oVar2 = n.a;
                        oVar2.a = true;
                        SharedPreferences.Editor editor2 = (SharedPreferences.Editor) ((t8.c) oVar2.f352b).f11605c;
                        if (editor2 != null) {
                            editor2.putBoolean("read_permission", true);
                            editor2.apply();
                        }
                        BaseFragmentActivity baseFragmentActivity2 = permissionStatementActivity2.F;
                        boolean z11 = LoginActivity.S;
                        baseFragmentActivity2.startActivity(new Intent(baseFragmentActivity2, (Class<?>) LoginActivity.class));
                        permissionStatementActivity2.finish();
                        permissionStatementActivity2.F(true);
                        break;
                }
            }
        });
        ((ViewGroup) findViewById(R$id.ll_back)).setPadding(0, m.o(YxApplication.f7325c), 0, 0);
        M();
    }
}