导航菜单

页面标题

页面副标题

CashVia v1.6.02 - InBasicInfoActivity.java 源代码

正在查看: CashVia v1.6.02 应用的 InBasicInfoActivity.java JAVA 源代码文件

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


package com.xy.credyclub.view;

import A2.C0014d;
import B2.e;
import C2.F;
import T.c;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import androidx.activity.OnBackPressedDispatcher;
import androidx.activity.OnBackPressedDispatcherKt;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.databinding.DataBindingUtil;
import androidx.databinding.ViewDataBinding;
import androidx.fragment.app.Fragment;
import androidx.lifecycle.LifecycleOwner;
import androidx.lifecycle.ViewModelLazy;
import com.sensorsdata.analytics.android.sdk.data.SAProviderHelper;
import com.tencent.mmkv.MMKV;
import com.xy.credyclub.base.XYBaseBottomDialog;
import com.xy.credyclub.base.XYBaseCenterDialog;
import com.xy.credyclub.databinding.ActivityInBasicInfoBinding;
import com.xy.credyclub.repository.response.AuthStepsResp;
import com.xy.credyclub.vm.AddressViewModel;
import com.xy.credyclub.vm.InBasicInfoViewModel;
import java.io.Serializable;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.Reflection;
import kotlin.jvm.internal.SourceDebugExtension;
import p2.T;
import u2.j;
import u2.q;
import v2.C0291f;
import v2.C0292g;
import v2.C0293h;
import v2.C0294i;

@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0007\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003¨\u0006\u0004"}, d2 = {"Lcom/xy/credyclub/view/InBasicInfoActivity;", "Lcom/xy/credyclub/base/XYBaseActivity;", "<init>", "()V", "app_prodRelease"}, k = 1, mv = {1, SAProviderHelper.URI_CODE.FLUSH_DATA, 0})
@SourceDebugExtension({"SMAP\nInBasicInfoActivity.kt\nKotlin\n*S Kotlin\n*F\n+ 1 InBasicInfoActivity.kt\ncom/xy/credyclub/view/InBasicInfoActivity\n+ 2 ActivityViewModelLazy.kt\nandroidx/activity/ActivityViewModelLazyKt\n*L\n1#1,194:1\n75#2,13:195\n75#2,13:208\n*S KotlinDebug\n*F\n+ 1 InBasicInfoActivity.kt\ncom/xy/credyclub/view/InBasicInfoActivity\n*L\n45#1:195,13\n46#1:208,13\n*E\n"})
public final class InBasicInfoActivity extends Hilt_InBasicInfoActivity {
    public static final int v = 0;
    public ActivityInBasicInfoBinding i;
    public final ViewModelLazy t = new ViewModelLazy(Reflection.getOrCreateKotlinClass(InBasicInfoViewModel.class), new e(this, 10), new C0293h(this), new e(this, 11));
    public Fragment u;

    public InBasicInfoActivity() {
        new ViewModelLazy(Reflection.getOrCreateKotlinClass(AddressViewModel.class), new e(this, 12), new C0294i(this), new e(this, 13));
    }

    public static final void r(InBasicInfoActivity activity) {
        Integer supplementOtherInfo;
        activity.getClass();
        try {
            Fragment findFragmentByTag = activity.getSupportFragmentManager().findFragmentByTag("bottomDialog");
            XYBaseBottomDialog xYBaseBottomDialog = findFragmentByTag instanceof XYBaseBottomDialog ? (XYBaseBottomDialog) findFragmentByTag : null;
            if (xYBaseBottomDialog != null) {
                xYBaseBottomDialog.dismiss();
            }
            Fragment findFragmentByTag2 = activity.getSupportFragmentManager().findFragmentByTag("CenterDialog");
            XYBaseCenterDialog xYBaseCenterDialog = findFragmentByTag2 instanceof XYBaseCenterDialog ? (XYBaseCenterDialog) findFragmentByTag2 : null;
            if (xYBaseCenterDialog != null) {
                XYBaseCenterDialog.a(xYBaseCenterDialog);
            }
            if (xYBaseBottomDialog != null || xYBaseCenterDialog != null) {
                return;
            }
        } catch (Exception unused) {
        }
        Integer num = (Integer) activity.s().l.getValue();
        if (num == null) {
            num = 1;
        }
        int intValue = num.intValue();
        Integer num2 = (Integer) activity.s().l.getValue();
        if (num2 != null && num2.intValue() == 1) {
            MMKV mmkv = F.a;
            Intrinsics.checkNotNullParameter(activity, "activity");
            activity.startActivity(new Intent((Context) activity, (Class<?>) MainActivity.class));
            activity.finish();
            return;
        }
        Integer num3 = (Integer) activity.s().l.getValue();
        if (num3 == null || num3.intValue() != 6) {
            activity.s().l.setValue(Integer.valueOf(intValue - 1));
            return;
        }
        AuthStepsResp authStepsResp = activity.s().o;
        if (authStepsResp == null || (supplementOtherInfo = authStepsResp.getSupplementOtherInfo()) == null || supplementOtherInfo.intValue() != 1) {
            activity.s().l.setValue(4);
        } else {
            activity.s().l.setValue(5);
        }
    }

    @Override
    public final void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        q();
        OnBackPressedDispatcher onBackPressedDispatcher = getOnBackPressedDispatcher();
        Intrinsics.checkNotNullExpressionValue(onBackPressedDispatcher, "<get-onBackPressedDispatcher>(...)");
        ActivityInBasicInfoBinding activityInBasicInfoBinding = null;
        OnBackPressedDispatcherKt.addCallback$default(onBackPressedDispatcher, (LifecycleOwner) null, false, new C0291f(this, 0), 3, (Object) null);
        if (bundle != null) {
            InBasicInfoViewModel s = s();
            int i = bundle.getInt("page", 1);
            Serializable serializable = bundle.getSerializable("auth_steps");
            AuthStepsResp authStepsResp = serializable instanceof AuthStepsResp ? (AuthStepsResp) serializable : null;
            s.l.setValue(Integer.valueOf(i));
            s.o = authStepsResp;
        }
        ViewDataBinding contentView = DataBindingUtil.setContentView(this, 2131492897);
        Intrinsics.checkNotNullExpressionValue(contentView, "setContentView(...)");
        ActivityInBasicInfoBinding activityInBasicInfoBinding2 = (ActivityInBasicInfoBinding) contentView;
        this.i = activityInBasicInfoBinding2;
        if (activityInBasicInfoBinding2 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("binding");
            activityInBasicInfoBinding2 = null;
        }
        activityInBasicInfoBinding2.a(s());
        ActivityInBasicInfoBinding activityInBasicInfoBinding3 = this.i;
        if (activityInBasicInfoBinding3 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("binding");
            activityInBasicInfoBinding3 = null;
        }
        activityInBasicInfoBinding3.setLifecycleOwner(this);
        c cVar = s().a;
        cVar.getClass();
        q.a(false, false, 0L, null, new T(cVar, null), 29).observe(this, new C0014d(14, new C0291f(this, 1)));
        ActivityInBasicInfoBinding activityInBasicInfoBinding4 = this.i;
        if (activityInBasicInfoBinding4 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("binding");
        } else {
            activityInBasicInfoBinding = activityInBasicInfoBinding4;
        }
        ConstraintLayout layoutTitle = activityInBasicInfoBinding.a;
        Intrinsics.checkNotNullExpressionValue(layoutTitle, "layoutTitle");
        j.c(layoutTitle, new C0291f(this, 2));
        s().l.observe(this, new C0014d(14, new C0292g(this)));
        s().m.observe(this, new C0014d(14, new C0291f(this, 3)));
        s().l.setValue(1);
    }

    public final void onRestoreInstanceState(Bundle savedInstanceState) {
        Intrinsics.checkNotNullParameter(savedInstanceState, "savedInstanceState");
        super/*android.app.Activity*/.onRestoreInstanceState(savedInstanceState);
        InBasicInfoViewModel s = s();
        int i = savedInstanceState.getInt("page", 1);
        Serializable serializable = savedInstanceState.getSerializable("auth_steps");
        AuthStepsResp authStepsResp = serializable instanceof AuthStepsResp ? (AuthStepsResp) serializable : null;
        s.l.setValue(Integer.valueOf(i));
        s.o = authStepsResp;
    }

    public final void onSaveInstanceState(Bundle outState) {
        Intrinsics.checkNotNullParameter(outState, "outState");
        super/*androidx.activity.ComponentActivity*/.onSaveInstanceState(outState);
        Integer num = (Integer) s().l.getValue();
        if (num == null) {
            num = 1;
        }
        outState.putInt("page", num.intValue());
        outState.putSerializable("auth_steps", s().o);
    }

    public final InBasicInfoViewModel s() {
        return (InBasicInfoViewModel) this.t.getValue();
    }
}