package com.scb.phone.view.activity.mwpartner; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Button; import android.widget.ImageView; import android.widget.TextView; import androidx.recyclerview.widget.RecyclerView; import butterknife.BindView; import butterknife.ButterKnife; import butterknife.OnClick; import butterknife.Unbinder; import com.scb.phone.R; import com.scb.phone.view.activity.mwpartner.WalletAdapter; import com.squareup.picasso.Picasso; import java.util.ArrayList; import java.util.List; import o.C0955Sf; import o.C0968So; import o.C12891fKc; import o.gnL; import o.pyT; /* loaded from: classes5.dex */ public final class WalletAdapter extends RecyclerView.Sts { private final RVV a; final List b = new ArrayList(); private final RVV c; private final RVV d; /* loaded from: classes5.dex */ public interface RVV { void a(C0968So c0968So); } @Override // androidx.recyclerview.widget.RecyclerView.Sts public final /* synthetic */ void onBindViewHolder(WalletHolder walletHolder, int i) { final WalletHolder walletHolder2 = walletHolder; C0968So c0968So = this.b.get(i); walletHolder2.a = c0968So; C0955Sf c0955Sf = c0968So.b; walletHolder2.tvShopName.setText(c0955Sf.e); walletHolder2.tvWalletId.setText(c0968So.d); walletHolder2.llGoogleMyBusiness.setVisibility((walletHolder2.a.c == null || !walletHolder2.a.c.booleanValue()) ? 8 : 0); String str = c0955Sf.d; if (str != null && !str.isEmpty()) { walletHolder2.llAddShopCoverContainer.setVisibility(8); walletHolder2.ivShopCover.setVisibility(0); C12891fKc.azL_(str, walletHolder2.ivShopCover, new Picasso.Sts(walletHolder2) { // from class: o.eaU private WalletAdapter.WalletHolder d; @Override // com.squareup.picasso.Picasso.Sts public final void b() { WalletAdapter.WalletHolder.c(this.d); } { this.d = walletHolder2; } }); } else { walletHolder2.ivShopCover.setVisibility(8); walletHolder2.llAddShopCoverContainer.setVisibility(0); } } /* loaded from: classes5.dex */ public class WalletHolder_ViewBinding implements Unbinder { private View b; private View c; private View d; private WalletHolder e; public WalletHolder_ViewBinding(WalletHolder walletHolder, View view) { this.e = walletHolder; walletHolder.ivShopCover = (ImageView) pyT.e(view, R.id.iv_shop_cover, "field 'ivShopCover'", ImageView.class); walletHolder.ivAddShopCover = (ImageView) pyT.e(view, R.id.iv_add_shop_cover, "field 'ivAddShopCover'", ImageView.class); walletHolder.tvAddShopCover = (TextView) pyT.e(view, R.id.tv_add_shop_cover, "field 'tvAddShopCover'", TextView.class); walletHolder.tvShopName = (TextView) pyT.e(view, R.id.tv_shop_name, "field 'tvShopName'", TextView.class); walletHolder.tvWalletId = (TextView) pyT.e(view, R.id.tv_wallet_id, "field 'tvWalletId'", TextView.class); View a = pyT.a(view, R.id.btn_shop_settings, "field 'btnShopSettings' and method 'onSettingsClick'"); walletHolder.btnShopSettings = (Button) pyT.c(a, R.id.btn_shop_settings, "field 'btnShopSettings'", Button.class); this.d = a; a.setOnClickListener(new gnL(this, walletHolder) { // from class: com.scb.phone.view.activity.mwpartner.WalletAdapter.WalletHolder_ViewBinding.4 private WalletHolder a; private WalletHolder_ViewBinding c; { this.c = this; this.a = walletHolder; } @Override // o.gnL public final void e(View view2) { this.a.onSettingsClick(); } }); View a2 = pyT.a(view, R.id.btn_create_qr, "field 'btnCreateQr' and method 'onCreateQrClick'"); walletHolder.btnCreateQr = (Button) pyT.c(a2, R.id.btn_create_qr, "field 'btnCreateQr'", Button.class); this.b = a2; a2.setOnClickListener(new gnL(this, walletHolder) { // from class: com.scb.phone.view.activity.mwpartner.WalletAdapter.WalletHolder_ViewBinding.5 private WalletHolder b; private WalletHolder_ViewBinding d; { this.d = this; this.b = walletHolder; } @Override // o.gnL public final void e(View view2) { this.b.onCreateQrClick(); } }); walletHolder.llAddShopCoverContainer = (ViewGroup) pyT.e(view, R.id.ll_add_shop_cover_container, "field 'llAddShopCoverContainer'", ViewGroup.class); walletHolder.llGoogleMyBusiness = (ViewGroup) pyT.e(view, R.id.ll_gmb, "field 'llGoogleMyBusiness'", ViewGroup.class); View a3 = pyT.a(view, R.id.item_root, "method 'onClick'"); this.c = a3; a3.setOnClickListener(new gnL(this, walletHolder) { // from class: com.scb.phone.view.activity.mwpartner.WalletAdapter.WalletHolder_ViewBinding.3 private WalletHolder a; private WalletHolder_ViewBinding d; { this.d = this; this.a = walletHolder; } @Override // o.gnL public final void e(View view2) { this.a.onClick(); } }); } @Override // butterknife.Unbinder public final void a() { WalletHolder walletHolder = this.e; if (walletHolder == null) { throw new IllegalStateException("Bindings already cleared."); } this.e = null; walletHolder.ivShopCover = null; walletHolder.ivAddShopCover = null; walletHolder.tvAddShopCover = null; walletHolder.tvShopName = null; walletHolder.tvWalletId = null; walletHolder.btnShopSettings = null; walletHolder.btnCreateQr = null; walletHolder.llAddShopCoverContainer = null; walletHolder.llGoogleMyBusiness = null; this.d.setOnClickListener(null); this.d = null; this.b.setOnClickListener(null); this.b = null; this.c.setOnClickListener(null); this.c = null; } } public WalletAdapter(RVV rvv, RVV rvv2, RVV rvv3) { this.d = rvv; this.a = rvv2; this.c = rvv3; } @Override // androidx.recyclerview.widget.RecyclerView.Sts public final int getItemCount() { return this.b.size(); } /* loaded from: classes5.dex */ public class WalletHolder extends RecyclerView.zJl { C0968So a; private WalletAdapter b; @BindView Button btnCreateQr; @BindView Button btnShopSettings; @BindView ImageView ivAddShopCover; @BindView ImageView ivShopCover; @BindView ViewGroup llAddShopCoverContainer; @BindView ViewGroup llGoogleMyBusiness; @BindView TextView tvAddShopCover; @BindView TextView tvShopName; @BindView TextView tvWalletId; /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ WalletHolder(WalletAdapter walletAdapter, ViewGroup viewGroup) { super(LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131560018, viewGroup, false)); this.b = walletAdapter; ButterKnife.c(this, this.itemView); } @OnClick void onClick() { this.b.d.a(this.a); } @OnClick void onSettingsClick() { this.b.a.a(this.a); } @OnClick void onCreateQrClick() { this.b.c.a(this.a); } public static /* synthetic */ void c(WalletHolder walletHolder) { walletHolder.ivShopCover.setVisibility(8); walletHolder.llAddShopCoverContainer.setVisibility(0); } } @Override // androidx.recyclerview.widget.RecyclerView.Sts public final /* synthetic */ WalletHolder onCreateViewHolder(ViewGroup viewGroup, int i) { return new WalletHolder(this, viewGroup); } }