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


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

import android.os.Bundle;
import android.os.CountDownTimer;
import android.view.View;
import android.widget.TextView;
import androidx.annotation.Keep;
import androidx.constraintlayout.widget.Group;
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.ui.BaseLeftBackActivity;
import com.shizhuang.duapp.libs.duimageloaderview.DuImageLoaderView;
import java.util.HashMap;
import jn.b;
import kotlin.Lazy;
import kotlin.LazyKt__LazyJVMKt;
import kotlin.Metadata;
import kotlin.jvm.JvmField;
import org.jetbrains.annotations.Nullable;

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

    /* renamed from: c  reason: collision with root package name */
    public String f17238c = "";
    public boolean d;
    public boolean e = true;
    public final Lazy f = LazyKt__LazyJVMKt.lazy(new JClRepayResultActivity$countDownTimer$2(this));

    /* renamed from: g  reason: collision with root package name */
    public HashMap f17239g;

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

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

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

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

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

    public static void f(JClRepayResultActivity jClRepayResultActivity) {
        if (!PatchProxy.proxy(new Object[0], jClRepayResultActivity, changeQuickRedirect, false, 176890, 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, 176883, new Class[]{Integer.TYPE}, View.class);
        if (proxy.isSupported) {
            return (View) proxy.result;
        }
        if (this.f17239g == null) {
            this.f17239g = new HashMap();
        }
        View view = (View) this.f17239g.get(Integer.valueOf(i));
        if (view != null) {
            return view;
        }
        View findViewById = findViewById(i);
        this.f17239g.put(Integer.valueOf(i), findViewById);
        return findViewById;
    }

    public final void g() {
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 176881, new Class[0], Void.TYPE).isSupported) {
            h().cancel();
            this.d = false;
            this.e = true;
        }
    }

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

    public final CountDownTimer h() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 176870, new Class[0], CountDownTimer.class);
        return (CountDownTimer) (proxy.isSupported ? proxy.result : this.f.getValue());
    }

    public final void i() {
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 176876, new Class[0], Void.TYPE).isSupported) {
            ((DuImageLoaderView) _$_findCachedViewById(R.id.img)).h(R.mipmap.fs_ic_applying).x();
            ((TextView) _$_findCachedViewById(R.id.tv_1)).setText(R.string.fs_repay_processing);
            ((TextView) _$_findCachedViewById(R.id.tv_1)).setTextColor(getResources().getColor(R.color.fs_color_blue_01c2c3));
            ((TextView) _$_findCachedViewById(R.id.tv_2)).setText(R.string.fs_do_not_repeat_repay);
            ((TextView) _$_findCachedViewById(R.id.tv_2)).setTextColor(getResources().getColor(R.color.fs_color_gray_7f7f8e));
            ((TextView) _$_findCachedViewById(R.id.tv_to_bill)).setVisibility(0);
            ((Group) _$_findCachedViewById(R.id.group)).setVisibility(8);
        }
    }

    @Override // com.shizhuang.duapp.common.ui.BaseActivity, com.shizhuang.duapp.common.base.inter.IViewController
    public void initData() {
        boolean z = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 176878, new Class[0], Void.TYPE).isSupported;
    }

    @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, 176879, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
            super.initView(bundle);
            this.d = true;
            if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 176875, new Class[0], Void.TYPE).isSupported) {
                ((DuImageLoaderView) _$_findCachedViewById(R.id.img)).i("https://cdn.poizon.com/node-common/5abf914d8316761d7556da6384193365.gif").x();
            }
            h().start();
            ((TextView) _$_findCachedViewById(R.id.tv_to_bill)).setOnClickListener(new JClRepayResultActivity$initView$1(this));
            ((TextView) _$_findCachedViewById(R.id.tv_back)).setOnClickListener(new JClRepayResultActivity$initView$2(this));
            ((TextView) _$_findCachedViewById(R.id.tv_to_repay)).setOnClickListener(new JClRepayResultActivity$initView$3(this));
        }
    }

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

    @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, 176885, 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, 176882, new Class[0], Void.TYPE).isSupported) {
            super.onDestroy();
            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, 176889, 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, 176887, new Class[0], Void.TYPE).isSupported) {
            _boostWeave.ActivityMethodWeaver_onStart(this);
        }
    }
}