what-the-bank/sources/com/scb/phone/view/adapter/easycash/CoBorrowerAdapter.java

150 lines
5.1 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.adapter.easycash;
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 com.scb.phone.view.adapter.easycash.CoBorrowerAdapter;
import java.util.List;
import o.C14957gcv;
import o.KH;
import o.pyT;
/* loaded from: classes5.dex */
public final class CoBorrowerAdapter extends RecyclerView.Sts<CoBorrowerViewHolder> {
private final Sts b;
public List<KH> d;
/* loaded from: classes5.dex */
public interface Sts {
void d(String str);
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ void onBindViewHolder(CoBorrowerViewHolder coBorrowerViewHolder, int i) {
CoBorrowerViewHolder coBorrowerViewHolder2 = coBorrowerViewHolder;
C14957gcv.e(coBorrowerViewHolder2, "");
List<KH> list = this.d;
if (list != null) {
final KH kh = list.get(i);
C14957gcv.e(kh, "");
TextView textView = coBorrowerViewHolder2.coBorrowerName;
ImageView imageView = null;
if (textView == null) {
C14957gcv.a("");
textView = null;
}
textView.setText(kh.c);
TextView textView2 = coBorrowerViewHolder2.mobileNumber;
if (textView2 == null) {
C14957gcv.a("");
textView2 = null;
}
textView2.setText(kh.a);
ImageView imageView2 = coBorrowerViewHolder2.deleteButton;
if (imageView2 != null) {
imageView = imageView2;
} else {
C14957gcv.a("");
}
imageView.setOnClickListener(new View.OnClickListener(this, kh) { // from class: o.eth
private CoBorrowerAdapter b;
private KH d;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
CoBorrowerAdapter.a(this.b, this.d);
}
{
this.b = this;
this.d = kh;
}
});
}
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ CoBorrowerViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
C14957gcv.e(viewGroup, "");
View inflate = LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131559080, viewGroup, false);
C14957gcv.c(inflate, "");
return new CoBorrowerViewHolder(inflate);
}
public CoBorrowerAdapter(List<KH> list, Sts sts) {
C14957gcv.e(sts, "");
this.d = list;
this.b = sts;
}
/* loaded from: classes5.dex */
public final class CoBorrowerViewHolder_ViewBinding implements Unbinder {
private CoBorrowerViewHolder c;
public CoBorrowerViewHolder_ViewBinding(CoBorrowerViewHolder coBorrowerViewHolder, View view) {
this.c = coBorrowerViewHolder;
coBorrowerViewHolder.coBorrowerName = (TextView) pyT.e(view, R.id.tv_name, "field 'coBorrowerName'", TextView.class);
coBorrowerViewHolder.mobileNumber = (TextView) pyT.e(view, R.id.tv_mobile_number, "field 'mobileNumber'", TextView.class);
coBorrowerViewHolder.deleteButton = (ImageView) pyT.e(view, R.id.delete_image_view, "field 'deleteButton'", ImageView.class);
}
@Override // butterknife.Unbinder
public final void a() {
CoBorrowerViewHolder coBorrowerViewHolder = this.c;
if (coBorrowerViewHolder == null) {
throw new IllegalStateException("Bindings already cleared.");
}
this.c = null;
coBorrowerViewHolder.coBorrowerName = null;
coBorrowerViewHolder.mobileNumber = null;
coBorrowerViewHolder.deleteButton = null;
}
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final int getItemCount() {
List<KH> list = this.d;
if (list != null) {
return list.size();
}
return 0;
}
/* loaded from: classes5.dex */
public static final class CoBorrowerViewHolder extends RecyclerView.zJl {
@BindView
public TextView coBorrowerName;
@BindView
public ImageView deleteButton;
@BindView
public TextView mobileNumber;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public CoBorrowerViewHolder(View view) {
super(view);
C14957gcv.e(view, "");
ButterKnife.c(this, view);
}
}
public static /* synthetic */ void a(CoBorrowerAdapter coBorrowerAdapter, KH kh) {
C14957gcv.e(coBorrowerAdapter, "");
C14957gcv.e(kh, "");
String str = kh.d;
Sts sts = coBorrowerAdapter.b;
if (sts != null) {
sts.d(str);
}
}
}