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


package com.shizhuang.duapp.modules.blindbox.widget.looper;

import android.view.View;
import androidx.appcompat.widget.AppCompatTextView;
import cd.g;
import co.c;
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.DrawableScale;
import com.shizhuang.duapp.common.ui.view.ProductImageLoaderView;
import com.shizhuang.duapp.libs.duimageloaderview.DuImageLoaderView;
import com.shizhuang.duapp.modules.blindbox.box.model.UserSku;
import ex.a;
import java.util.HashMap;
import kotlin.Metadata;
import org.jetbrains.annotations.NotNull;

@Metadata(bv = {}, d1 = {"\u0000\n\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\b\u0000\u0018\u00002\u00020\u0001¨\u0006\u0002"}, d2 = {"Lcom/shizhuang/duapp/modules/blindbox/widget/looper/LooperNormalViewHolder;", "Lcom/shizhuang/duapp/modules/blindbox/widget/looper/BoxLooperViewHolder;", "du_blind_box_release"}, k = 1, mv = {1, 4, 2})
/* compiled from: LooperNormalViewHolder.kt */
public final class LooperNormalViewHolder extends BoxLooperViewHolder {
    public static ChangeQuickRedirect changeQuickRedirect;
    @NotNull

    /* renamed from: c  reason: collision with root package name */
    public final View f11259c;
    public HashMap d;

    public LooperNormalViewHolder(@NotNull View view) {
        super(view);
        this.f11259c = view;
    }

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

    @Override // com.shizhuang.duapp.modules.blindbox.widget.looper.BoxLooperViewHolder
    public void a(@NotNull UserSku userSku) {
        if (!PatchProxy.proxy(new Object[]{userSku}, this, changeQuickRedirect, false, 71521, new Class[]{UserSku.class}, Void.TYPE).isSupported) {
            ((c) ((DuImageLoaderView) _$_findCachedViewById(R.id.looperNormalBg)).i("https://apk.poizon.com/duApp/Android_Config/resource/mall/app/blind_box/blind_box_looper_item_normal_bg.webp").v(a.f32060a.g())).x();
            ((DuImageLoaderView) _$_findCachedViewById(R.id.headIv)).i(userSku.getUserAvatar()).j0(getContainerView().getContext(), R.mipmap.ic_user_icon).o0(true).x();
            ((AppCompatTextView) _$_findCachedViewById(R.id.messageTv)).setText(userSku.getUserName() + "  获得");
            g.a(((ProductImageLoaderView) _$_findCachedViewById(R.id.skuIv)).i(userSku.getSkuPic()), DrawableScale.OneToOne).x();
        }
    }

    @Override // kotlinx.android.extensions.LayoutContainer, com.shizhuang.duapp.modules.blindbox.widget.looper.BoxLooperViewHolder
    @NotNull
    public View getContainerView() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 71522, new Class[0], View.class);
        return proxy.isSupported ? (View) proxy.result : this.f11259c;
    }
}