得物.apk(点击下载) / MerchantApplyNewActivity.java


package com.shizhuang.duapp.modules.mall_seller.merchant.apply.activity;

import a40.j;
import android.content.Intent;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.widget.FrameLayout;
import androidx.annotation.Keep;
import androidx.annotation.Nullable;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentTransaction;
import androidx.lifecycle.LifecycleOwnerKt;
import cd.c;
import cd.l;
import com.alibaba.android.arouter.facade.annotation.Autowired;
import com.alibaba.android.arouter.facade.annotation.Route;
import com.google.android.material.bottomsheet.BottomSheetBehavior;
import com.knightboost.weaver.api.Scope;
import com.knightboost.weaver.api.annotations.Insert;
import com.knightboost.weaver.api.annotations.TargetClass;
import com.meituan.robust.ChangeQuickRedirect;
import com.meituan.robust.PatchProxy;
import com.meituan.robust.PatchProxyResult;
import com.shizhuang.duapp.R;
import com.shizhuang.duapp.common.base.inter.IViewController;
import com.shizhuang.duapp.common.ui.BaseLeftBackActivity;
import com.shizhuang.duapp.libs.duimageloaderview.DuImageLoaderView;
import com.shizhuang.duapp.libs.dulogger.Printer;
import com.shizhuang.duapp.modules.du_mall_common.extension.LifecycleExtensionKt;
import com.shizhuang.duapp.modules.mall_seller.http.SellerApi;
import com.shizhuang.duapp.modules.mall_seller.http.SellerFacade;
import com.shizhuang.duapp.modules.mall_seller.merchant.apply.dialog.MerchantApplyExitDetainmentDialog;
import com.shizhuang.duapp.modules.mall_seller.merchant.apply.fragment.MerchantIdentificationNewFragment1;
import com.shizhuang.duapp.modules.mall_seller.merchant.apply.fragment.MerchantIdentificationNewFragment2;
import com.shizhuang.duapp.modules.mall_seller.merchant.apply.fragment.MerchantSelectServiceNewFragment;
import com.shizhuang.duapp.modules.mall_seller.merchant.apply.model.IpCheckModel;
import com.shizhuang.duapp.modules.mall_seller.merchant.apply.model.MerchantRightsAndInterestsInfo;
import com.shizhuang.duapp.modules.mall_seller.merchant.apply.model.RealNameType;
import com.shizhuang.duapp.modules.mall_seller.merchant.grade.view.MerchantApplyNewBannerView;
import com.shizhuang.duapp.modules.mall_seller.widget.MerchantApplyStepLineView;
import com.shizhuang.duapp.modules.mall_seller.widget.MerchantApplyStepNumView;
import com.shizhuang.duapp.modules.mall_seller.widget.MerchantApplyStepTextView;
import com.shizhuang.duapp.modules.router.ServiceManager;
import df.r0;
import fd.q;
import ik1.f;
import java.util.HashMap;
import kotlin.Lazy;
import kotlin.LazyKt__LazyJVMKt;
import kotlin.Metadata;
import kotlin.Pair;
import kotlin.Unit;
import kotlin.jvm.JvmField;
import kotlin.jvm.functions.Function0;
import org.greenrobot.eventbus.EventBus;
import pt0.d;
import pt0.e;
import pt0.g;
import td.r;
import td.s;

@Route(extPath = {"/product/MerchantApplyNewPage", "/product/MerchantApplyPage"})
@Metadata(bv = {}, 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/shizhuang/duapp/modules/mall_seller/merchant/apply/activity/MerchantApplyNewActivity;", "Lcom/shizhuang/duapp/common/ui/BaseLeftBackActivity;", "<init>", "()V", "du_mall_seller_release"}, k = 1, mv = {1, 4, 2})
/* compiled from: MerchantApplyNewActivity.kt */
public final class MerchantApplyNewActivity extends BaseLeftBackActivity {
    public static ChangeQuickRedirect changeQuickRedirect;
    @Autowired
    @JvmField

    /* renamed from: c  reason: collision with root package name */
    public int f20179c;
    @Autowired
    @JvmField
    public boolean d;
    public int e = -1;
    public int f = 1;

    /* renamed from: g  reason: collision with root package name */
    public String f20180g;

    /* renamed from: h  reason: collision with root package name */
    public MerchantRightsAndInterestsInfo.Retain f20181h;
    public final Lazy i = LazyKt__LazyJVMKt.lazy(new MerchantApplyNewActivity$bottomSheetBehavior$2(this));
    public HashMap j;

    public class _boostWeave {
        public static ChangeQuickRedirect changeQuickRedirect;

        @TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.appcompat.app.AppCompatActivity")
        @Insert(mayCreateSuper = true, value = "onCreate")
        @Keep
        public static void ActivityMethodWeaver_onCreate(@Nullable MerchantApplyNewActivity merchantApplyNewActivity, Bundle bundle) {
            if (!PatchProxy.proxy(new Object[]{merchantApplyNewActivity, bundle}, null, changeQuickRedirect, true, 222926, new Class[]{MerchantApplyNewActivity.class, Bundle.class}, Void.TYPE).isSupported) {
                jn.b bVar = jn.b.f34396a;
                if (!bVar.b()) {
                    bVar.d(true);
                }
                long currentTimeMillis = System.currentTimeMillis();
                MerchantApplyNewActivity.e(merchantApplyNewActivity, bundle);
                long currentTimeMillis2 = System.currentTimeMillis();
                if (merchantApplyNewActivity.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.mall_seller.merchant.apply.activity.MerchantApplyNewActivity")) {
                    bVar.activityOnCreateMethod(merchantApplyNewActivity, currentTimeMillis, currentTimeMillis2);
                }
            }
        }

        @TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.appcompat.app.AppCompatActivity")
        @Insert(mayCreateSuper = true, value = "onResume")
        @Keep
        public static void ActivityMethodWeaver_onResume(MerchantApplyNewActivity merchantApplyNewActivity) {
            if (!PatchProxy.proxy(new Object[]{merchantApplyNewActivity}, null, changeQuickRedirect, true, 222925, new Class[]{MerchantApplyNewActivity.class}, Void.TYPE).isSupported) {
                long currentTimeMillis = System.currentTimeMillis();
                MerchantApplyNewActivity.d(merchantApplyNewActivity);
                long currentTimeMillis2 = System.currentTimeMillis();
                if (merchantApplyNewActivity.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.mall_seller.merchant.apply.activity.MerchantApplyNewActivity")) {
                    jn.b.f34396a.activityOnResumeMethod(merchantApplyNewActivity, currentTimeMillis, currentTimeMillis2);
                }
            }
        }

        @TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.appcompat.app.AppCompatActivity")
        @Insert(mayCreateSuper = true, value = "onStart")
        @Keep
        public static void ActivityMethodWeaver_onStart(MerchantApplyNewActivity merchantApplyNewActivity) {
            if (!PatchProxy.proxy(new Object[]{merchantApplyNewActivity}, null, changeQuickRedirect, true, 222927, new Class[]{MerchantApplyNewActivity.class}, Void.TYPE).isSupported) {
                long currentTimeMillis = System.currentTimeMillis();
                MerchantApplyNewActivity.f(merchantApplyNewActivity);
                long currentTimeMillis2 = System.currentTimeMillis();
                if (merchantApplyNewActivity.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.mall_seller.merchant.apply.activity.MerchantApplyNewActivity")) {
                    jn.b.f34396a.activityOnStartMethod(merchantApplyNewActivity, currentTimeMillis, currentTimeMillis2);
                }
            }
        }
    }

    /* compiled from: MerchantApplyNewActivity.kt */
    public static final class a extends r<IpCheckModel> {
        public static ChangeQuickRedirect changeQuickRedirect;
        public final /* synthetic */ MerchantApplyNewActivity b;

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public a(MerchantApplyNewActivity merchantApplyNewActivity, IViewController iViewController, boolean z) {
            super(iViewController, z);
            this.b = merchantApplyNewActivity;
        }

        /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
        @Override // td.r, com.shizhuang.duapp.common.helper.net.facade.IViewHandler, td.a
        public void onSuccess(IpCheckModel ipCheckModel) {
            Fragment fragment;
            Fragment fragment2;
            IpCheckModel ipCheckModel2 = ipCheckModel;
            if (!PatchProxy.proxy(new Object[]{ipCheckModel2}, this, changeQuickRedirect, false, 222931, new Class[]{IpCheckModel.class}, Void.TYPE).isSupported) {
                super.onSuccess(ipCheckModel2);
                Printer u4 = fo.a.u("merchant apply");
                u4.i("merchant apply ip check success. model: " + ipCheckModel2, new Object[0]);
                MerchantApplyNewActivity merchantApplyNewActivity = this.b;
                int code = ipCheckModel2 != null ? ipCheckModel2.getCode() : 0;
                Object[] objArr = {new Integer(code)};
                ChangeQuickRedirect changeQuickRedirect2 = MerchantApplyNewActivity.changeQuickRedirect;
                Class cls = Integer.TYPE;
                if (!PatchProxy.proxy(objArr, merchantApplyNewActivity, changeQuickRedirect2, false, 222899, new Class[]{cls}, Void.TYPE).isSupported) {
                    FragmentTransaction beginTransaction = merchantApplyNewActivity.getSupportFragmentManager().beginTransaction();
                    if (code == 1) {
                        fo.a.u("merchant apply").i("go to eu real name certification", new Object[0]);
                        MerchantIdentificationNewFragment2.a aVar = MerchantIdentificationNewFragment2.k;
                        int type = RealNameType.TYPE_MERCHANT.getType();
                        PatchProxyResult proxy = PatchProxy.proxy(new Object[]{new Integer(type)}, aVar, MerchantIdentificationNewFragment2.a.changeQuickRedirect, false, 223372, new Class[]{cls}, MerchantIdentificationNewFragment2.class);
                        if (proxy.isSupported) {
                            fragment = (MerchantIdentificationNewFragment2) proxy.result;
                            beginTransaction.replace(R.id.flContent, fragment).commitAllowingStateLoss();
                            merchantApplyNewActivity.k(1);
                        } else {
                            fragment2 = new MerchantIdentificationNewFragment2();
                            Bundle d = h.b.d("RealNameType", type);
                            Unit unit = Unit.INSTANCE;
                            fragment2.setArguments(d);
                        }
                    } else {
                        fo.a.u("merchant apply").i("go to cn real name certification", new Object[0]);
                        MerchantIdentificationNewFragment1.a aVar2 = MerchantIdentificationNewFragment1.j;
                        int type2 = RealNameType.TYPE_MERCHANT.getType();
                        PatchProxyResult proxy2 = PatchProxy.proxy(new Object[]{new Integer(type2)}, aVar2, MerchantIdentificationNewFragment1.a.changeQuickRedirect, false, 223315, new Class[]{cls}, MerchantIdentificationNewFragment1.class);
                        if (proxy2.isSupported) {
                            fragment = (MerchantIdentificationNewFragment1) proxy2.result;
                            beginTransaction.replace(R.id.flContent, fragment).commitAllowingStateLoss();
                            merchantApplyNewActivity.k(1);
                        } else {
                            fragment2 = new MerchantIdentificationNewFragment1();
                            Bundle d12 = h.b.d("RealNameType", type2);
                            Unit unit2 = Unit.INSTANCE;
                            fragment2.setArguments(d12);
                        }
                    }
                    fragment = fragment2;
                    beginTransaction.replace(R.id.flContent, fragment).commitAllowingStateLoss();
                    merchantApplyNewActivity.k(1);
                }
                MerchantApplyNewActivity merchantApplyNewActivity2 = this.b;
                if (!PatchProxy.proxy(new Object[0], merchantApplyNewActivity2, MerchantApplyNewActivity.changeQuickRedirect, false, 222898, new Class[0], Void.TYPE).isSupported) {
                    int isBindMobile = ServiceManager.d().isBindMobile();
                    fo.a.u("merchant apply").i(j.h("merchant apply phone check. isBindMobile: ", isBindMobile), new Object[0]);
                    if (isBindMobile == 0) {
                        ServiceManager.d().showBindPhoneDialog(merchantApplyNewActivity2.getContext(), new pt0.a(merchantApplyNewActivity2, isBindMobile), pt0.b.f37144a);
                    }
                }
            }
        }
    }

    /* compiled from: MerchantApplyNewActivity.kt */
    public static final class b implements Runnable {
        public static ChangeQuickRedirect changeQuickRedirect;
        public final /* synthetic */ MerchantApplyNewActivity b;

        public b(MerchantApplyNewActivity merchantApplyNewActivity) {
            this.b = merchantApplyNewActivity;
        }

        public final void run() {
            if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 222944, new Class[0], Void.TYPE).isSupported && l.a(this.b) && this.b.h().getState() == 3) {
                ((MerchantApplyNewBannerView) this.b._$_findCachedViewById(R.id.merchantApplyBanner)).stop();
            }
        }
    }

    public static void d(MerchantApplyNewActivity merchantApplyNewActivity) {
        if (!PatchProxy.proxy(new Object[0], merchantApplyNewActivity, changeQuickRedirect, false, 222908, new Class[0], Void.TYPE).isSupported) {
            super.onResume();
            q.e().post(new b(merchantApplyNewActivity));
            merchantApplyNewActivity.l();
        }
    }

    public static void e(MerchantApplyNewActivity merchantApplyNewActivity, Bundle bundle) {
        if (!PatchProxy.proxy(new Object[]{bundle}, merchantApplyNewActivity, changeQuickRedirect, false, 222921, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
            super.onCreate(bundle);
        }
    }

    public static void f(MerchantApplyNewActivity merchantApplyNewActivity) {
        if (!PatchProxy.proxy(new Object[0], merchantApplyNewActivity, changeQuickRedirect, false, 222923, new Class[0], Void.TYPE).isSupported) {
            super.onStart();
        }
    }

    public View _$_findCachedViewById(int i3) {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[]{new Integer(i3)}, this, changeQuickRedirect, false, 222918, new Class[]{Integer.TYPE}, View.class);
        if (proxy.isSupported) {
            return (View) proxy.result;
        }
        if (this.j == null) {
            this.j = new HashMap();
        }
        View view = (View) this.j.get(Integer.valueOf(i3));
        if (view != null) {
            return view;
        }
        View findViewById = findViewById(i3);
        this.j.put(Integer.valueOf(i3), findViewById);
        return findViewById;
    }

    public final void g() {
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 222896, new Class[0], Void.TYPE).isSupported) {
            SellerFacade sellerFacade = SellerFacade.f20177a;
            a aVar = new a(this, this, true);
            if (!PatchProxy.proxy(new Object[]{aVar}, sellerFacade, SellerFacade.changeQuickRedirect, false, 222765, new Class[]{s.class}, Void.TYPE).isSupported) {
                td.j.doRequest(((SellerApi) td.j.getJavaGoApi(SellerApi.class)).ipCheck(c.b(new Pair[0])), aVar);
            }
        }
    }

    @Override // com.shizhuang.duapp.common.ui.BaseActivity, com.shizhuang.duapp.common.base.inter.IViewController
    public int getLayout() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 222892, new Class[0], Integer.TYPE);
        return proxy.isSupported ? ((Integer) proxy.result).intValue() : R.layout.activity_merchant_apply_new;
    }

    public final BottomSheetBehavior<ConstraintLayout> h() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 222891, new Class[0], BottomSheetBehavior.class);
        return (BottomSheetBehavior) (proxy.isSupported ? proxy.result : this.i.getValue());
    }

    public final boolean i() {
        MerchantApplyExitDetainmentDialog merchantApplyExitDetainmentDialog;
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 222916, new Class[0], Boolean.TYPE);
        if (proxy.isSupported) {
            return ((Boolean) proxy.result).booleanValue();
        }
        MerchantRightsAndInterestsInfo.Retain retain = this.f20181h;
        if (retain == null) {
            return false;
        }
        MerchantApplyExitDetainmentDialog.a aVar = MerchantApplyExitDetainmentDialog.f20201h;
        int i3 = this.f;
        PatchProxyResult proxy2 = PatchProxy.proxy(new Object[]{retain, new Integer(i3)}, aVar, MerchantApplyExitDetainmentDialog.a.changeQuickRedirect, false, 223251, new Class[]{MerchantRightsAndInterestsInfo.Retain.class, Integer.TYPE}, MerchantApplyExitDetainmentDialog.class);
        if (proxy2.isSupported) {
            merchantApplyExitDetainmentDialog = (MerchantApplyExitDetainmentDialog) proxy2.result;
        } else {
            Bundle bundle = new Bundle();
            bundle.putParcelable("model", retain);
            bundle.putInt("currentStep", i3);
            merchantApplyExitDetainmentDialog = new MerchantApplyExitDetainmentDialog();
            merchantApplyExitDetainmentDialog.setArguments(bundle);
        }
        MerchantApplyNewActivity$showExitDialog$$inlined$let$lambda$1 merchantApplyNewActivity$showExitDialog$$inlined$let$lambda$1 = new MerchantApplyNewActivity$showExitDialog$$inlined$let$lambda$1(this);
        if (!PatchProxy.proxy(new Object[]{merchantApplyNewActivity$showExitDialog$$inlined$let$lambda$1}, merchantApplyExitDetainmentDialog, MerchantApplyExitDetainmentDialog.changeQuickRedirect, false, 223228, new Class[]{Function0.class}, Void.TYPE).isSupported) {
            merchantApplyExitDetainmentDialog.e = merchantApplyNewActivity$showExitDialog$$inlined$let$lambda$1;
        }
        MerchantApplyNewActivity$showExitDialog$$inlined$let$lambda$2 merchantApplyNewActivity$showExitDialog$$inlined$let$lambda$2 = new MerchantApplyNewActivity$showExitDialog$$inlined$let$lambda$2(this);
        if (!PatchProxy.proxy(new Object[]{merchantApplyNewActivity$showExitDialog$$inlined$let$lambda$2}, merchantApplyExitDetainmentDialog, MerchantApplyExitDetainmentDialog.changeQuickRedirect, false, 223230, new Class[]{Function0.class}, Void.TYPE).isSupported) {
            merchantApplyExitDetainmentDialog.f = merchantApplyNewActivity$showExitDialog$$inlined$let$lambda$2;
        }
        merchantApplyExitDetainmentDialog.k(getSupportFragmentManager());
        return true;
    }

    @Override // com.shizhuang.duapp.common.ui.BaseActivity, com.shizhuang.duapp.common.base.inter.IViewController
    public void initData() {
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 222895, new Class[0], Void.TYPE).isSupported) {
            ((DuImageLoaderView) _$_findCachedViewById(R.id.ivPoizon)).i("https://apk.poizon.com/duApp/Android_Config/resource/mall/app/du_mall_seller/icon_bg_top_poizon.png").x();
            f.i(LifecycleOwnerKt.getLifecycleScope(this), null, null, new MerchantApplyNewActivity$initData$1(this, null), 3, null);
            g();
        }
    }

    @Override // com.shizhuang.duapp.common.ui.BaseActivity, com.shizhuang.duapp.common.base.inter.IViewController
    public void initStatusBar() {
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 222905, new Class[0], Void.TYPE).isSupported) {
            r0.z(this, null);
            r0.s(this, true);
            r0.t(this);
        }
    }

    @Override // com.shizhuang.duapp.common.ui.BaseLeftBackActivity, com.shizhuang.duapp.common.ui.BaseActivity, com.shizhuang.duapp.common.base.inter.IViewController
    public void initView(@org.jetbrains.annotations.Nullable Bundle bundle) {
        if (!PatchProxy.proxy(new Object[]{bundle}, this, changeQuickRedirect, false, 222893, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
            super.initView(bundle);
            setTitle("");
            if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 222911, new Class[0], Void.TYPE).isSupported) {
                this.toolbar.post(new e(this));
            }
            if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 222906, new Class[0], Void.TYPE).isSupported) {
                h().addBottomSheetCallback(new pt0.c(this));
                ((FrameLayout) _$_findCachedViewById(R.id.content)).post(new d(this));
            }
            ((MerchantApplyNewBannerView) _$_findCachedViewById(R.id.merchantApplyBanner)).setGradeSelectedChanged(MerchantApplyNewActivity$initView$1.INSTANCE);
            if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 222894, new Class[0], Void.TYPE).isSupported) {
                LifecycleExtensionKt.a(this, MerchantApplyNewActivity$initQsn$1.INSTANCE);
            }
        }
    }

    public final void j() {
        MerchantSelectServiceNewFragment merchantSelectServiceNewFragment;
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 222900, new Class[0], Void.TYPE).isSupported) {
            fo.a.u("merchant apply").i("go to merchant service customization", new Object[0]);
            FragmentTransaction beginTransaction = getSupportFragmentManager().beginTransaction();
            PatchProxyResult proxy = PatchProxy.proxy(new Object[0], null, MerchantSelectServiceNewFragment.changeQuickRedirect, true, 223414, new Class[0], MerchantSelectServiceNewFragment.class);
            if (proxy.isSupported) {
                merchantSelectServiceNewFragment = (MerchantSelectServiceNewFragment) proxy.result;
            } else {
                merchantSelectServiceNewFragment = new MerchantSelectServiceNewFragment();
            }
            beginTransaction.setCustomAnimations(R.anim.slide_right_in, R.anim.slide_left_out);
            beginTransaction.replace(R.id.flContent, merchantSelectServiceNewFragment).commitAllowingStateLoss();
            k(2);
            l();
            if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 222903, new Class[0], Void.TYPE).isSupported) {
                SellerFacade sellerFacade = SellerFacade.f20177a;
                g gVar = new g(this, this, false);
                if (!PatchProxy.proxy(new Object[]{gVar}, sellerFacade, SellerFacade.changeQuickRedirect, false, 222781, new Class[]{s.class}, Void.TYPE).isSupported) {
                    td.j.doRequest(((SellerApi) td.j.getJavaGoApi(SellerApi.class)).legalAccount(c.b(new Pair[0])), gVar);
                }
            }
        }
    }

    public final void k(int i3) {
        int i12 = 1;
        if (!PatchProxy.proxy(new Object[]{new Integer(i3)}, this, changeQuickRedirect, false, 222904, new Class[]{Integer.TYPE}, Void.TYPE).isSupported) {
            this.f = i3;
            fo.a.u("merchant apply").i(j.h("update header status. current state : ", i3), new Object[0]);
            int i13 = i3 == 1 ? 1 : 2;
            ((MerchantApplyStepNumView) _$_findCachedViewById(R.id.tvNumStep1)).setStep(i13);
            ((MerchantApplyStepTextView) _$_findCachedViewById(R.id.tvTextStep1)).setStep(i13);
            ((MerchantApplyStepLineView) _$_findCachedViewById(R.id.vLineStep1)).setStep(i13);
            int i14 = i3 == 2 ? 1 : i3 < 2 ? 0 : 2;
            ((MerchantApplyStepNumView) _$_findCachedViewById(R.id.tvNumStep2)).setStep(i14);
            ((MerchantApplyStepTextView) _$_findCachedViewById(R.id.tvTextStep2)).setStep(i14);
            ((MerchantApplyStepLineView) _$_findCachedViewById(R.id.vLineStep2)).setStep(i14);
            int i15 = i3 == 3 ? 1 : i3 < 3 ? 0 : 2;
            ((MerchantApplyStepNumView) _$_findCachedViewById(R.id.tvNumStep3)).setStep(i15);
            ((MerchantApplyStepTextView) _$_findCachedViewById(R.id.tvTextStep3)).setStep(i15);
            ((MerchantApplyStepLineView) _$_findCachedViewById(R.id.vLineStep3)).setStep(i15);
            if (i3 != 4) {
                i12 = i3 < 4 ? 0 : 2;
            }
            ((MerchantApplyStepNumView) _$_findCachedViewById(R.id.tvNumStep4)).setStep(i12);
            ((MerchantApplyStepTextView) _$_findCachedViewById(R.id.tvTextStep4)).setStep(i12);
        }
    }

    public final void l() {
        String str;
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 222909, new Class[0], Void.TYPE).isSupported) {
            mv0.a aVar = mv0.a.f35758a;
            PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 222910, new Class[0], String.class);
            if (proxy.isSupported) {
                str = (String) proxy.result;
            } else {
                int i3 = this.f;
                str = i3 == 1 ? "实名认证" : i3 == 2 ? "选择服务" : i3 == 3 ? "填写地址" : "确认协议";
            }
            if (!PatchProxy.proxy(new Object[]{str}, aVar, mv0.a.changeQuickRedirect, false, 232255, new Class[]{Object.class}, Void.TYPE).isSupported) {
                i60.b.f33293a.b("trade_seller_central_pageview", "1262", "", j.e(8, "page_title", str));
            }
        }
    }

    @Override // androidx.activity.ComponentActivity, androidx.fragment.app.FragmentActivity
    public void onActivityResult(int i3, int i12, @org.jetbrains.annotations.Nullable Intent intent) {
        Object[] objArr = {new Integer(i3), new Integer(i12), intent};
        ChangeQuickRedirect changeQuickRedirect2 = changeQuickRedirect;
        Class cls = Integer.TYPE;
        if (!PatchProxy.proxy(objArr, this, changeQuickRedirect2, false, 222913, new Class[]{cls, cls, Intent.class}, Void.TYPE).isSupported) {
            super.onActivityResult(i3, i12, intent);
            if (i3 == 1000 && i12 == 2000) {
                finish();
            }
        }
    }

    @Override // androidx.activity.ComponentActivity, com.shizhuang.duapp.common.ui.BaseActivity
    public void onBackPressed() {
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 222917, new Class[0], Void.TYPE).isSupported && !i()) {
            super.onBackPressed();
        }
    }

    @Override // androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, com.shizhuang.duapp.common.ui.BaseLeftBackActivity, com.shizhuang.duapp.common.ui.BaseActivity
    public void onCreate(Bundle bundle) {
        if (!PatchProxy.proxy(new Object[]{bundle}, this, changeQuickRedirect, false, 222920, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
            _boostWeave.ActivityMethodWeaver_onCreate(this, bundle);
        }
    }

    @Override // androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, com.shizhuang.duapp.common.ui.BaseActivity
    public void onDestroy() {
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 222914, new Class[0], Void.TYPE).isSupported) {
            tf.a.i("MSG_MERCHANT_APPLY_SUCCESS", EventBus.b());
            super.onDestroy();
        }
    }

    @Override // androidx.appcompat.app.AppCompatActivity
    public boolean onKeyDown(int i3, @org.jetbrains.annotations.Nullable KeyEvent keyEvent) {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[]{new Integer(i3), keyEvent}, this, changeQuickRedirect, false, 222915, new Class[]{Integer.TYPE, KeyEvent.class}, Boolean.TYPE);
        if (proxy.isSupported) {
            return ((Boolean) proxy.result).booleanValue();
        }
        if (i3 != 4 || !i()) {
            return super.onKeyDown(i3, keyEvent);
        }
        return true;
    }

    @Override // com.shizhuang.duapp.common.ui.BaseActivity, com.shizhuang.duapp.common.base.inter.IViewController
    public void onNetErrorRetryClick() {
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 222897, new Class[0], Void.TYPE).isSupported) {
            g();
        }
    }

    @Override // androidx.fragment.app.FragmentActivity, com.shizhuang.duapp.common.ui.BaseLeftBackActivity, com.shizhuang.duapp.common.ui.BaseActivity
    public void onResume() {
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 222907, new Class[0], Void.TYPE).isSupported) {
            _boostWeave.ActivityMethodWeaver_onResume(this);
        }
    }

    @Override // androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, com.shizhuang.duapp.common.ui.BaseLeftBackActivity, com.shizhuang.duapp.common.ui.BaseActivity
    public void onStart() {
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 222922, new Class[0], Void.TYPE).isSupported) {
            _boostWeave.ActivityMethodWeaver_onStart(this);
        }
    }
}