what-the-bank/sources/com/scb/phone/view/adapter/transferandpay/billpayment/BillPaymentSearchAdapter.java

153 lines
6.2 KiB
Java

package com.scb.phone.view.adapter.transferandpay.billpayment;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.constraintlayout.widget.ConstraintLayout;
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.transferandpay.billpayment.BillPaymentSearchAdapter;
import o.AbstractC12014eqH;
import o.C1193Xr;
import o.C12891fKc;
import o.C14957gcv;
import o.InterfaceC12929fLg;
import o.nMh;
import o.pyT;
/* loaded from: classes5.dex */
public final class BillPaymentSearchAdapter extends AbstractC12014eqH<C1193Xr, BillPaymentSearchViewHolder> {
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ RecyclerView.zJl onCreateViewHolder(ViewGroup viewGroup, int i) {
C14957gcv.e(viewGroup, "");
return new BillPaymentSearchViewHolder(viewGroup);
}
/* loaded from: classes5.dex */
public final class BillPaymentSearchViewHolder_ViewBinding implements Unbinder {
private BillPaymentSearchViewHolder e;
public BillPaymentSearchViewHolder_ViewBinding(BillPaymentSearchViewHolder billPaymentSearchViewHolder, View view) {
this.e = billPaymentSearchViewHolder;
billPaymentSearchViewHolder.gridLayout = (ConstraintLayout) pyT.e(view, R.id.biller_grid_layout, "field 'gridLayout'", ConstraintLayout.class);
billPaymentSearchViewHolder.listLayout = (RelativeLayout) pyT.e(view, R.id.biller_list_layout, "field 'listLayout'", RelativeLayout.class);
billPaymentSearchViewHolder.tvName = (TextView) pyT.e(view, R.id.biller_name_text_view_list, "field 'tvName'", TextView.class);
billPaymentSearchViewHolder.tvCode = (TextView) pyT.e(view, R.id.biller_code_text_view_list, "field 'tvCode'", TextView.class);
billPaymentSearchViewHolder.imgAvatar = (ImageView) pyT.e(view, R.id.biller_avatar_image_view_list, "field 'imgAvatar'", ImageView.class);
}
@Override // butterknife.Unbinder
public final void a() {
BillPaymentSearchViewHolder billPaymentSearchViewHolder = this.e;
if (billPaymentSearchViewHolder == null) {
throw new IllegalStateException("Bindings already cleared.");
}
this.e = null;
billPaymentSearchViewHolder.gridLayout = null;
billPaymentSearchViewHolder.listLayout = null;
billPaymentSearchViewHolder.tvName = null;
billPaymentSearchViewHolder.tvCode = null;
billPaymentSearchViewHolder.imgAvatar = null;
}
}
/* loaded from: classes5.dex */
public static final class BillPaymentSearchViewHolder extends AbstractC12014eqH.Sts<C1193Xr> {
@BindView
public ConstraintLayout gridLayout;
@BindView
public ImageView imgAvatar;
@BindView
public RelativeLayout listLayout;
@BindView
public TextView tvCode;
@BindView
public TextView tvName;
@Override // o.AbstractC12014eqH.Sts
public final /* synthetic */ void a(C1193Xr c1193Xr, String str, final AbstractC12014eqH.RVV<? super C1193Xr> rvv) {
ImageView imageView;
final C1193Xr c1193Xr2 = c1193Xr;
C14957gcv.e(c1193Xr2, "");
C14957gcv.e(str, "");
ConstraintLayout constraintLayout = this.gridLayout;
TextView textView = null;
if (constraintLayout == null) {
C14957gcv.a("");
constraintLayout = null;
}
constraintLayout.setVisibility(8);
Context context = this.itemView.getContext();
Drawable drawable = nMh.getDrawable(context, R.drawable.biller_place_holder);
int dimensionPixelOffset = context.getResources().getDimensionPixelOffset(R.dimen.f15222131165286);
int color = nMh.getColor(context, R.color.f3412131099849);
ImageView imageView2 = this.imgAvatar;
if (imageView2 != null) {
imageView = imageView2;
} else {
C14957gcv.a("");
imageView = null;
}
C12891fKc.azg_(context, drawable, imageView, c1193Xr2.c(), dimensionPixelOffset, color);
TextView textView2 = this.tvName;
if (textView2 == null) {
C14957gcv.a("");
textView2 = null;
}
BillPaymentSearchViewHolder billPaymentSearchViewHolder = this;
String e = c1193Xr2.e();
if (e == null) {
e = "";
}
textView2.setText(InterfaceC12929fLg.aAt_(billPaymentSearchViewHolder, e, str, nMh.getColor(this.itemView.getContext(), R.color.f13682131100876)));
TextView textView3 = this.tvCode;
if (textView3 != null) {
textView = textView3;
} else {
C14957gcv.a("");
}
textView.setText(c1193Xr2.i);
this.itemView.setOnClickListener(new View.OnClickListener(rvv, c1193Xr2) { // from class: o.ezT
private C1193Xr c;
private AbstractC12014eqH.RVV d;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
BillPaymentSearchAdapter.BillPaymentSearchViewHolder.d(this.d, this.c);
}
{
this.d = rvv;
this.c = c1193Xr2;
}
});
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public BillPaymentSearchViewHolder(ViewGroup viewGroup) {
super(viewGroup);
C14957gcv.e(viewGroup, "");
ButterKnife.c(this, this.itemView);
}
public static /* synthetic */ void d(AbstractC12014eqH.RVV rvv, C1193Xr c1193Xr) {
C14957gcv.e(c1193Xr, "");
if (rvv != null) {
rvv.e(c1193Xr);
}
}
}
}