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


package com.shizhuang.duapp.modules.merchant_cash_loan.ui.activity;

import android.content.Context;
import android.os.Bundle;
import android.os.Handler;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import androidx.annotation.Keep;
import androidx.appcompat.app.ActionBar;
import androidx.appcompat.widget.Toolbar;
import androidx.constraintlayout.widget.Group;
import androidx.core.widget.TextViewCompat;
import com.alibaba.android.arouter.facade.annotation.Autowired;
import com.alibaba.android.arouter.facade.annotation.Route;
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.extension.ViewExtensionKt;
import com.shizhuang.duapp.common.helper.net.ParamsBuilder;
import com.shizhuang.duapp.common.ui.BaseLeftBackActivity;
import com.shizhuang.duapp.libs.duimageloaderview.DuImageLoaderView;
import com.shizhuang.duapp.modules.merchant_cash_loan.MCashLoanConstants$CashLoanResultStatus;
import com.shizhuang.duapp.modules.merchant_cash_loan.event.MClLoanResultEvent;
import com.shizhuang.duapp.modules.merchant_cash_loan.model.MClBankCardInfo;
import com.shizhuang.duapp.modules.merchant_cash_loan.model.MClLoanResultModel;
import com.shizhuang.duapp.modules.merchant_cash_loan.net.MerchantCashLoanApi;
import java.util.HashMap;
import java.util.concurrent.atomic.AtomicInteger;
import kotlin.Metadata;
import kotlin.TuplesKt;
import kotlin.collections.MapsKt__MapsKt;
import kotlin.jvm.JvmField;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.StringCompanionObject;
import org.greenrobot.eventbus.EventBus;
import org.jetbrains.annotations.Nullable;
import rd.g;
import rd.l;
import td.j;
import td.s;

@Route(path = "/merchantCashLoan/MClLoanResultActivity")
@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/merchant_cash_loan/ui/activity/MClLoanResultActivity;", "Lcom/shizhuang/duapp/common/ui/BaseLeftBackActivity;", "<init>", "()V", "du_merchant_cash_loan_release"}, k = 1, mv = {1, 4, 2})
/* compiled from: MClLoanResultActivity.kt */
public final class MClLoanResultActivity extends BaseLeftBackActivity {
    public static ChangeQuickRedirect changeQuickRedirect;
    @Autowired(name = "loanTranNo")
    @JvmField
    @Nullable

    /* renamed from: c  reason: collision with root package name */
    public String f20618c = "";
    @Autowired(name = "applyStatus")
    @JvmField
    @Nullable
    public String d = "";
    public AtomicInteger e = new AtomicInteger();
    public final Handler f = new Handler();

    /* renamed from: g  reason: collision with root package name */
    public final Runnable f20619g = new b(this);

    /* renamed from: h  reason: collision with root package name */
    public HashMap f20620h;

    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(@androidx.annotation.Nullable MClLoanResultActivity mClLoanResultActivity, Bundle bundle) {
            if (!PatchProxy.proxy(new Object[]{mClLoanResultActivity, bundle}, null, changeQuickRedirect, true, 233967, new Class[]{MClLoanResultActivity.class, Bundle.class}, Void.TYPE).isSupported) {
                jn.b bVar = jn.b.f34396a;
                if (!bVar.b()) {
                    bVar.d(true);
                }
                long currentTimeMillis = System.currentTimeMillis();
                MClLoanResultActivity.d(mClLoanResultActivity, bundle);
                long currentTimeMillis2 = System.currentTimeMillis();
                if (mClLoanResultActivity.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.merchant_cash_loan.ui.activity.MClLoanResultActivity")) {
                    bVar.activityOnCreateMethod(mClLoanResultActivity, currentTimeMillis, currentTimeMillis2);
                }
            }
        }

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

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

    /* compiled from: MClLoanResultActivity.kt */
    public static final class a extends s<MClLoanResultModel> {
        public static ChangeQuickRedirect changeQuickRedirect;
        public final /* synthetic */ MClLoanResultActivity b;

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public a(MClLoanResultActivity mClLoanResultActivity, Context context) {
            super(context);
            this.b = mClLoanResultActivity;
        }

        @Override // com.shizhuang.duapp.common.helper.net.facade.IViewHandler, td.s, td.a
        public void onBzError(@Nullable l<MClLoanResultModel> lVar) {
            if (!PatchProxy.proxy(new Object[]{lVar}, this, changeQuickRedirect, false, 233971, new Class[]{l.class}, Void.TYPE).isSupported) {
                super.onBzError(lVar);
                this.b.showErrorView();
            }
        }

        @Override // com.shizhuang.duapp.common.helper.net.facade.IViewHandler, td.a
        public void onSuccess(Object obj) {
            MClLoanResultModel mClLoanResultModel = (MClLoanResultModel) obj;
            if (!PatchProxy.proxy(new Object[]{mClLoanResultModel}, this, changeQuickRedirect, false, 233970, new Class[]{MClLoanResultModel.class}, Void.TYPE).isSupported) {
                super.onSuccess(mClLoanResultModel);
                this.b.showDataView();
                if (mClLoanResultModel != null && (!(!Intrinsics.areEqual(mClLoanResultModel.getLoanStatus(), MCashLoanConstants$CashLoanResultStatus.CASH_LOAN_RESULT_STATUS_APPLY_FAIL.getStatus())) || !(true ^ Intrinsics.areEqual(mClLoanResultModel.getLoanStatus(), MCashLoanConstants$CashLoanResultStatus.CASH_LOAN_RESULT_STATUS_SUCCESS.getStatus())))) {
                    this.b.h(mClLoanResultModel);
                } else if (this.b.e.incrementAndGet() < 5) {
                    MClLoanResultActivity mClLoanResultActivity = this.b;
                    mClLoanResultActivity.f.removeCallbacks(mClLoanResultActivity.f20619g);
                    MClLoanResultActivity mClLoanResultActivity2 = this.b;
                    mClLoanResultActivity2.f.postDelayed(mClLoanResultActivity2.f20619g, 1000);
                } else {
                    this.b.e.set(0);
                    MClLoanResultActivity mClLoanResultActivity3 = this.b;
                    mClLoanResultActivity3.f.removeCallbacks(mClLoanResultActivity3.f20619g);
                    this.b.h(mClLoanResultModel);
                }
            }
        }
    }

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

        public b(MClLoanResultActivity mClLoanResultActivity) {
            this.b = mClLoanResultActivity;
        }

        public final void run() {
            if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 233972, new Class[0], Void.TYPE).isSupported) {
                this.b.g();
            }
        }
    }

    public static void d(MClLoanResultActivity mClLoanResultActivity, Bundle bundle) {
        if (!PatchProxy.proxy(new Object[]{bundle}, mClLoanResultActivity, changeQuickRedirect, false, 233961, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
            super.onCreate(bundle);
        }
    }

    public static void e(MClLoanResultActivity mClLoanResultActivity) {
        if (!PatchProxy.proxy(new Object[0], mClLoanResultActivity, changeQuickRedirect, false, 233963, new Class[0], Void.TYPE).isSupported) {
            super.onStart();
        }
    }

    public static void f(MClLoanResultActivity mClLoanResultActivity) {
        if (!PatchProxy.proxy(new Object[0], mClLoanResultActivity, changeQuickRedirect, false, 233965, new Class[0], Void.TYPE).isSupported) {
            super.onResume();
        }
    }

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

    public final void g() {
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 233954, new Class[0], Void.TYPE).isSupported) {
            pv0.a aVar = pv0.a.f37153a;
            String str = this.f20618c;
            if (str == null) {
                str = "";
            }
            a aVar2 = new a(this, this);
            if (!PatchProxy.proxy(new Object[]{str, aVar2}, aVar, pv0.a.changeQuickRedirect, false, 233474, new Class[]{String.class, s.class}, Void.TYPE).isSupported) {
                j.doRequest(((MerchantCashLoanApi) j.getJavaGoApi(MerchantCashLoanApi.class)).drawResult(g.a(ParamsBuilder.newParams().addParams(MapsKt__MapsKt.mapOf(TuplesKt.to("bizIdentity", "dewu"), TuplesKt.to("loanTranNo", str))))), aVar2);
            }
        }
    }

    @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, 233949, new Class[0], Integer.TYPE);
        return proxy.isSupported ? ((Integer) proxy.result).intValue() : R.layout.activity_mcl_loan_result;
    }

    public final void h(MClLoanResultModel mClLoanResultModel) {
        if (!PatchProxy.proxy(new Object[]{mClLoanResultModel}, this, changeQuickRedirect, false, 233957, new Class[]{MClLoanResultModel.class}, Void.TYPE).isSupported && mClLoanResultModel != null) {
            TextView textView = (TextView) _$_findCachedViewById(R.id.tvSubTitle);
            if (textView != null) {
                textView.setText(mClLoanResultModel.getDesc());
            }
            String loanStatus = mClLoanResultModel.getLoanStatus();
            if (Intrinsics.areEqual(loanStatus, MCashLoanConstants$CashLoanResultStatus.CASH_LOAN_RESULT_STATUS_APPLY_FAIL.getStatus())) {
                DuImageLoaderView duImageLoaderView = (DuImageLoaderView) _$_findCachedViewById(R.id.ivStatus);
                if (duImageLoaderView != null) {
                    duImageLoaderView.setImageResource(R.mipmap.mcl_ic_failed);
                }
                TextView textView2 = (TextView) _$_findCachedViewById(R.id.tvTitle);
                if (textView2 != null) {
                    textView2.setText(getString(R.string.mcl_loan_failed));
                }
                TextViewCompat.setTextAppearance((TextView) _$_findCachedViewById(R.id.tvTitle), 2131886384);
                ((TextView) _$_findCachedViewById(R.id.tvSubTitle)).setText("很抱歉,由于资方原因放款失败");
                Group group = (Group) _$_findCachedViewById(R.id.groupBank);
                if (group != null) {
                    group.setVisibility(8);
                }
                Button button = (Button) _$_findCachedViewById(R.id.btnReturn);
                if (button != null) {
                    button.setVisibility(0);
                }
                Button button2 = (Button) _$_findCachedViewById(R.id.btnReturn);
                if (button2 != null) {
                    button2.setText(getString(R.string.mcl_reapply_loan));
                }
                Button button3 = (Button) _$_findCachedViewById(R.id.btnReturn);
                if (button3 != null) {
                    ViewExtensionKt.j(button3, 0, new MClLoanResultActivity$setLoanResultUI$1(this), 1);
                    return;
                }
                return;
            }
            String str = null;
            String str2 = "";
            if (Intrinsics.areEqual(loanStatus, MCashLoanConstants$CashLoanResultStatus.CASH_LOAN_RESULT_STATUS_SUCCESS.getStatus())) {
                DuImageLoaderView duImageLoaderView2 = (DuImageLoaderView) _$_findCachedViewById(R.id.ivStatus);
                if (duImageLoaderView2 != null) {
                    duImageLoaderView2.setImageResource(R.mipmap.mcl_ic_success);
                }
                TextView textView3 = (TextView) _$_findCachedViewById(R.id.tvTitle);
                if (textView3 != null) {
                    textView3.setText("借款成功");
                }
                TextView textView4 = (TextView) _$_findCachedViewById(R.id.tvSubTitle);
                if (textView4 != null) {
                    String desc = mClLoanResultModel.getDesc();
                    if (desc == null) {
                        desc = str2;
                    }
                    textView4.setText(desc);
                }
                TextView textView5 = (TextView) _$_findCachedViewById(R.id.tvBankDesc);
                if (textView5 != null) {
                    MClBankCardInfo bankcard = mClLoanResultModel.getBankcard();
                    String loanSuccessAccountTransferDesc = bankcard != null ? bankcard.getLoanSuccessAccountTransferDesc() : null;
                    if (loanSuccessAccountTransferDesc == null) {
                        loanSuccessAccountTransferDesc = str2;
                    }
                    textView5.setText(loanSuccessAccountTransferDesc);
                }
                TextViewCompat.setTextAppearance((TextView) _$_findCachedViewById(R.id.tvTitle), 2131886385);
                Group group2 = (Group) _$_findCachedViewById(R.id.groupBank);
                if (group2 != null) {
                    group2.setVisibility(0);
                }
                Button button4 = (Button) _$_findCachedViewById(R.id.btnReturn);
                if (button4 != null) {
                    button4.setVisibility(8);
                }
                DuImageLoaderView duImageLoaderView3 = (DuImageLoaderView) _$_findCachedViewById(R.id.dilvBank);
                MClBankCardInfo bankcard2 = mClLoanResultModel.getBankcard();
                String icon = bankcard2 != null ? bankcard2.getIcon() : null;
                if (icon == null) {
                    icon = str2;
                }
                duImageLoaderView3.i(icon).x();
                TextView textView6 = (TextView) _$_findCachedViewById(R.id.tvBank);
                if (textView6 != null) {
                    StringCompanionObject stringCompanionObject = StringCompanionObject.INSTANCE;
                    String string = getString(R.string.mcl_borrow_bank_name);
                    Object[] objArr = new Object[2];
                    MClBankCardInfo bankcard3 = mClLoanResultModel.getBankcard();
                    String bankName = bankcard3 != null ? bankcard3.getBankName() : null;
                    if (bankName != null) {
                        str2 = bankName;
                    }
                    objArr[0] = str2;
                    MClBankCardInfo.Companion companion = MClBankCardInfo.Companion;
                    MClBankCardInfo bankcard4 = mClLoanResultModel.getBankcard();
                    if (bankcard4 != null) {
                        str = bankcard4.getCardNo();
                    }
                    objArr[1] = companion.getBankTailNumber(str);
                    h.a.w(objArr, 2, string, textView6);
                    return;
                }
                return;
            }
            DuImageLoaderView duImageLoaderView4 = (DuImageLoaderView) _$_findCachedViewById(R.id.ivStatus);
            if (duImageLoaderView4 != null) {
                duImageLoaderView4.setImageResource(R.mipmap.mcl_ic_processing);
            }
            TextView textView7 = (TextView) _$_findCachedViewById(R.id.tvTitle);
            if (textView7 != null) {
                textView7.setText(getString(R.string.mcl_loan_waiting));
            }
            TextView textView8 = (TextView) _$_findCachedViewById(R.id.tvSubTitle);
            if (textView8 != null) {
                String desc2 = mClLoanResultModel.getDesc();
                if (desc2 == null) {
                    desc2 = str2;
                }
                textView8.setText(desc2);
            }
            TextView textView9 = (TextView) _$_findCachedViewById(R.id.tvBankDesc);
            if (textView9 != null) {
                MClBankCardInfo bankcard5 = mClLoanResultModel.getBankcard();
                String loanSuccessAccountTransferDesc2 = bankcard5 != null ? bankcard5.getLoanSuccessAccountTransferDesc() : null;
                if (loanSuccessAccountTransferDesc2 == null) {
                    loanSuccessAccountTransferDesc2 = str2;
                }
                textView9.setText(loanSuccessAccountTransferDesc2);
            }
            TextViewCompat.setTextAppearance((TextView) _$_findCachedViewById(R.id.tvTitle), 2131886385);
            Group group3 = (Group) _$_findCachedViewById(R.id.groupBank);
            if (group3 != null) {
                group3.setVisibility(0);
            }
            Button button5 = (Button) _$_findCachedViewById(R.id.btnReturn);
            if (button5 != null) {
                button5.setVisibility(8);
            }
            DuImageLoaderView duImageLoaderView5 = (DuImageLoaderView) _$_findCachedViewById(R.id.dilvBank);
            MClBankCardInfo bankcard6 = mClLoanResultModel.getBankcard();
            String icon2 = bankcard6 != null ? bankcard6.getIcon() : null;
            if (icon2 == null) {
                icon2 = str2;
            }
            duImageLoaderView5.i(icon2).x();
            TextView textView10 = (TextView) _$_findCachedViewById(R.id.tvBank);
            if (textView10 != null) {
                StringCompanionObject stringCompanionObject2 = StringCompanionObject.INSTANCE;
                String string2 = getString(R.string.mcl_borrow_bank_name);
                Object[] objArr2 = new Object[2];
                MClBankCardInfo bankcard7 = mClLoanResultModel.getBankcard();
                String bankName2 = bankcard7 != null ? bankcard7.getBankName() : null;
                if (bankName2 != null) {
                    str2 = bankName2;
                }
                objArr2[0] = str2;
                MClBankCardInfo.Companion companion2 = MClBankCardInfo.Companion;
                MClBankCardInfo bankcard8 = mClLoanResultModel.getBankcard();
                if (bankcard8 != null) {
                    str = bankcard8.getCardNo();
                }
                objArr2[1] = companion2.getBankTailNumber(str);
                h.a.w(objArr2, 2, string2, textView10);
            }
        }
    }

    @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, 233951, new Class[0], Void.TYPE).isSupported) {
            if (!Intrinsics.areEqual(this.d, MCashLoanConstants$CashLoanResultStatus.CASH_LOAN_RESULT_STATUS_APPROVAL_REJECTED.getStatus())) {
                if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 233956, new Class[0], Void.TYPE).isSupported) {
                    ((DuImageLoaderView) _$_findCachedViewById(R.id.ivStatus)).i("https://cdn.poizon.com/node-common/5abf914d8316761d7556da6384193365.gif").x();
                    TextView textView = (TextView) _$_findCachedViewById(R.id.tvTitle);
                    if (textView != null) {
                        textView.setText("处理中");
                    }
                    TextViewCompat.setTextAppearance((TextView) _$_findCachedViewById(R.id.tvTitle), 2131886385);
                    ((TextView) _$_findCachedViewById(R.id.tvSubTitle)).setText("正在提交借款申请,请勿关闭当前页面");
                    Group group = (Group) _$_findCachedViewById(R.id.groupBank);
                    if (group != null) {
                        group.setVisibility(8);
                    }
                    Button button = (Button) _$_findCachedViewById(R.id.btnReturn);
                    if (button != null) {
                        button.setVisibility(8);
                    }
                }
                g();
            } else if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 233955, new Class[0], Void.TYPE).isSupported) {
                ((DuImageLoaderView) _$_findCachedViewById(R.id.ivStatus)).setImageResource(R.mipmap.mcl_ic_failed);
                ((TextView) _$_findCachedViewById(R.id.tvTitle)).setText(getString(R.string.mcl_loan_apply_failed));
                TextViewCompat.setTextAppearance((TextView) _$_findCachedViewById(R.id.tvTitle), 2131886384);
                ((TextView) _$_findCachedViewById(R.id.tvSubTitle)).setText("很抱歉,系统评估暂时无法提供该笔借款");
                Group group2 = (Group) _$_findCachedViewById(R.id.groupBank);
                if (group2 != null) {
                    group2.setVisibility(8);
                }
                Button button2 = (Button) _$_findCachedViewById(R.id.btnReturn);
                if (button2 != null) {
                    button2.setVisibility(0);
                }
                Button button3 = (Button) _$_findCachedViewById(R.id.btnReturn);
                if (button3 != null) {
                    button3.setText(getString(R.string.mcl_return));
                }
                Button button4 = (Button) _$_findCachedViewById(R.id.btnReturn);
                if (button4 != null) {
                    ViewExtensionKt.j(button4, 0, new MClLoanResultActivity$setLoanApplyFailedUI$1(this), 1);
                }
            }
        }
    }

    @Override // com.shizhuang.duapp.common.ui.BaseLeftBackActivity, com.shizhuang.duapp.common.ui.BaseActivity, com.shizhuang.duapp.common.base.inter.IViewController
    public void initView(@Nullable Bundle bundle) {
        if (!PatchProxy.proxy(new Object[]{bundle}, this, changeQuickRedirect, false, 233950, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
            super.initView(bundle);
            Toolbar toolbar = this.toolbar;
            if (toolbar != null) {
                toolbar.setTitle(getString(R.string.mcl_cash_loan_home_name));
            }
            ActionBar supportActionBar = getSupportActionBar();
            if (supportActionBar != null) {
                supportActionBar.setHomeAsUpIndicator(R.mipmap.mcl_ic_close);
            }
        }
    }

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

    @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, 233960, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
            _boostWeave.ActivityMethodWeaver_onCreate(this, bundle);
        }
    }

    @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, 233952, 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, 233964, 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, 233962, new Class[0], Void.TYPE).isSupported) {
            _boostWeave.ActivityMethodWeaver_onStart(this);
        }
    }
}