导航菜单

页面标题

页面副标题

EfectivoYa v2.3 - ActivityMain.java 源代码

正在查看: EfectivoYa v2.3 应用的 ActivityMain.java JAVA 源代码文件

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


package com.cnhz.android.main.view.activity;

import android.app.Application;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.MenuItem;
import android.view.View;
import androidx.appcompat.app.ActionBar;
import androidx.constraintlayout.core.motion.utils.TypedValues;
import androidx.exifinterface.media.ExifInterface;
import androidx.fragment.app.FragmentManager;
import androidx.navigation.ActivityKt;
import androidx.navigation.NavController;
import androidx.viewbinding.ViewBinding;
import com.appsflyer.AppsFlyerLib;
import com.cnhz.android.main.R$color;
import com.cnhz.android.main.R$id;
import com.cnhz.android.main.base.BasePageActivity;
import com.cnhz.android.main.base.a;
import com.cnhz.android.main.databinding.PageMainBinding;
import com.cnhz.android.main.otherNet.bean.CheckVersionBean;
import com.cnhz.android.main.otherNet.bean.ConfigInfoResponseBean;
import com.cnhz.android.main.product.bean.CreditLimitInfoBean;
import com.cnhz.android.main.usercenter.bean.AFUploadBean;
import com.cnhz.android.main.usercenter.bean.LoginBean;
import com.cnhz.android.main.view.activity.ActivityMain;
import com.cnhz.android.main.view.fragment.DialogFragment;
import com.cnhz.android.net.api.BaseResponse;
import com.google.android.material.navigation.NavigationBarView;
import com.kls.snip.core.InfoLib;
import com.kls.snip.interfaces.InfoCallback;
import d0.a;
import h0.g;
import java.util.ArrayList;
import java.util.Map;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import p0.b;

@Metadata(d1 = {"\u0000x\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u0011\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\u0015\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0013\n\u0002\u0018\u0002\n\u0002\b\u000b\n\u0002\u0018\u0002\n\u0002\b\r\u0018\u00002\u00020\u00012\u00020\u00022\u00020\u00032\u00020\u0004:\u0001cB\u0007¢\u0006\u0004\ba\u0010bJ\b\u0010\u0006\u001a\u00020\u0005H\u0002J\b\u0010\b\u001a\u00020\u0007H\u0002J\u0010\u0010\u000b\u001a\u00020\u00072\u0006\u0010\n\u001a\u00020\tH\u0002J\b\u0010\f\u001a\u00020\u0007H\u0002J\u0012\u0010\u000f\u001a\u00020\u00072\b\u0010\u000e\u001a\u0004\u0018\u00010\rH\u0014J\b\u0010\u0010\u001a\u00020\u0007H\u0016J\b\u0010\u0011\u001a\u00020\u0007H\u0016J\b\u0010\u0012\u001a\u00020\u0007H\u0016J\b\u0010\u0013\u001a\u00020\u0007H\u0014J\b\u0010\u0014\u001a\u00020\u0007H\u0016J\b\u0010\u0015\u001a\u00020\u0007H\u0014J/\u0010\u001d\u001a\u00020\u00072\u0006\u0010\u0017\u001a\u00020\u00162\u000e\u0010\u001a\u001a\n\u0012\u0006\b\u0001\u0012\u00020\u00190\u00182\u0006\u0010\u001c\u001a\u00020\u001bH\u0016¢\u0006\u0004\b\u001d\u0010\u001eJ\u0010\u0010!\u001a\u00020\u00072\b\u0010 \u001a\u0004\u0018\u00010\u001fJ\u001d\u0010$\u001a\u00020\u0007\"\u0004\b\u0000\u0010\"2\u0006\u0010#\u001a\u00028\u0000H\u0016¢\u0006\u0004\b$\u0010%J\u001d\u0010&\u001a\u00020\u0007\"\u0004\b\u0000\u0010\"2\u0006\u0010#\u001a\u00028\u0000H\u0016¢\u0006\u0004\b&\u0010%J\u001d\u0010'\u001a\u00020\u0007\"\u0004\b\u0000\u0010\"2\u0006\u0010#\u001a\u00028\u0000H\u0016¢\u0006\u0004\b'\u0010%R\"\u0010.\u001a\u00020(8\u0006@\u0006X\u0086.¢\u0006\u0012\n\u0004\b'\u0010)\u001a\u0004\b*\u0010+\"\u0004\b,\u0010-R\"\u00106\u001a\u00020/8\u0006@\u0006X\u0086.¢\u0006\u0012\n\u0004\b0\u00101\u001a\u0004\b2\u00103\"\u0004\b4\u00105R\"\u0010>\u001a\u0002078\u0006@\u0006X\u0086.¢\u0006\u0012\n\u0004\b8\u00109\u001a\u0004\b:\u0010;\"\u0004\b<\u0010=R\"\u0010D\u001a\u00020\u00168\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b?\u0010\f\u001a\u0004\b@\u0010A\"\u0004\bB\u0010CR(\u0010J\u001a\b\u0012\u0004\u0012\u00020\u00190\u00188\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b\u0011\u0010E\u001a\u0004\bF\u0010G\"\u0004\bH\u0010IR$\u0010P\u001a\u0004\u0018\u00010K8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b\u0012\u0010L\u001a\u0004\b#\u0010M\"\u0004\bN\u0010OR$\u0010V\u001a\u0004\u0018\u00010\u001f8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b\u0010\u0010Q\u001a\u0004\bR\u0010S\"\u0004\bT\u0010UR$\u0010^\u001a\u0004\u0018\u00010W8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\bX\u0010Y\u001a\u0004\bZ\u0010[\"\u0004\b\\\u0010]R\u0018\u0010`\u001a\u0004\u0018\u00010W8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b_\u0010Y¨\u0006d"}, d2 = {"Lcom/cnhz/android/main/view/activity/ActivityMain;", "Lcom/cnhz/android/main/base/BasePageActivity;", "Ld0/e;", "Ld0/a;", "Lh0/g;", "", "r", "", "s", "Lcom/cnhz/android/main/otherNet/bean/CheckVersionBean;", "versionBean", "H", "I", "Landroid/os/Bundle;", "savedInstanceState", "onCreate", "o", "m", "n", "onResume", "onBackPressed", "onStart", "", "requestCode", "", "", "permissions", "", "grantResults", "onRequestPermissionsResult", "(I[Ljava/lang/String;[I)V", "Lcom/cnhz/android/main/view/activity/ActivityMain$a;", "result", "C", ExifInterface.GPS_DIRECTION_TRUE, "t", "f", "(Ljava/lang/Object;)V", "e", "i", "Lo0/a;", "Lo0/a;", "x", "()Lo0/a;", "G", "(Lo0/a;)V", "mUserCenterPrensenter", "Lf0/a;", "j", "Lf0/a;", "u", "()Lf0/a;", ExifInterface.LONGITUDE_EAST, "(Lf0/a;)V", "mOtherPresenter", "Lj0/a;", "k", "Lj0/a;", "w", "()Lj0/a;", "F", "(Lj0/a;)V", "mProductPresenter", "l", ExifInterface.GPS_MEASUREMENT_IN_PROGRESS, "()I", "setPermissionRequestCode", "(I)V", "permissionRequestCode", "[Ljava/lang/String;", "z", "()[Ljava/lang/String;", "setPermissionArray", "([Ljava/lang/String;)V", "permissionArray", "Lcom/cnhz/android/main/product/bean/CreditLimitInfoBean;", "Lcom/cnhz/android/main/product/bean/CreditLimitInfoBean;", "()Lcom/cnhz/android/main/product/bean/CreditLimitInfoBean;", "D", "(Lcom/cnhz/android/main/product/bean/CreditLimitInfoBean;)V", "mCreidtLimitInfo", "Lcom/cnhz/android/main/view/activity/ActivityMain$a;", "getResultListener", "()Lcom/cnhz/android/main/view/activity/ActivityMain$a;", "setResultListener", "(Lcom/cnhz/android/main/view/activity/ActivityMain$a;)V", "resultListener", "Lcom/cnhz/android/main/view/fragment/DialogFragment;", "p", "Lcom/cnhz/android/main/view/fragment/DialogFragment;", "y", "()Lcom/cnhz/android/main/view/fragment/DialogFragment;", "setNewVersionDialog", "(Lcom/cnhz/android/main/view/fragment/DialogFragment;)V", "newVersionDialog", "q", "needPermissionDialog", "<init>", "()V", "a", "V2.3-20240823-003002-Production_release"}, k = 1, mv = {1, 8, 0})
public final class ActivityMain extends BasePageActivity implements d0.e, d0.a, h0.g {

    public o0.a mUserCenterPrensenter;

    public f0.a mOtherPresenter;

    public j0.a mProductPresenter;

    private int permissionRequestCode = TypedValues.TYPE_TARGET;

    private String[] permissionArray = {"android.permission.CAMERA", "android.permission.CALL_PHONE", "android.permission.READ_CALENDAR", "android.permission.WRITE_CALENDAR", "android.permission.READ_SMS", "android.permission.ACCESS_COARSE_LOCATION"};

    private CreditLimitInfoBean mCreidtLimitInfo;

    private a resultListener;

    private DialogFragment newVersionDialog;

    private DialogFragment needPermissionDialog;

    public interface a {
        void a(boolean z2);
    }

    public static final class b implements InfoCallback {
        b() {
        }

        @Override
        public void onFailed(String str) {
        }

        @Override
        public void onSuccess(String str) {
            Intrinsics.checkNotNullParameter(str, "timeStamp");
            v0.c.e(ActivityMain.this, "ZGV2", str);
        }
    }

    public static final class c implements InfoCallback {
        c() {
        }

        @Override
        public void onFailed(String str) {
        }

        @Override
        public void onSuccess(String str) {
            Intrinsics.checkNotNullParameter(str, "timeStamp");
            v0.c.e(ActivityMain.this, "c21z", str);
        }
    }

    public static final class d implements InfoCallback {
        d() {
        }

        @Override
        public void onFailed(String str) {
        }

        @Override
        public void onSuccess(String str) {
            Intrinsics.checkNotNullParameter(str, "timeStamp");
            v0.c.e(ActivityMain.this, "YXBw", str);
        }
    }

    public static final class e implements InfoCallback {
        e() {
        }

        @Override
        public void onFailed(String str) {
        }

        @Override
        public void onSuccess(String str) {
            Intrinsics.checkNotNullParameter(str, "timeStamp");
            v0.c.e(ActivityMain.this, "bG9j", str);
        }
    }

    public static final class f implements InfoCallback {
        f() {
        }

        @Override
        public void onFailed(String str) {
        }

        @Override
        public void onSuccess(String str) {
            Intrinsics.checkNotNullParameter(str, "timeStamp");
            v0.c.e(ActivityMain.this, "Y2FsZW5kYXI", str);
        }
    }

    public static final class g implements DialogFragment.b {
        g() {
        }

        @Override
        public void a(View view) {
        }

        @Override
        public void b(View view) {
            ActivityMain activityMain = ActivityMain.this;
            activityMain.requestPermissions(activityMain.getPermissionArray(), ActivityMain.this.getPermissionRequestCode());
            v0.c.e(ActivityMain.this, "spkey_show_permission_tip", Boolean.TRUE);
        }
    }

    public static final class h implements DialogFragment.b {

        final CheckVersionBean f1801a;

        final ActivityMain f1802b;

        h(CheckVersionBean checkVersionBean, ActivityMain activityMain) {
            this.f1801a = checkVersionBean;
            this.f1802b = activityMain;
        }

        @Override
        public void a(View view) {
        }

        @Override
        public void b(View view) {
            DialogFragment newVersionDialog;
            if (this.f1801a.getConjunction() != 30 && (newVersionDialog = this.f1802b.getNewVersionDialog()) != null) {
                newVersionDialog.dismiss();
            }
            this.f1802b.startActivity(new Intent("android.intent.action.VIEW", Uri.parse("http://play.google.com/store/apps/details?id=" + this.f1802b.getPackageName())));
        }
    }

    public static final class i implements DialogFragment.b {
        i() {
        }

        @Override
        public void a(View view) {
        }

        @Override
        public void b(View view) {
            Intent intent = new Intent();
            intent.setAction("android.settings.APPLICATION_DETAILS_SETTINGS");
            intent.setData(Uri.fromParts("package", ActivityMain.this.getPackageName(), null));
            ActivityMain.this.startActivity(intent);
        }
    }

    public static final boolean B(ActivityMain activityMain, NavController navController, MenuItem menuItem) {
        Intrinsics.checkNotNullParameter(activityMain, "this$0");
        Intrinsics.checkNotNullParameter(navController, "$navController");
        Intrinsics.checkNotNullParameter(menuItem, "it");
        int itemId = menuItem.getItemId();
        if (itemId == R$id.navigation_home) {
            activityMain.getWindow().setStatusBarColor(activityMain.getColor(R$color.statusBarColor_red));
            navController.navigate(R$id.navigation_home);
            return true;
        }
        if (itemId != R$id.navigation_mine) {
            return true;
        }
        activityMain.getWindow().setStatusBarColor(activityMain.getColor(R$color.statusBarColor_mine));
        navController.navigate(R$id.navigation_mine);
        return true;
    }

    private final void H(CheckVersionBean versionBean) {
        if (versionBean.getConjunction() == 10) {
            return;
        }
        if (this.newVersionDialog == null) {
            Bundle bundle = new Bundle();
            bundle.putSerializable("versionBean", versionBean);
            this.newVersionDialog = DialogFragment.INSTANCE.a(130, bundle, new h(versionBean, this));
        }
        DialogFragment dialogFragment = this.newVersionDialog;
        if (dialogFragment != null) {
            FragmentManager supportFragmentManager = getSupportFragmentManager();
            Intrinsics.checkNotNullExpressionValue(supportFragmentManager, "supportFragmentManager");
            dialogFragment.show(supportFragmentManager, "");
        }
    }

    private final void I() {
        DialogFragment dialogFragment;
        if (this.needPermissionDialog == null) {
            this.needPermissionDialog = DialogFragment.INSTANCE.b(TypedValues.TYPE_TARGET, new i());
        }
        DialogFragment dialogFragment2 = this.needPermissionDialog;
        boolean z2 = false;
        if (dialogFragment2 != null && dialogFragment2.isVisible()) {
            z2 = true;
        }
        if (z2 || (dialogFragment = this.needPermissionDialog) == null) {
            return;
        }
        FragmentManager supportFragmentManager = getSupportFragmentManager();
        Intrinsics.checkNotNullExpressionValue(supportFragmentManager, "supportFragmentManager");
        dialogFragment.show(supportFragmentManager, "");
    }

    private final boolean r() {
        ArrayList arrayList = new ArrayList();
        for (String str : kotlin.collections.h.d(this.permissionArray)) {
            if (Integer.valueOf(checkSelfPermission(str)).intValue() != 0) {
                arrayList.add(str);
            }
        }
        LoginBean k2 = p0.b.f2612a.k();
        if (!arrayList.isEmpty() && k2 != null && k2.getMint() == 1) {
            requestPermissions((String[]) arrayList.toArray(new String[0]), this.permissionRequestCode);
            return false;
        }
        a aVar = this.resultListener;
        if (aVar != null) {
            aVar.a(true);
        }
        this.resultListener = null;
        return true;
    }

    private final void s() {
        if (!p0.d.d(v0.c.d(this, "ZGV2", ""))) {
            InfoLib.INSTANCE.getInstance().a("ZGV2", "20", new b());
        }
        if (!p0.d.d(v0.c.d(this, "c21z", ""))) {
            InfoLib.INSTANCE.getInstance().a("c21z", "20", new c());
        }
        if (!p0.d.d(v0.c.d(this, "YXBw", ""))) {
            InfoLib.INSTANCE.getInstance().a("YXBw", "20", new d());
        }
        if (!p0.d.d(v0.c.d(this, "bG9j", ""))) {
            InfoLib.INSTANCE.getInstance().a("bG9j", "20", new e());
        }
        if (p0.d.d(v0.c.d(this, "Y2FsZW5kYXI", ""))) {
            return;
        }
        InfoLib.INSTANCE.getInstance().a("Y2FsZW5kYXI", "20", new f());
    }

    public final int getPermissionRequestCode() {
        return this.permissionRequestCode;
    }

    public final void C(a result) {
        this.resultListener = result;
        r();
    }

    public final void D(CreditLimitInfoBean creditLimitInfoBean) {
        this.mCreidtLimitInfo = creditLimitInfoBean;
    }

    public final void E(f0.a aVar) {
        Intrinsics.checkNotNullParameter(aVar, "<set-?>");
        this.mOtherPresenter = aVar;
    }

    public final void F(j0.a aVar) {
        Intrinsics.checkNotNullParameter(aVar, "<set-?>");
        this.mProductPresenter = aVar;
    }

    public final void G(o0.a aVar) {
        Intrinsics.checkNotNullParameter(aVar, "<set-?>");
        this.mUserCenterPrensenter = aVar;
    }

    @Override
    public void c(int i2, Object obj) {
        a.C0023a.a(this, i2, obj);
    }

    @Override
    public void e(Object t2) {
        Object dataBean;
        a.C0023a.b(this, t2);
        if (t2 == null || !(t2 instanceof BaseResponse)) {
            return;
        }
        BaseResponse baseResponse = (BaseResponse) t2;
        if (baseResponse.getBuilding() == 200 && (dataBean = baseResponse.getDataBean(CheckVersionBean.class)) != null && (dataBean instanceof CheckVersionBean)) {
            H((CheckVersionBean) dataBean);
        }
    }

    @Override
    public void f(Object t2) {
        Object dataBean;
        if (t2 == null || !(t2 instanceof BaseResponse)) {
            return;
        }
        BaseResponse baseResponse = (BaseResponse) t2;
        if (baseResponse.getBuilding() != 200 || (dataBean = baseResponse.getDataBean(ConfigInfoResponseBean.class)) == null) {
            return;
        }
        com.cnhz.android.main.base.a.f1299a.i((ConfigInfoResponseBean) dataBean);
    }

    @Override
    public void i(Object t2) {
        g.a.a(this, t2);
        if (t2 == null || !(t2 instanceof BaseResponse)) {
            return;
        }
        BaseResponse baseResponse = (BaseResponse) t2;
        if (baseResponse.getBuilding() != 200) {
            p0.b.f2612a.m(this, baseResponse.getBuilding(), baseResponse.getMent());
        }
    }

    @Override
    public void m() {
        G(new o0.a(this));
        E(new f0.a(this));
        u().E(this);
        u().z(this);
        u().j();
        u().f();
        F(new j0.a(this));
        w().Q(this);
        w().x();
        String d2 = v0.c.d(this, "spkey_appflyer_init_data", "");
        if (TextUtils.isEmpty(d2)) {
            return;
        }
        AFUploadBean aFUploadBean = new AFUploadBean();
        aFUploadBean.setDead(v0.a.a(d2, Map.class));
        aFUploadBean.setCommerce("KCAHDsCGZTAV8RuVhQdc7D");
        String d3 = v0.c.d(this, "spkey_gaid", "");
        Intrinsics.checkNotNullExpressionValue(d3, "getString(\n             …EY_GAID, \"\"\n            )");
        aFUploadBean.setMatched(d3);
        o0.a x2 = x();
        if (x2 != null) {
            String b2 = v0.a.b(aFUploadBean);
            Intrinsics.checkNotNullExpressionValue(b2, "toJson(afuploadBean)");
            x2.b0(b2);
        }
    }

    @Override
    public void n() {
        ActionBar supportActionBar = getSupportActionBar();
        if (supportActionBar != null) {
            supportActionBar.hide();
        }
    }

    @Override
    public void o() {
        PageMainBinding inflate = PageMainBinding.inflate(getLayoutInflater());
        Intrinsics.checkNotNullExpressionValue(inflate, "inflate(layoutInflater)");
        p(inflate);
        ViewBinding l2 = l();
        setContentView(l2 != null ? l2.getRoot() : null);
        final NavController findNavController = ActivityKt.findNavController(this, R$id.nav_host_fragment_activity_main);
        ViewBinding l3 = l();
        Intrinsics.d(l3, "null cannot be cast to non-null type com.cnhz.android.main.databinding.PageMainBinding");
        ((PageMainBinding) l3).NavTab.setItemIconTintList(null);
        ViewBinding l4 = l();
        Intrinsics.d(l4, "null cannot be cast to non-null type com.cnhz.android.main.databinding.PageMainBinding");
        ((PageMainBinding) l4).NavTab.setOnItemSelectedListener(new NavigationBarView.OnItemSelectedListener() {
            @Override
            public final boolean onNavigationItemSelected(MenuItem menuItem) {
                boolean B;
                B = ActivityMain.B(ActivityMain.this, findNavController, menuItem);
                return B;
            }
        });
    }

    @Override
    public void onBackPressed() {
        finish();
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        if (Build.VERSION.SDK_INT >= 33) {
            this.permissionArray = (String[]) kotlin.collections.h.n(this.permissionArray, "android.permission.POST_NOTIFICATIONS");
        }
        s();
        b.a aVar = p0.b.f2612a;
        if (!aVar.r()) {
            AppsFlyerLib.getInstance().waitForCustomerUserId(true);
            return;
        }
        AppsFlyerLib appsFlyerLib = AppsFlyerLib.getInstance();
        LoginBean k2 = aVar.k();
        appsFlyerLib.setCustomerUserId(String.valueOf(k2 != null ? Integer.valueOf(k2.getRo()) : null));
        AppsFlyerLib appsFlyerLib2 = AppsFlyerLib.getInstance();
        Application c2 = com.cnhz.android.main.base.a.f1299a.c();
        Context applicationContext = c2 != null ? c2.getApplicationContext() : null;
        if (applicationContext == null) {
            applicationContext = this;
        }
        appsFlyerLib2.start(applicationContext);
    }

    @Override
    public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {
        Intrinsics.checkNotNullParameter(permissions, "permissions");
        Intrinsics.checkNotNullParameter(grantResults, "grantResults");
        super.onRequestPermissionsResult(requestCode, permissions, grantResults);
        if (requestCode == this.permissionRequestCode) {
            LoginBean k2 = p0.b.f2612a.k();
            if ((!(grantResults.length == 0)) && grantResults[0] == 0) {
                InfoLib.INSTANCE.getInstance().e("10");
                a aVar = this.resultListener;
                if (aVar != null) {
                    aVar.a(true);
                }
                this.resultListener = null;
                return;
            }
            if (!(k2 != null && k2.getMint() == 1)) {
                a aVar2 = this.resultListener;
                if (aVar2 != null) {
                    aVar2.a(true);
                }
                this.resultListener = null;
                return;
            }
            I();
            a aVar3 = this.resultListener;
            if (aVar3 != null) {
                aVar3.a(false);
            }
            this.resultListener = null;
        }
    }

    @Override
    protected void onResume() {
        super.onResume();
        a.C0019a c0019a = com.cnhz.android.main.base.a.f1299a;
        int f2 = c0019a.f();
        if (f2 == 0) {
            ViewBinding l2 = l();
            Intrinsics.d(l2, "null cannot be cast to non-null type com.cnhz.android.main.databinding.PageMainBinding");
            ((PageMainBinding) l2).NavTab.setSelectedItemId(R$id.navigation_home);
            c0019a.k(-1);
            return;
        }
        if (f2 != 1) {
            return;
        }
        ViewBinding l3 = l();
        Intrinsics.d(l3, "null cannot be cast to non-null type com.cnhz.android.main.databinding.PageMainBinding");
        ((PageMainBinding) l3).NavTab.setSelectedItemId(R$id.navigation_mine);
        c0019a.k(-1);
    }

    @Override
    protected void onStart() {
        super.onStart();
        if (p0.b.f2612a.r()) {
            Object a2 = v0.c.a(this, "spkey_show_permission_tip", Boolean.FALSE);
            Intrinsics.d(a2, "null cannot be cast to non-null type kotlin.Boolean");
            if (((Boolean) a2).booleanValue()) {
                return;
            }
            DialogFragment b2 = DialogFragment.INSTANCE.b(132, new g());
            FragmentManager supportFragmentManager = getSupportFragmentManager();
            Intrinsics.checkNotNullExpressionValue(supportFragmentManager, "supportFragmentManager");
            b2.show(supportFragmentManager, "");
        }
    }

    public final CreditLimitInfoBean getMCreidtLimitInfo() {
        return this.mCreidtLimitInfo;
    }

    public final f0.a u() {
        f0.a aVar = this.mOtherPresenter;
        if (aVar != null) {
            return aVar;
        }
        Intrinsics.t("mOtherPresenter");
        return null;
    }

    public final j0.a w() {
        j0.a aVar = this.mProductPresenter;
        if (aVar != null) {
            return aVar;
        }
        Intrinsics.t("mProductPresenter");
        return null;
    }

    public final o0.a x() {
        o0.a aVar = this.mUserCenterPrensenter;
        if (aVar != null) {
            return aVar;
        }
        Intrinsics.t("mUserCenterPrensenter");
        return null;
    }

    public final DialogFragment getNewVersionDialog() {
        return this.newVersionDialog;
    }

    public final String[] getPermissionArray() {
        return this.permissionArray;
    }
}