what-the-bank/sources/com/scb/phone/view/adapter/mailingaddress/MailingAddressGoodToKnowAda...

108 lines
3.8 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.adapter.mailingaddress;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.recyclerview.widget.RecyclerView;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.Unbinder;
import com.scb.phone.R;
import java.util.ArrayList;
import o.C12891fKc;
import o.C14957gcv;
import o.RC;
import o.pyT;
/* loaded from: classes5.dex */
public final class MailingAddressGoodToKnowAdapter extends RecyclerView.Sts<GoodToKnowViewHolder> {
public final ArrayList<RC> c;
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ void onBindViewHolder(GoodToKnowViewHolder goodToKnowViewHolder, int i) {
GoodToKnowViewHolder goodToKnowViewHolder2 = goodToKnowViewHolder;
C14957gcv.e(goodToKnowViewHolder2, "");
RC rc = this.c.get(i);
C14957gcv.c(rc, "");
RC rc2 = rc;
C14957gcv.e(rc2, "");
ImageView imageView = goodToKnowViewHolder2.ivCategoryIcon;
TextView textView = null;
if (imageView == null) {
C14957gcv.a("");
imageView = null;
}
GoodToKnowViewHolder.anG_(imageView, rc2.b);
TextView textView2 = goodToKnowViewHolder2.tvName;
if (textView2 != null) {
textView = textView2;
} else {
C14957gcv.a("");
}
textView.setText(rc2.a);
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ GoodToKnowViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
C14957gcv.e(viewGroup, "");
View inflate = LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131559176, viewGroup, false);
C14957gcv.c(inflate, "");
return new GoodToKnowViewHolder(inflate);
}
public MailingAddressGoodToKnowAdapter(ArrayList<RC> arrayList) {
C14957gcv.e(arrayList, "");
this.c = arrayList;
}
/* loaded from: classes5.dex */
public final class GoodToKnowViewHolder_ViewBinding implements Unbinder {
private GoodToKnowViewHolder c;
public GoodToKnowViewHolder_ViewBinding(GoodToKnowViewHolder goodToKnowViewHolder, View view) {
this.c = goodToKnowViewHolder;
goodToKnowViewHolder.tvName = (TextView) pyT.e(view, R.id.tv_item_name, "field 'tvName'", TextView.class);
goodToKnowViewHolder.ivCategoryIcon = (ImageView) pyT.e(view, R.id.iv_item_icon, "field 'ivCategoryIcon'", ImageView.class);
}
@Override // butterknife.Unbinder
public final void a() {
GoodToKnowViewHolder goodToKnowViewHolder = this.c;
if (goodToKnowViewHolder == null) {
throw new IllegalStateException("Bindings already cleared.");
}
this.c = null;
goodToKnowViewHolder.tvName = null;
goodToKnowViewHolder.ivCategoryIcon = null;
}
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final int getItemCount() {
return this.c.size();
}
/* loaded from: classes5.dex */
public static final class GoodToKnowViewHolder extends RecyclerView.zJl {
@BindView
public ImageView ivCategoryIcon;
@BindView
public TextView tvName;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public GoodToKnowViewHolder(View view) {
super(view);
C14957gcv.e(view, "");
ButterKnife.c(this, this.itemView);
}
static void anG_(ImageView imageView, String str) {
C12891fKc.azj_(imageView, str, imageView.getContext().getResources().getDimensionPixelOffset(R.dimen.f18682131165634));
}
}
}