导航菜单

页面标题

页面副标题

CreditNow v1.0.2 - CatSplashCustomActivity.java 源代码

正在查看: CreditNow v1.0.2 应用的 CatSplashCustomActivity.java JAVA 源代码文件

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


package com.cat.app.activity;

import android.annotation.SuppressLint;
import android.content.Context;
import android.os.Bundle;
import android.text.TextUtils;
import com.aa.commonuilibrary.R$drawable;
import com.aa.commonuilibrary.base.activity.BaseActivity;
import com.aa.foundation.R$string;
import com.cat.app.activity.CatSplashCustomActivity;
import com.cat.app.model.CommonConfigBean;
import com.cat.app.model.GetRsaPublicKeyDetailResp;
import com.cat.app.viewmodel.CatSplashViewModel;
import com.credit.now.online.databinding.ActivitySplashBinding;
import defpackage.e00;
import defpackage.f00;
import defpackage.gz;
import defpackage.h10;
import defpackage.h40;
import defpackage.j40;
import defpackage.jp;
import defpackage.pp1;
import defpackage.tp;
import kotlin.Metadata;
import kotlin.Pair;
import kotlin.jvm.internal.Intrinsics;

@Metadata
public final class CatSplashCustomActivity extends BaseActivity<CatSplashViewModel, ActivitySplashBinding> {

    @Metadata
    public static final class a extends jp<tp<CommonConfigBean>> {
        public a() {
        }

        @Override
        public void b(Throwable th) {
            j40.a.b(j40.a, CatSplashCustomActivity.this.Q0(), CatSplashCustomActivity.this.getResources().getString(R$string.str_network_error), 0, 4, null);
        }

        @Override
        public void a(tp<CommonConfigBean> tpVar) {
            j40.a.b(j40.a, CatSplashCustomActivity.this.Q0(), CatSplashCustomActivity.this.getResources().getString(R$string.str_network_error), 0, 4, null);
        }

        @Override
        public void c(tp<CommonConfigBean> tpVar) {
            String str;
            CommonConfigBean commonConfigBean;
            if (tpVar == null || (commonConfigBean = tpVar.data) == null || (str = commonConfigBean.getLumora()) == null) {
                str = "";
            }
            if (TextUtils.isEmpty(str)) {
                return;
            }
            h10.a.d("face_recognition", str);
        }
    }

    @Metadata
    public static final class b extends jp<tp<GetRsaPublicKeyDetailResp>> {
        public b() {
        }

        @Override
        public void b(Throwable th) {
            CatSplashCustomActivity.C1(CatSplashCustomActivity.this, null, 1, null);
        }

        @Override
        public void a(tp<GetRsaPublicKeyDetailResp> tpVar) {
            CatSplashCustomActivity.this.B1(tpVar != null ? tpVar.responseError : null);
        }

        @Override
        public void c(tp<GetRsaPublicKeyDetailResp> tpVar) {
            CatSplashCustomActivity.this.y1(tpVar);
        }
    }

    @Metadata
    public static final class c extends jp<tp<Void>> {
        public final Pair<mi3, String> b;

        public c(Pair<? extends mi3, String> pair) {
            this.b = pair;
        }

        @Override
        public void b(Throwable th) {
            CatSplashCustomActivity.C1(CatSplashCustomActivity.this, null, 1, null);
        }

        @Override
        public void a(tp<Void> tpVar) {
            CatSplashCustomActivity.this.B1(tpVar != null ? tpVar.responseError : null);
        }

        @Override
        public void c(tp<Void> tpVar) {
            ((CatSplashViewModel) CatSplashCustomActivity.this.O0()).saveSymmetricEncryption((String) this.b.d());
            ((CatSplashViewModel) CatSplashCustomActivity.this.O0()).setMEncryptFlowPathIsSuccess(true);
            CatSplashCustomActivity.this.v1();
            CatSplashCustomActivity.this.w1();
            ((CatSplashViewModel) CatSplashCustomActivity.this.O0()).jumpToNext(CatSplashCustomActivity.this.P0());
        }
    }

    public static final void A1(CatSplashCustomActivity catSplashCustomActivity) {
        Intrinsics.checkNotNullParameter(catSplashCustomActivity, "this$0");
        ((CatSplashViewModel) catSplashCustomActivity.O0()).setMDelayTimeIsArrived(true);
        ((CatSplashViewModel) catSplashCustomActivity.O0()).jumpToNext(catSplashCustomActivity);
    }

    public static void C1(CatSplashCustomActivity catSplashCustomActivity, String str, int i, Object obj) {
        if ((i & 1) != 0) {
            str = "";
        }
        catSplashCustomActivity.B1(str);
    }

    public final void f0() {
        if (!qh0.c(this)) {
            C1(this, null, 1, null);
            return;
        }
        if (!((Boolean) h10.a.b("getPublicKey", Boolean.FALSE)).booleanValue()) {
            x1();
            ((ActivitySplashBinding) n1()).clSplash.postDelayed(new Runnable() {
                @Override
                public final void run() {
                    CatSplashCustomActivity.z1(CatSplashCustomActivity.this);
                }
            }, 3000L);
        } else {
            w1();
            ((CatSplashViewModel) O0()).setMEncryptFlowPathIsSuccess(true);
            ((ActivitySplashBinding) n1()).clSplash.postDelayed(new Runnable() {
                @Override
                public final void run() {
                    CatSplashCustomActivity.A1(CatSplashCustomActivity.this);
                }
            }, 1000L);
        }
    }

    public static final void z1(CatSplashCustomActivity catSplashCustomActivity) {
        Intrinsics.checkNotNullParameter(catSplashCustomActivity, "this$0");
        ((CatSplashViewModel) catSplashCustomActivity.O0()).setMDelayTimeIsArrived(true);
        ((CatSplashViewModel) catSplashCustomActivity.O0()).jumpToNext(catSplashCustomActivity);
    }

    public final void B1(String str) {
        e00 B;
        e00 C;
        e00 z;
        e00 A;
        e00 v;
        e00 e00Var = new e00();
        String string = getResources().getString(com.aa.commonuilibrary.R$string.str_no_connection);
        Intrinsics.checkNotNullExpressionValue(string, "getString(...)");
        if (TextUtils.isEmpty(str)) {
            str = getResources().getString(com.aa.commonuilibrary.R$string.str_no_connection_des);
        } else if (str == null) {
            str = "";
        }
        Intrinsics.c(str);
        String string2 = getResources().getString(com.aa.commonuilibrary.R$string.str_retry_loading);
        Intrinsics.checkNotNullExpressionValue(string2, "getString(...)");
        e00 n = e00Var.n(this, f00.b.a);
        if (n != null && (B = n.B(string)) != null && (C = B.C(R$drawable.cat_icon_forbid)) != null && (z = C.z(Boolean.FALSE)) != null && (A = z.A(str)) != null && (v = A.v(string2)) != null) {
            v.h();
        }
        e00Var.y(new d(e00Var, this));
    }

    @Override
    public void V0(Bundle bundle) {
        h40.a.a(this);
        f0();
    }

    public final void v1() {
        h10 h10Var = h10.a;
        if (((Boolean) h10Var.b("af_app_activation", Boolean.FALSE)).booleanValue()) {
            return;
        }
        h10Var.d("af_app_activation", Boolean.TRUE);
        Context Q0 = Q0();
        if (Q0 != null) {
            gz.c("af_app_activation", Q0);
        }
    }

    @SuppressLint({"CheckResult"})
    public final void w1() {
        ((CatSplashViewModel) O0()).dealWithGetCommonConfig(new a());
    }

    @SuppressLint({"CheckResult"})
    public final void x1() {
        ((CatSplashViewModel) O0()).dealWithGetRsaPublicKey(new b());
    }

    @SuppressLint({"CheckResult"})
    public final void y1(tp<GetRsaPublicKeyDetailResp> tpVar) {
        Pair<mi3, String> generateRequestBodyForUploadRsaPublicKey = ((CatSplashViewModel) O0()).generateRequestBodyForUploadRsaPublicKey(tpVar);
        ((CatSplashViewModel) O0()).dealWithUploadRsaPublicKey((mi3) generateRequestBodyForUploadRsaPublicKey.c(), new c(generateRequestBodyForUploadRsaPublicKey));
    }

    @Metadata
    public static final class d implements pp1 {
        public final e00 a;
        public final CatSplashCustomActivity b;

        public d(e00 e00Var, CatSplashCustomActivity catSplashCustomActivity) {
            this.a = e00Var;
            this.b = catSplashCustomActivity;
        }

        @Override
        public void c() {
            this.a.b();
            this.b.f0();
        }

        @Override
        public void a() {
        }

        @Override
        public void b() {
        }
    }
}