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


package com.shizhuang.duapp.modules.productv2.favorite.coupon;

import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.app.Dialog;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Point;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.view.WindowManager;
import android.view.animation.AccelerateInterpolator;
import android.view.animation.Animation;
import android.widget.FrameLayout;
import android.widget.ImageView;
import androidx.annotation.Keep;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.core.content.ContextCompat;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import cd.l;
import co.c;
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.dialog.BaseDialogFragment;
import com.shizhuang.duapp.common.extension.ViewExtensionKt;
import com.shizhuang.duapp.libs.animation.DuAnimationView;
import com.shizhuang.duapp.libs.duimageloaderview.DuImageLoaderView;
import com.shizhuang.duapp.modules.du_mall_common.widget.DuLinearDividerDecoration;
import com.shizhuang.duapp.modules.productv2.favorite.coupon.facade.CouponPrizeModel;
import java.util.HashMap;
import java.util.List;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.collections.CollectionsKt__CollectionsKt;
import kotlin.jvm.internal.DefaultConstructorMarker;
import nd.e;
import org.jetbrains.annotations.NotNull;

@Metadata(bv = {}, d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\u0018\u00002\u00020\u0001:\u0001\u0004B\u0007¢\u0006\u0004\b\u0002\u0010\u0003¨\u0006\u0005"}, d2 = {"Lcom/shizhuang/duapp/modules/productv2/favorite/coupon/FavoriteNewCouponDialog;", "Lcom/shizhuang/duapp/common/dialog/BaseDialogFragment;", "<init>", "()V", "a", "du_product_release"}, k = 1, mv = {1, 4, 2})
/* compiled from: FavoriteNewCouponDialog.kt */
public final class FavoriteNewCouponDialog extends BaseDialogFragment {
    public static ChangeQuickRedirect changeQuickRedirect;
    @NotNull
    public static final a j = new a(null);
    public FavoriteNewCouponAdapter e = new FavoriteNewCouponAdapter();
    public Animation f;

    /* renamed from: g  reason: collision with root package name */
    public AnimatorSet f23753g;

    /* renamed from: h  reason: collision with root package name */
    public AnimatorSet f23754h;
    public HashMap i;

    public class _boostWeave {
        public static ChangeQuickRedirect changeQuickRedirect;

        @TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment")
        @Insert(mayCreateSuper = true, value = "onCreate")
        @Keep
        public static void FragmentMethodWeaver_onCreate(FavoriteNewCouponDialog favoriteNewCouponDialog, Bundle bundle) {
            if (!PatchProxy.proxy(new Object[]{favoriteNewCouponDialog, bundle}, null, changeQuickRedirect, true, 295679, new Class[]{FavoriteNewCouponDialog.class, Bundle.class}, Void.TYPE).isSupported) {
                long currentTimeMillis = System.currentTimeMillis();
                FavoriteNewCouponDialog.s(favoriteNewCouponDialog, bundle);
                long currentTimeMillis2 = System.currentTimeMillis();
                if (favoriteNewCouponDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.productv2.favorite.coupon.FavoriteNewCouponDialog")) {
                    jn.b.f34396a.fragmentOnCreateMethod(favoriteNewCouponDialog, currentTimeMillis, currentTimeMillis2);
                }
            }
        }

        @TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment")
        @Insert(mayCreateSuper = true, value = "onCreateView")
        @Keep
        public static View FragmentMethodWeaver_onCreateView(@NonNull FavoriteNewCouponDialog favoriteNewCouponDialog, @Nullable LayoutInflater layoutInflater, @Nullable ViewGroup viewGroup, Bundle bundle) {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[]{favoriteNewCouponDialog, layoutInflater, viewGroup, bundle}, null, changeQuickRedirect, true, 295681, new Class[]{FavoriteNewCouponDialog.class, LayoutInflater.class, ViewGroup.class, Bundle.class}, View.class);
            if (proxy.isSupported) {
                return (View) proxy.result;
            }
            long currentTimeMillis = System.currentTimeMillis();
            View u4 = FavoriteNewCouponDialog.u(favoriteNewCouponDialog, layoutInflater, viewGroup, bundle);
            long currentTimeMillis2 = System.currentTimeMillis();
            if (favoriteNewCouponDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.productv2.favorite.coupon.FavoriteNewCouponDialog")) {
                jn.b.f34396a.fragmentOnCreateViewMethod(favoriteNewCouponDialog, currentTimeMillis, currentTimeMillis2);
            }
            return u4;
        }

        @TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment")
        @Insert(mayCreateSuper = true, value = "onResume")
        @Keep
        public static void FragmentMethodWeaver_onResume(FavoriteNewCouponDialog favoriteNewCouponDialog) {
            if (!PatchProxy.proxy(new Object[]{favoriteNewCouponDialog}, null, changeQuickRedirect, true, 295682, new Class[]{FavoriteNewCouponDialog.class}, Void.TYPE).isSupported) {
                long currentTimeMillis = System.currentTimeMillis();
                FavoriteNewCouponDialog.v(favoriteNewCouponDialog);
                long currentTimeMillis2 = System.currentTimeMillis();
                if (favoriteNewCouponDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.productv2.favorite.coupon.FavoriteNewCouponDialog")) {
                    jn.b.f34396a.fragmentOnResumeMethod(favoriteNewCouponDialog, currentTimeMillis, currentTimeMillis2);
                }
            }
        }

        @TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment")
        @Insert(mayCreateSuper = true, value = "onStart")
        @Keep
        public static void FragmentMethodWeaver_onStart(FavoriteNewCouponDialog favoriteNewCouponDialog) {
            if (!PatchProxy.proxy(new Object[]{favoriteNewCouponDialog}, null, changeQuickRedirect, true, 295680, new Class[]{FavoriteNewCouponDialog.class}, Void.TYPE).isSupported) {
                long currentTimeMillis = System.currentTimeMillis();
                FavoriteNewCouponDialog.t(favoriteNewCouponDialog);
                long currentTimeMillis2 = System.currentTimeMillis();
                if (favoriteNewCouponDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.productv2.favorite.coupon.FavoriteNewCouponDialog")) {
                    jn.b.f34396a.fragmentOnStartMethod(favoriteNewCouponDialog, currentTimeMillis, currentTimeMillis2);
                }
            }
        }

        @TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment")
        @Insert(mayCreateSuper = true, value = "onViewCreated")
        @Keep
        public static void FragmentMethodWeaver_onViewCreated(@NonNull FavoriteNewCouponDialog favoriteNewCouponDialog, @Nullable View view, Bundle bundle) {
            if (!PatchProxy.proxy(new Object[]{favoriteNewCouponDialog, view, bundle}, null, changeQuickRedirect, true, 295683, new Class[]{FavoriteNewCouponDialog.class, View.class, Bundle.class}, Void.TYPE).isSupported) {
                long currentTimeMillis = System.currentTimeMillis();
                FavoriteNewCouponDialog.w(favoriteNewCouponDialog, view, bundle);
                long currentTimeMillis2 = System.currentTimeMillis();
                if (favoriteNewCouponDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.productv2.favorite.coupon.FavoriteNewCouponDialog")) {
                    jn.b.f34396a.fragmentOnViewCreatedMethod(favoriteNewCouponDialog, currentTimeMillis, currentTimeMillis2);
                }
            }
        }
    }

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

        public a(DefaultConstructorMarker defaultConstructorMarker) {
        }

        @NotNull
        public final FavoriteNewCouponDialog a(@org.jetbrains.annotations.Nullable String str) {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[]{str}, this, changeQuickRedirect, false, 295678, new Class[]{String.class}, FavoriteNewCouponDialog.class);
            if (proxy.isSupported) {
                return (FavoriteNewCouponDialog) proxy.result;
            }
            FavoriteNewCouponDialog favoriteNewCouponDialog = new FavoriteNewCouponDialog();
            Bundle d = androidx.appcompat.widget.a.d("dataString", str);
            Unit unit = Unit.INSTANCE;
            favoriteNewCouponDialog.setArguments(d);
            return favoriteNewCouponDialog;
        }
    }

    /* compiled from: FavoriteNewCouponDialog.kt */
    public static final class b extends AnimatorListenerAdapter {
        public static ChangeQuickRedirect changeQuickRedirect;
        public final /* synthetic */ FavoriteNewCouponDialog b;

        /* JADX WARN: Incorrect args count in method signature: ()V */
        public b(FavoriteNewCouponDialog favoriteNewCouponDialog) {
            this.b = favoriteNewCouponDialog;
        }

        public void onAnimationEnd(@NotNull Animator animator) {
            if (!PatchProxy.proxy(new Object[]{animator}, this, changeQuickRedirect, false, 295684, new Class[]{Animator.class}, Void.TYPE).isSupported) {
                super.onAnimationEnd(animator);
                ConstraintLayout constraintLayout = (ConstraintLayout) this.b._$_findCachedViewById(R.id.contentRoot);
                if (constraintLayout != null) {
                    DuAnimationView duAnimationView = (DuAnimationView) this.b._$_findCachedViewById(R.id.anim_view);
                    if (duAnimationView != null) {
                        duAnimationView.E();
                    }
                    FrameLayout frameLayout = (FrameLayout) this.b._$_findCachedViewById(R.id.bgAnimRoot);
                    if (frameLayout != null) {
                        frameLayout.setVisibility(8);
                    }
                    constraintLayout.setVisibility(0);
                    this.b.f23754h = new AnimatorSet();
                    AnimatorSet animatorSet = this.b.f23754h;
                    if (animatorSet != null) {
                        animatorSet.playTogether(CollectionsKt__CollectionsKt.listOf((Object[]) new ObjectAnimator[]{ObjectAnimator.ofFloat(constraintLayout, View.SCALE_Y, 0.3f, 1.0f), ObjectAnimator.ofFloat(constraintLayout, View.SCALE_X, 0.3f, 1.0f)}));
                    }
                    AnimatorSet animatorSet2 = this.b.f23754h;
                    if (animatorSet2 != null) {
                        animatorSet2.setDuration(250L);
                    }
                    AnimatorSet animatorSet3 = this.b.f23754h;
                    if (animatorSet3 != null) {
                        animatorSet3.start();
                    }
                }
            }
        }
    }

    public static void s(FavoriteNewCouponDialog favoriteNewCouponDialog, Bundle bundle) {
        if (!PatchProxy.proxy(new Object[]{bundle}, favoriteNewCouponDialog, changeQuickRedirect, false, 295669, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
            super.onCreate(bundle);
        }
    }

    public static void t(FavoriteNewCouponDialog favoriteNewCouponDialog) {
        if (!PatchProxy.proxy(new Object[0], favoriteNewCouponDialog, changeQuickRedirect, false, 295671, new Class[0], Void.TYPE).isSupported) {
            super.onStart();
        }
    }

    public static View u(FavoriteNewCouponDialog favoriteNewCouponDialog, LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[]{layoutInflater, viewGroup, bundle}, favoriteNewCouponDialog, changeQuickRedirect, false, 295673, new Class[]{LayoutInflater.class, ViewGroup.class, Bundle.class}, View.class);
        return proxy.isSupported ? (View) proxy.result : super.onCreateView(layoutInflater, viewGroup, bundle);
    }

    public static void v(FavoriteNewCouponDialog favoriteNewCouponDialog) {
        if (!PatchProxy.proxy(new Object[0], favoriteNewCouponDialog, changeQuickRedirect, false, 295675, new Class[0], Void.TYPE).isSupported) {
            super.onResume();
        }
    }

    public static void w(FavoriteNewCouponDialog favoriteNewCouponDialog, View view, Bundle bundle) {
        if (!PatchProxy.proxy(new Object[]{view, bundle}, favoriteNewCouponDialog, changeQuickRedirect, false, 295677, new Class[]{View.class, Bundle.class}, Void.TYPE).isSupported) {
            super.onViewCreated(view, bundle);
        }
    }

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

    @Override // com.shizhuang.duapp.common.dialog.DuDialogFragment
    public void g() {
        View decorView;
        View decorView2;
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 295658, new Class[0], Void.TYPE).isSupported) {
            Dialog dialog = getDialog();
            WindowManager.LayoutParams layoutParams = null;
            Window window = dialog != null ? dialog.getWindow() : null;
            if (!(window == null || (decorView2 = window.getDecorView()) == null)) {
                decorView2.setPadding(0, 0, 0, 0);
            }
            if (window != null) {
                layoutParams = window.getAttributes();
            }
            if (layoutParams != null) {
                layoutParams.gravity = 17;
            }
            if (layoutParams != null) {
                layoutParams.width = -1;
            }
            if (layoutParams != null) {
                layoutParams.height = fi.b.b;
            }
            if (window != null) {
                window.setAttributes(layoutParams);
            }
            if (window != null && (decorView = window.getDecorView()) != null) {
                decorView.setClipToOutline(false);
            }
        }
    }

    @Override // com.shizhuang.duapp.common.dialog.DuDialogFragment, androidx.appcompat.app.AppCompatDialogFragment, androidx.fragment.app.Fragment, com.shizhuang.duapp.common.dialog.BaseDialogFragment, androidx.fragment.app.DialogFragment
    public void onCreate(Bundle bundle) {
        if (!PatchProxy.proxy(new Object[]{bundle}, this, changeQuickRedirect, false, 295668, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
            _boostWeave.FragmentMethodWeaver_onCreate(this, bundle);
        }
    }

    @Override // com.shizhuang.duapp.common.dialog.DuDialogFragment, androidx.appcompat.app.AppCompatDialogFragment, androidx.fragment.app.Fragment, com.shizhuang.duapp.common.dialog.BaseDialogFragment, androidx.fragment.app.DialogFragment
    public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[]{layoutInflater, viewGroup, bundle}, this, changeQuickRedirect, false, 295672, new Class[]{LayoutInflater.class, ViewGroup.class, Bundle.class}, View.class);
        return proxy.isSupported ? (View) proxy.result : _boostWeave.FragmentMethodWeaver_onCreateView(this, layoutInflater, viewGroup, bundle);
    }

    @Override // androidx.fragment.app.Fragment, com.shizhuang.duapp.common.dialog.BaseDialogFragment, androidx.fragment.app.DialogFragment
    public void onDestroyView() {
        HashMap hashMap;
        super.onDestroyView();
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 295667, new Class[0], Void.TYPE).isSupported && (hashMap = this.i) != null) {
            hashMap.clear();
        }
    }

    @Override // androidx.fragment.app.Fragment, androidx.fragment.app.DialogFragment
    public void onDetach() {
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 295664, new Class[0], Void.TYPE).isSupported) {
            super.onDetach();
            Animation animation = this.f;
            if (animation != null) {
                animation.cancel();
            }
            AnimatorSet animatorSet = this.f23753g;
            if (animatorSet != null && animatorSet.isRunning()) {
                animatorSet.cancel();
            }
            AnimatorSet animatorSet2 = this.f23754h;
            if (animatorSet2 != null && animatorSet2.isRunning()) {
                animatorSet2.cancel();
            }
            DuAnimationView duAnimationView = (DuAnimationView) _$_findCachedViewById(R.id.anim_view);
            if (duAnimationView != null) {
                duAnimationView.E();
            }
        }
    }

    @Override // com.shizhuang.duapp.common.dialog.DuDialogFragment, androidx.appcompat.app.AppCompatDialogFragment, androidx.fragment.app.Fragment, com.shizhuang.duapp.common.dialog.BaseDialogFragment, androidx.fragment.app.DialogFragment
    public void onResume() {
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 295674, new Class[0], Void.TYPE).isSupported) {
            _boostWeave.FragmentMethodWeaver_onResume(this);
        }
    }

    @Override // com.shizhuang.duapp.common.dialog.DuDialogFragment, androidx.appcompat.app.AppCompatDialogFragment, androidx.fragment.app.Fragment, com.shizhuang.duapp.common.dialog.BaseDialogFragment, androidx.fragment.app.DialogFragment
    public void onStart() {
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 295670, new Class[0], Void.TYPE).isSupported) {
            _boostWeave.FragmentMethodWeaver_onStart(this);
        }
    }

    @Override // com.shizhuang.duapp.common.dialog.DuDialogFragment, androidx.appcompat.app.AppCompatDialogFragment, androidx.fragment.app.Fragment, com.shizhuang.duapp.common.dialog.BaseDialogFragment, androidx.fragment.app.DialogFragment
    public void onViewCreated(View view, Bundle bundle) {
        if (!PatchProxy.proxy(new Object[]{view, bundle}, this, changeQuickRedirect, false, 295676, new Class[]{View.class, Bundle.class}, Void.TYPE).isSupported) {
            _boostWeave.FragmentMethodWeaver_onViewCreated(this, view, bundle);
        }
    }

    @Override // com.shizhuang.duapp.common.dialog.BaseDialogFragment
    public int q() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 295661, new Class[0], Integer.TYPE);
        return proxy.isSupported ? ((Integer) proxy.result).intValue() : R.layout.dp_dialog_favorite_coupon;
    }

    @Override // com.shizhuang.duapp.common.dialog.BaseDialogFragment
    public void r(@org.jetbrains.annotations.Nullable View view) {
        DuAnimationView F;
        DuAnimationView p;
        Context context;
        c i3;
        c cVar;
        c i12;
        c cVar2;
        Dialog dialog;
        boolean z = true;
        if (!PatchProxy.proxy(new Object[]{view}, this, changeQuickRedirect, false, 295655, new Class[]{View.class}, Void.TYPE).isSupported) {
            if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 295659, new Class[0], Void.TYPE).isSupported && (dialog = getDialog()) != null) {
                dialog.setCanceledOnTouchOutside(false);
            }
            if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 295657, new Class[0], Void.TYPE).isSupported) {
                DuImageLoaderView duImageLoaderView = (DuImageLoaderView) _$_findCachedViewById(R.id.bgImg);
                if (!(duImageLoaderView == null || (i12 = duImageLoaderView.i("https://cdn.poizon.com/node-common/9d2ba9ee-ac15-013b-310b-9551e832ebac-642-860.png")) == null || (cVar2 = (c) h.b.h(1080, 1080, i12)) == null)) {
                    cVar2.x();
                }
                DuImageLoaderView duImageLoaderView2 = (DuImageLoaderView) _$_findCachedViewById(R.id.fgImg);
                if (!(duImageLoaderView2 == null || (i3 = duImageLoaderView2.i("https://cdn.poizon.com/node-common/8e46e56d-fc7b-4f81-1584-96031e352593-963-1290.png")) == null || (cVar = (c) h.b.h(1080, 1080, i3)) == null)) {
                    cVar.x();
                }
            }
            if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 295656, new Class[0], Void.TYPE).isSupported && (context = getContext()) != null) {
                ((RecyclerView) _$_findCachedViewById(R.id.rvCouponList)).addItemDecoration(new DuLinearDividerDecoration(context, 0, null, ContextCompat.getColor(context, R.color.transparent), fi.b.b((float) 5), new Point(0, 0), false, false, 198));
                ((RecyclerView) _$_findCachedViewById(R.id.rvCouponList)).setLayoutManager(new LinearLayoutManager(context));
                ((RecyclerView) _$_findCachedViewById(R.id.rvCouponList)).setAdapter(this.e);
                Bundle arguments = getArguments();
                ViewGroup.LayoutParams layoutParams = null;
                List j12 = e.j(arguments != null ? arguments.getString("dataString") : null, CouponPrizeModel.PrizesBean.class);
                if (j12 != null && !j12.isEmpty()) {
                    z = false;
                }
                if (!z && l.a(getActivity())) {
                    if (j12.size() >= 3) {
                        FrameLayout frameLayout = (FrameLayout) _$_findCachedViewById(R.id.rv_root);
                        ViewGroup.LayoutParams layoutParams2 = frameLayout != null ? frameLayout.getLayoutParams() : null;
                        if (layoutParams2 != null) {
                            layoutParams2.height = fi.b.b((float) 216);
                        }
                        RecyclerView recyclerView = (RecyclerView) _$_findCachedViewById(R.id.rvCouponList);
                        if (recyclerView != null) {
                            layoutParams = recyclerView.getLayoutParams();
                        }
                        if (layoutParams != null) {
                            layoutParams.height = -1;
                        }
                    } else {
                        FrameLayout frameLayout2 = (FrameLayout) _$_findCachedViewById(R.id.rv_root);
                        ViewGroup.LayoutParams layoutParams3 = frameLayout2 != null ? frameLayout2.getLayoutParams() : null;
                        if (layoutParams3 != null) {
                            layoutParams3.height = fi.b.b((float) 184);
                        }
                        RecyclerView recyclerView2 = (RecyclerView) _$_findCachedViewById(R.id.rvCouponList);
                        if (recyclerView2 != null) {
                            layoutParams = recyclerView2.getLayoutParams();
                        }
                        if (layoutParams != null) {
                            layoutParams.height = -2;
                        }
                    }
                    this.e.setItems(j12);
                }
            }
            if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 295660, new Class[0], Void.TYPE).isSupported) {
                ViewExtensionKt.h((ImageView) _$_findCachedViewById(R.id.closeIcon), new FavoriteNewCouponDialog$initClick$1(this));
                ViewExtensionKt.h(_$_findCachedViewById(R.id.btn), new FavoriteNewCouponDialog$initClick$2(this));
            }
            DuAnimationView duAnimationView = (DuAnimationView) _$_findCachedViewById(R.id.anim_view);
            if (duAnimationView != null && (F = duAnimationView.F("https://videocdn.poizon.com/node-common/f4c944d8-4db2-6686-40ac-a49e50d98729.mp4")) != null && (p = F.p(new FavoriteNewCouponDialog$initView$1(this))) != null) {
                p.s();
            }
        }
    }

    @org.jetbrains.annotations.Nullable
    public final Bitmap x(@org.jetbrains.annotations.Nullable Context context, @NotNull Bitmap bitmap, float f12) {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[]{context, bitmap, new Float(f12)}, this, changeQuickRedirect, false, 295665, new Class[]{Context.class, Bitmap.class, Float.TYPE}, Bitmap.class);
        if (proxy.isSupported) {
            return (Bitmap) proxy.result;
        }
        Bitmap createBitmap = Bitmap.createBitmap(Bitmap.createScaledBitmap(bitmap, bitmap.getWidth(), bitmap.getHeight(), false));
        mn.a.f35714a.a(createBitmap, (int) f12);
        return createBitmap;
    }

    public final void y() {
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 295663, new Class[0], Void.TYPE).isSupported) {
            AnimatorSet animatorSet = new AnimatorSet();
            this.f23753g = animatorSet;
            animatorSet.playTogether(CollectionsKt__CollectionsKt.listOf((Object[]) new ObjectAnimator[]{ObjectAnimator.ofFloat((ImageView) _$_findCachedViewById(R.id.imvGiftBox), View.SCALE_Y, 1.0f, 0.3f, 1.5f), ObjectAnimator.ofFloat((ImageView) _$_findCachedViewById(R.id.imvGiftBox), View.SCALE_X, 1.0f, 0.3f, 1.5f), ObjectAnimator.ofFloat((ImageView) _$_findCachedViewById(R.id.imvGiftBox), View.ALPHA, 1.0f, 1.0f, 0.2f)}));
            AnimatorSet animatorSet2 = this.f23753g;
            if (animatorSet2 != null) {
                animatorSet2.setInterpolator(new AccelerateInterpolator());
            }
            AnimatorSet animatorSet3 = this.f23753g;
            if (animatorSet3 != null) {
                animatorSet3.setDuration(500L);
            }
            AnimatorSet animatorSet4 = this.f23753g;
            if (animatorSet4 != null) {
                animatorSet4.addListener(new b(this));
            }
            AnimatorSet animatorSet5 = this.f23753g;
            if (animatorSet5 != null) {
                animatorSet5.start();
            }
        }
    }
}