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


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

import android.os.Bundle;
import android.os.CountDownTimer;
import android.view.View;
import android.widget.TextView;
import androidx.annotation.Keep;
import androidx.annotation.Nullable;
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.core.BaseCoreActivity;
import com.shizhuang.duapp.libs.duimageloaderview.DuImageLoaderView;
import java.util.HashMap;
import jn.b;
import kotlin.Lazy;
import kotlin.LazyKt__LazyJVMKt;
import kotlin.Metadata;

@Metadata(bv = {}, d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003¨\u0006\u0004"}, d2 = {"Lcom/shizhuang/duapp/modules/financialstagesdk/ui/activity/PollSupplyInfoResultActivity;", "Lcom/shizhuang/duapp/common/base/core/BaseCoreActivity;", "<init>", "()V", "com.shizhuang.duapp.libs.du_financial_stage_sdk"}, k = 1, mv = {1, 4, 2})
/* compiled from: PollSupplyInfoResultActivity.kt */
public final class PollSupplyInfoResultActivity extends BaseCoreActivity {
    public static ChangeQuickRedirect changeQuickRedirect;

    /* renamed from: h  reason: collision with root package name */
    public boolean f15334h;
    public boolean i = true;
    public final Lazy j = LazyKt__LazyJVMKt.lazy(new PollSupplyInfoResultActivity$countDownTimer$2(this));
    public HashMap k;

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

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

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

    public static void f(PollSupplyInfoResultActivity pollSupplyInfoResultActivity, Bundle bundle) {
        if (!PatchProxy.proxy(new Object[]{bundle}, pollSupplyInfoResultActivity, changeQuickRedirect, false, 149638, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
            super.onCreate(bundle);
        }
    }

    public static void g(PollSupplyInfoResultActivity pollSupplyInfoResultActivity) {
        if (!PatchProxy.proxy(new Object[0], pollSupplyInfoResultActivity, changeQuickRedirect, false, 149640, new Class[0], Void.TYPE).isSupported) {
            super.onStart();
        }
    }

    public static void h(PollSupplyInfoResultActivity pollSupplyInfoResultActivity) {
        if (!PatchProxy.proxy(new Object[0], pollSupplyInfoResultActivity, changeQuickRedirect, false, 149642, new Class[0], Void.TYPE).isSupported) {
            super.onResume();
        }
    }

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

    @Override // com.shizhuang.duapp.common.base.core.IViewController2, com.shizhuang.duapp.common.base.core.BaseCoreActivity
    public int getLayout() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 149625, new Class[0], Integer.TYPE);
        return proxy.isSupported ? ((Integer) proxy.result).intValue() : R.layout.activity_poll_reslut;
    }

    public final void i() {
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 149633, new Class[0], Void.TYPE).isSupported) {
            j().cancel();
            this.f15334h = false;
            this.i = true;
        }
    }

    @Override // com.shizhuang.duapp.common.base.core.IViewController2, com.shizhuang.duapp.common.base.core.BaseCoreActivity
    public void initData() {
        boolean z = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 149626, new Class[0], Void.TYPE).isSupported;
    }

    @Override // com.shizhuang.duapp.common.base.core.IViewController2, com.shizhuang.duapp.common.base.core.BaseCoreActivity
    public void initView(@org.jetbrains.annotations.Nullable Bundle bundle) {
        if (!PatchProxy.proxy(new Object[]{bundle}, this, changeQuickRedirect, false, 149627, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
            this.f15334h = true;
            if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 149628, new Class[0], Void.TYPE).isSupported) {
                ((DuImageLoaderView) _$_findCachedViewById(R.id.img)).i("https://cdn.poizon.com/node-common/5abf914d8316761d7556da6384193365.gif").x();
                ((TextView) _$_findCachedViewById(R.id.tv_1)).setText("激活中");
            }
            j().start();
        }
    }

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

    public final void k() {
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 149629, new Class[0], Void.TYPE).isSupported) {
            ((DuImageLoaderView) _$_findCachedViewById(R.id.img)).h(R.mipmap.fs_ic_apply_fail).x();
            ((TextView) _$_findCachedViewById(R.id.tv_1)).setTextColor(getResources().getColor(R.color.fs_color_black_14151a));
            ((TextView) _$_findCachedViewById(R.id.tv_2)).setTextColor(getResources().getColor(R.color.fs_color_gray_7f7f8e));
            ((TextView) _$_findCachedViewById(R.id.tv_1)).setText("激活失败");
            ((TextView) _$_findCachedViewById(R.id.tv_2)).setVisibility(0);
            ((TextView) _$_findCachedViewById(R.id.tv_2)).setText("请30天后再尝试");
        }
    }

    @Override // androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, com.shizhuang.duapp.common.base.core.BaseCoreActivity
    public void onCreate(Bundle bundle) {
        if (!PatchProxy.proxy(new Object[]{bundle}, this, changeQuickRedirect, false, 149637, 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.base.core.BaseCoreActivity
    public void onDestroy() {
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 149634, new Class[0], Void.TYPE).isSupported) {
            super.onDestroy();
            i();
        }
    }

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

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