package com.scb.phone.view.adapter.sme.gifting; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import androidx.recyclerview.widget.RecyclerView; import butterknife.BindView; import butterknife.ButterKnife; import butterknife.Unbinder; import com.scb.phone.R; import com.scb.phone.view.adapter.sme.gifting.GifShareMomentBackgroundAdapter; import com.squareup.picasso.Picasso; import java.util.List; import o.C13020fOa; import o.WP; import o.YKU; import o.pyT; import o.qsu; /* loaded from: classes5.dex */ public final class GifShareMomentBackgroundAdapter extends RecyclerView.Sts { private List b; private IeS c; /* loaded from: classes5.dex */ public interface IeS { void e(WP wp); } /* loaded from: classes5.dex */ public class GifShareMomentBackgroundHolder_ViewBinding implements Unbinder { private GifShareMomentBackgroundHolder d; public GifShareMomentBackgroundHolder_ViewBinding(GifShareMomentBackgroundHolder gifShareMomentBackgroundHolder, View view) { this.d = gifShareMomentBackgroundHolder; gifShareMomentBackgroundHolder.backgroundTile = (ImageView) pyT.e(view, R.id.background_image, "field 'backgroundTile'", ImageView.class); gifShareMomentBackgroundHolder.backgroundCheck = (ImageView) pyT.e(view, R.id.background_check, "field 'backgroundCheck'", ImageView.class); } @Override // butterknife.Unbinder public final void a() { GifShareMomentBackgroundHolder gifShareMomentBackgroundHolder = this.d; if (gifShareMomentBackgroundHolder == null) { throw new IllegalStateException("Bindings already cleared."); } this.d = null; gifShareMomentBackgroundHolder.backgroundTile = null; gifShareMomentBackgroundHolder.backgroundCheck = null; } } @Override // androidx.recyclerview.widget.RecyclerView.Sts public final /* synthetic */ void onBindViewHolder(GifShareMomentBackgroundHolder gifShareMomentBackgroundHolder, int i) { GifShareMomentBackgroundHolder gifShareMomentBackgroundHolder2 = gifShareMomentBackgroundHolder; final WP wp = this.b.get(i); C13020fOa e = Picasso.d().e(wp.e); e.e = true; e.aBu_(gifShareMomentBackgroundHolder2.backgroundTile, null); if (wp.c) { gifShareMomentBackgroundHolder2.backgroundCheck.setVisibility(0); wp.h = true; wp.c = false; this.c.e(wp); } if (wp.h) { gifShareMomentBackgroundHolder2.backgroundCheck.setVisibility(0); } else { gifShareMomentBackgroundHolder2.backgroundCheck.setVisibility(8); } gifShareMomentBackgroundHolder2.backgroundTile.setOnClickListener(new View.OnClickListener(this, wp) { // from class: o.eyX private WP c; private GifShareMomentBackgroundAdapter e; @Override // android.view.View.OnClickListener public final void onClick(View view) { GifShareMomentBackgroundAdapter.e(this.e, this.c); } { this.e = this; this.c = wp; } }); } public GifShareMomentBackgroundAdapter(List list, IeS ieS) { this.b = list; this.c = ieS; } @Override // androidx.recyclerview.widget.RecyclerView.Sts public final int getItemCount() { return this.b.size(); } /* loaded from: classes5.dex */ protected class GifShareMomentBackgroundHolder extends RecyclerView.zJl { @BindView ImageView backgroundCheck; @BindView ImageView backgroundTile; private GifShareMomentBackgroundAdapter d; /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public GifShareMomentBackgroundHolder(GifShareMomentBackgroundAdapter gifShareMomentBackgroundAdapter, View view) { super(view); this.d = gifShareMomentBackgroundAdapter; ButterKnife.c(this, view); } } public static /* synthetic */ void e(GifShareMomentBackgroundAdapter gifShareMomentBackgroundAdapter, WP wp) { if (!wp.h) { new YKU(gifShareMomentBackgroundAdapter.b).d(new qsu() { // from class: o.eyW @Override // o.qsu public final void d(Object obj) { ((WP) obj).h = false; } }); wp.h = true; gifShareMomentBackgroundAdapter.c.e(wp); } gifShareMomentBackgroundAdapter.notifyDataSetChanged(); } @Override // androidx.recyclerview.widget.RecyclerView.Sts public final /* synthetic */ GifShareMomentBackgroundHolder onCreateViewHolder(ViewGroup viewGroup, int i) { return new GifShareMomentBackgroundHolder(this, LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131559980, viewGroup, false)); } }