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


package com.shizhuang.duapp.modules.product_detail.own.ui;

import a.f;
import android.os.Bundle;
import android.view.View;
import androidx.annotation.Keep;
import androidx.annotation.Nullable;
import androidx.appcompat.widget.AppCompatTextView;
import androidx.appcompat.widget.Toolbar;
import androidx.core.view.OneShotPreDrawListener;
import androidx.fragment.app.Fragment;
import androidx.lifecycle.Lifecycle;
import androidx.lifecycle.LifecycleOwnerKt;
import androidx.lifecycle.LiveData;
import androidx.lifecycle.ViewModelLazy;
import androidx.transition.Fade;
import co.d;
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.liulishuo.okdownload.core.cause.EndCause;
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.ui.BaseLeftBackActivity;
import com.shizhuang.duapp.libs.animation.DuAnimationError;
import com.shizhuang.duapp.libs.duimageloaderview.options.DuRequestOptions;
import com.shizhuang.duapp.modules.du_mall_common.constant.MallABTest;
import com.shizhuang.duapp.modules.du_mall_common.extension.LiveDataExtensionKt;
import com.shizhuang.duapp.modules.du_mall_common.widget.DuIconsTextView;
import com.shizhuang.duapp.modules.pay.R$styleable;
import com.shizhuang.duapp.modules.product_detail.own.model.PlayGreetCardEvent;
import com.shizhuang.duapp.modules.product_detail.own.model.PlayOwnAnimEvent;
import com.shizhuang.duapp.modules.product_detail.own.views.MyOwnAnimView;
import com.shizhuang.duapp.modules.product_detail.own.views.MyOwnCardAnimView;
import com.shizhuang.duapp.modules.product_detail.own.vm.MyOwnViewModel;
import com.shizhuang.duapp.modules.product_detail.own.widget.DuIconsTextViewWithRedDot;
import df.r0;
import gg0.n;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Objects;
import kotlin.Lazy;
import kotlin.LazyKt__LazyJVMKt;
import kotlin.LazyThreadSafetyMode;
import kotlin.Metadata;
import kotlin.Pair;
import kotlin.collections.CollectionsKt__CollectionsKt;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.Reflection;
import kotlin.text.StringsKt__StringsJVMKt;
import kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1;
import m60.k;
import org.jetbrains.annotations.NotNull;
import pi.e;

@Route(path = "/product/MyOwnListPage")
@Metadata(bv = {}, d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\b\u0007\u0018\u00002\u00020\u0001:\u0001\u0004B\u0007¢\u0006\u0004\b\u0002\u0010\u0003¨\u0006\u0005"}, d2 = {"Lcom/shizhuang/duapp/modules/product_detail/own/ui/MyOwnActivity;", "Lcom/shizhuang/duapp/common/ui/BaseLeftBackActivity;", "<init>", "()V", "a", "du_product_detail_release"}, k = 1, mv = {1, 4, 2})
/* compiled from: MyOwnActivity.kt */
public final class MyOwnActivity extends BaseLeftBackActivity {
    public static ChangeQuickRedirect changeQuickRedirect;
    @NotNull
    public static final d m = new d(fi.b.b((float) 375), fi.b.b((float) 580));
    @NotNull
    public static final d n = new d(fi.b.b((float) 325), fi.b.b((float) 514));
    @NotNull
    public static final d o;
    @NotNull
    public static final d p = new d(fi.b.b((float) 317), fi.b.b((float) 450));
    @NotNull

    /* renamed from: q  reason: collision with root package name */
    public static final a f22821q = new a(null);

    /* renamed from: c  reason: collision with root package name */
    public final Lazy f22822c;
    public final Lazy d = new ViewModelLazy(Reflection.getOrCreateKotlinClass(MyOwnViewModel.class), new MyOwnActivity$$special$$inlined$viewModels$2(this), new MyOwnActivity$$special$$inlined$viewModels$1(this));
    public final Lazy e = LazyKt__LazyJVMKt.lazy(new MyOwnActivity$centerTitleView$2(this));
    public final Lazy f = LazyKt__LazyJVMKt.lazy(new MyOwnActivity$shareView$2(this));

    /* renamed from: g  reason: collision with root package name */
    public final Lazy f22823g = LazyKt__LazyJVMKt.lazy(new MyOwnActivity$qAView$2(this));

    /* renamed from: h  reason: collision with root package name */
    public boolean f22824h;
    public final Lazy i;
    public boolean j;
    public final Lazy k;
    public HashMap l;

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

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

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

    /* compiled from: MyOwnActivity.kt */
    public static final class a {
        public static ChangeQuickRedirect changeQuickRedirect;

        public a(DefaultConstructorMarker defaultConstructorMarker) {
        }

        @NotNull
        public final d a() {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 280430, new Class[0], d.class);
            return proxy.isSupported ? (d) proxy.result : MyOwnActivity.o;
        }

        @NotNull
        public final d b() {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 280429, new Class[0], d.class);
            return proxy.isSupported ? (d) proxy.result : MyOwnActivity.n;
        }
    }

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

        /* renamed from: c  reason: collision with root package name */
        public final /* synthetic */ MyOwnActivity f22825c;

        public b(View view, MyOwnActivity myOwnActivity) {
            this.b = view;
            this.f22825c = myOwnActivity;
        }

        public final void run() {
            if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 280444, new Class[0], Void.TYPE).isSupported) {
                MyOwnViewModel m = this.f22825c.m();
                int measuredHeight = this.f22825c.toolbar.getMeasuredHeight();
                if (!PatchProxy.proxy(new Object[]{new Integer(measuredHeight)}, m, MyOwnViewModel.changeQuickRedirect, false, 280900, new Class[]{Integer.TYPE}, Void.TYPE).isSupported) {
                    LiveDataExtensionKt.d(m.p, Integer.valueOf(measuredHeight));
                }
            }
        }
    }

    /* compiled from: DuAnimation.kt */
    public static final class c extends vl.a {
        public static ChangeQuickRedirect changeQuickRedirect;

        public c(String str) {
        }

        @Override // vl.a
        public void onTaskEnd(@NotNull s9.c cVar, @NotNull EndCause endCause, @org.jetbrains.annotations.Nullable Exception exc) {
            if (!PatchProxy.proxy(new Object[]{cVar, endCause, exc}, this, changeQuickRedirect, false, 280450, new Class[]{s9.c.class, EndCause.class, Exception.class}, Void.TYPE).isSupported) {
                if (endCause == EndCause.COMPLETED) {
                    e eVar = e.f37087a;
                    e.d().a();
                    eVar.l(cVar.d);
                    tl.a.w(cVar);
                    return;
                }
                e eVar2 = e.f37087a;
                if (e.d().a()) {
                    Objects.toString(endCause);
                    Objects.toString(exc);
                }
                StringBuilder h12 = f.h("download ");
                h12.append(cVar.d);
                h12.append(" error, cause:");
                h12.append(endCause);
                new DuAnimationError(h12.toString(), exc);
                eVar2.f().remove(cVar);
            }
        }
    }

    static {
        float f12 = (float) R$styleable.AppCompatTheme_windowActionBarOverlay;
        o = new d(fi.b.b(f12), fi.b.b(f12));
    }

    public MyOwnActivity() {
        MyOwnActivity$exposureHelper$2 myOwnActivity$exposureHelper$2 = new MyOwnActivity$exposureHelper$2(this);
        LazyThreadSafetyMode lazyThreadSafetyMode = LazyThreadSafetyMode.NONE;
        this.f22822c = LazyKt__LazyJVMKt.lazy(lazyThreadSafetyMode, (Function0) myOwnActivity$exposureHelper$2);
        this.i = LazyKt__LazyJVMKt.lazy(lazyThreadSafetyMode, (Function0) new MyOwnActivity$ownAnimationView$2(this));
        this.k = LazyKt__LazyJVMKt.lazy(lazyThreadSafetyMode, (Function0) new MyOwnActivity$ownCardAnimationView$2(this));
    }

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

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

    public static void f(MyOwnActivity myOwnActivity) {
        if (!PatchProxy.proxy(new Object[0], myOwnActivity, changeQuickRedirect, false, 280425, 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, 280418, new Class[]{Integer.TYPE}, View.class);
        if (proxy.isSupported) {
            return (View) proxy.result;
        }
        if (this.l == null) {
            this.l = new HashMap();
        }
        View view = (View) this.l.get(Integer.valueOf(i3));
        if (view != null) {
            return view;
        }
        View findViewById = findViewById(i3);
        this.l.put(Integer.valueOf(i3), findViewById);
        return findViewById;
    }

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

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

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

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

    @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, 280409, new Class[0], Void.TYPE).isSupported) {
            mk1.d.m(new FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1(m().b().of(PlayOwnAnimEvent.class), new MyOwnActivity$initData$1(this, null)), LifecycleOwnerKt.getLifecycleScope(this));
            mk1.d.m(new FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1(m().b().of(PlayGreetCardEvent.class), new MyOwnActivity$initData$2(this, null)), LifecycleOwnerKt.getLifecycleScope(this));
        }
    }

    @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, 280408, new Class[0], Void.TYPE).isSupported) {
            super.initStatusBar();
            r0.q(this, 0, null);
            r0.s(this, true);
            r0.B(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) {
        LiveData<Boolean> liveData;
        LiveData<Boolean> liveData2;
        LiveData<Pair<Integer, Boolean>> liveData3;
        if (!PatchProxy.proxy(new Object[]{bundle}, this, changeQuickRedirect, false, 280410, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
            super.initView(bundle);
            Toolbar toolbar = this.toolbar;
            toolbar.setContentInsetStartWithNavigation(0);
            toolbar.setTitle("");
            Toolbar.LayoutParams layoutParams = new Toolbar.LayoutParams(-2, -2, 8388611);
            layoutParams.setMarginStart(fi.b.b((float) 0));
            toolbar.addView(g(), layoutParams);
            Toolbar.LayoutParams layoutParams2 = new Toolbar.LayoutParams(-2, -2, 8388629);
            layoutParams2.setMarginEnd(fi.b.b((float) 15));
            toolbar.addView(l(), layoutParams2);
            Toolbar.LayoutParams layoutParams3 = new Toolbar.LayoutParams(-2, -2, 8388629);
            layoutParams3.setMarginEnd(fi.b.b((float) 8));
            toolbar.addView(k(), layoutParams3);
            if (bundle == null) {
                Fragment myOwnSpuListFragmentV2 = new MyOwnSpuListFragmentV2();
                Fade fade = new Fade();
                fade.setDuration(375);
                myOwnSpuListFragmentV2.setReenterTransition(fade);
                myOwnSpuListFragmentV2.setExitTransition(fade);
                getSupportFragmentManager().beginTransaction().add(R.id.container, myOwnSpuListFragmentV2, "MyOwnSpuListFragment").commitAllowingStateLoss();
            }
            Toolbar toolbar2 = this.toolbar;
            OneShotPreDrawListener.add(toolbar2, new b(toolbar2, this));
            MyOwnViewModel m12 = m();
            PatchProxyResult proxy = PatchProxy.proxy(new Object[0], m12, MyOwnViewModel.changeQuickRedirect, false, 280901, new Class[0], LiveData.class);
            if (proxy.isSupported) {
                liveData = (LiveData) proxy.result;
            } else {
                liveData = m12.t;
            }
            liveData.observe(this, new MyOwnActivity$initView$3(this));
            MyOwnViewModel m13 = m();
            PatchProxyResult proxy2 = PatchProxy.proxy(new Object[0], m13, MyOwnViewModel.changeQuickRedirect, false, 280902, new Class[0], LiveData.class);
            if (proxy2.isSupported) {
                liveData2 = (LiveData) proxy2.result;
            } else {
                liveData2 = m13.f22868v;
            }
            liveData2.observe(this, new MyOwnActivity$sam$androidx_lifecycle_Observer$0(new MyOwnActivity$initView$4(this)));
            LiveDataExtensionKt.b(m().h(), this, new MyOwnActivity$initView$5(this));
            MyOwnViewModel m14 = m();
            PatchProxyResult proxy3 = PatchProxy.proxy(new Object[0], m14, MyOwnViewModel.changeQuickRedirect, false, 280903, new Class[0], LiveData.class);
            if (proxy3.isSupported) {
                liveData3 = (LiveData) proxy3.result;
            } else {
                liveData3 = m14.x;
            }
            liveData3.observe(this, new MyOwnActivity$initView$6(this));
            ViewExtensionKt.j(l(), 0, new MyOwnActivity$initView$7(this), 1);
            if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 280413, new Class[0], Void.TYPE).isSupported) {
                h().setExposureCallback(new MyOwnActivity$initQaExposure$1(this));
                h().startAttachExposure(true);
            }
        }
    }

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

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

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

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

    @Override // androidx.activity.ComponentActivity, com.shizhuang.duapp.common.ui.BaseActivity
    public void onBackPressed() {
        boolean z;
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 280416, new Class[0], Void.TYPE).isSupported) {
            if (this.j) {
                MyOwnCardAnimView j12 = j();
                PatchProxyResult proxy = PatchProxy.proxy(new Object[0], j12, MyOwnCardAnimView.changeQuickRedirect, false, 280746, new Class[0], Boolean.TYPE);
                if (proxy.isSupported) {
                    z = ((Boolean) proxy.result).booleanValue();
                } else {
                    z = j12.f22853c;
                }
                if (z) {
                    j().a();
                    this.j = false;
                    return;
                }
            }
            Fragment findFragmentByTag = getSupportFragmentManager().findFragmentByTag("MyOwnSkuCardFragment");
            Fragment findFragmentByTag2 = getSupportFragmentManager().findFragmentByTag("MyOwnSpuListFragment");
            if (!(findFragmentByTag == null || findFragmentByTag2 == null)) {
                getSupportFragmentManager().beginTransaction().setMaxLifecycle(findFragmentByTag2, Lifecycle.State.RESUMED).commitAllowingStateLoss();
            }
            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, 280420, 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 onCreateViewBefore(@org.jetbrains.annotations.Nullable Bundle bundle) {
        if (!PatchProxy.proxy(new Object[]{bundle}, this, changeQuickRedirect, false, 280406, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
            super.onCreateViewBefore(bundle);
            Pair[] pairArr = new Pair[5];
            pairArr[0] = new Pair("https://apk.poizon.com/duApp/Android_Config/resource/mall/app/product_detail/ic_own_list_detail_bg.webp", m);
            MallABTest mallABTest = MallABTest.f13351a;
            String str = mallABTest.I() ? "https://apk.poizon.com/duApp/Android_Config/resource/mall/app/product_detail/bg_own_detail_card_poizion_new.png" : "https://apk.poizon.com/duApp/Android_Config/resource/mall/app/product_detail/bg_own_detail_card_poizion_v4.png";
            d dVar = n;
            pairArr[1] = new Pair(str, dVar);
            pairArr[2] = new Pair(mallABTest.I() ? "https://apk.poizon.com/duApp/Android_Config/resource/mall/app/product_detail/bg_own_detail_card_new.png" : "https://apk.poizon.com/duApp/Android_Config/resource/mall/app/product_detail/bg_own_detail_card_v4.png", dVar);
            pairArr[3] = new Pair("https://apk.poizon.com/duApp/Android_Config/resource/mall/app/product_detail/icon_detail_card_poizon_tag_new.png", o);
            pairArr[4] = new Pair("https://apk.poizon.com/duApp/Android_Config/resource/mall/image_online/plugin/bg_friend_greeting_card.webp", p);
            for (Pair pair : CollectionsKt__CollectionsKt.listOf((Object[]) pairArr)) {
                ((DuRequestOptions) mn.a.f35714a.g((String) pair.getFirst()).v((d) pair.getSecond())).G(this).y();
            }
            T t = null;
            e.j(this, null, qc.b.f37325a, 2);
            e eVar = e.f37087a;
            if (eVar.i()) {
                String e6 = eVar.e();
                if (StringsKt__StringsJVMKt.endsWith$default("https://videocdn.poizon.com/node-common/c07b1190-f898-1ddf-a933-28a2fc87e381.mp4", ".webp", false, 2, null) || StringsKt__StringsJVMKt.endsWith$default("https://videocdn.poizon.com/node-common/c07b1190-f898-1ddf-a933-28a2fc87e381.mp4", ".gif", false, 2, null) || StringsKt__StringsJVMKt.endsWith$default("https://videocdn.poizon.com/node-common/c07b1190-f898-1ddf-a933-28a2fc87e381.mp4", ".png", false, 2, null)) {
                    n.s(mn.a.f35714a, "https://videocdn.poizon.com/node-common/c07b1190-f898-1ddf-a933-28a2fc87e381.mp4");
                } else if (eVar.g("https://videocdn.poizon.com/node-common/c07b1190-f898-1ddf-a933-28a2fc87e381.mp4", e6, null) == null) {
                    c cVar = new c("https://videocdn.poizon.com/node-common/c07b1190-f898-1ddf-a933-28a2fc87e381.mp4");
                    if (e.k("https://videocdn.poizon.com/node-common/c07b1190-f898-1ddf-a933-28a2fc87e381.mp4")) {
                        Iterator<T> it2 = eVar.f().iterator();
                        while (true) {
                            if (!it2.hasNext()) {
                                break;
                            }
                            T next = it2.next();
                            if (Intrinsics.areEqual(next.d, "https://videocdn.poizon.com/node-common/c07b1190-f898-1ddf-a933-28a2fc87e381.mp4")) {
                                t = next;
                                break;
                            }
                        }
                        T t4 = t;
                        if (t4 != null) {
                            t4.r = cVar;
                            return;
                        }
                        return;
                    }
                    eVar.f().add(tl.a.r("https://videocdn.poizon.com/node-common/c07b1190-f898-1ddf-a933-28a2fc87e381.mp4", e6, null, cVar));
                }
            } else {
                throw new IllegalStateException("You should call DuAnimation.initialize at first!!");
            }
        }
    }

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