what-the-bank/sources/com/scb/phone/view/adapter/limit/DebitsLimitAdapter.java

128 lines
4.8 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.adapter.limit;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
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.limit.DebitsLimitAdapter;
import java.util.ArrayList;
import java.util.List;
import o.C0917Rn;
import o.pyT;
/* loaded from: classes5.dex */
public final class DebitsLimitAdapter extends RecyclerView.Sts<LimitCustomViewHolder> {
public List<C0917Rn> b = new ArrayList(1);
public HBt c;
/* loaded from: classes5.dex */
public interface HBt {
void c(C0917Rn c0917Rn);
}
/* loaded from: classes5.dex */
public class LimitCustomViewHolder_ViewBinding implements Unbinder {
private LimitCustomViewHolder e;
public LimitCustomViewHolder_ViewBinding(LimitCustomViewHolder limitCustomViewHolder, View view) {
this.e = limitCustomViewHolder;
limitCustomViewHolder.rootLayout = (LinearLayout) pyT.e(view, R.id.own_debit_account_layout, "field 'rootLayout'", LinearLayout.class);
limitCustomViewHolder.cardNo = (TextView) pyT.e(view, R.id.card_no, "field 'cardNo'", TextView.class);
limitCustomViewHolder.productName = (TextView) pyT.e(view, R.id.product_name, "field 'productName'", TextView.class);
limitCustomViewHolder.nickName = (TextView) pyT.e(view, R.id.nickname, "field 'nickName'", TextView.class);
}
@Override // butterknife.Unbinder
public final void a() {
LimitCustomViewHolder limitCustomViewHolder = this.e;
if (limitCustomViewHolder == null) {
throw new IllegalStateException("Bindings already cleared.");
}
this.e = null;
limitCustomViewHolder.rootLayout = null;
limitCustomViewHolder.cardNo = null;
limitCustomViewHolder.productName = null;
limitCustomViewHolder.nickName = null;
}
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ void onBindViewHolder(LimitCustomViewHolder limitCustomViewHolder, int i) {
final LimitCustomViewHolder limitCustomViewHolder2 = limitCustomViewHolder;
final C0917Rn c0917Rn = this.b.get(i);
limitCustomViewHolder2.cardNo.setText(c0917Rn.e);
limitCustomViewHolder2.productName.setText(c0917Rn.f);
String str = c0917Rn.g;
if (str != null && !str.isEmpty()) {
limitCustomViewHolder2.nickName.setText(c0917Rn.g);
limitCustomViewHolder2.nickName.setVisibility(0);
} else {
limitCustomViewHolder2.nickName.setVisibility(8);
}
limitCustomViewHolder2.rootLayout.setOnClickListener(new View.OnClickListener(limitCustomViewHolder2, c0917Rn) { // from class: o.ewD
private C0917Rn b;
private DebitsLimitAdapter.LimitCustomViewHolder d;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
DebitsLimitAdapter.LimitCustomViewHolder.c(this.d, this.b);
}
{
this.d = limitCustomViewHolder2;
this.b = c0917Rn;
}
});
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final int getItemCount() {
List<C0917Rn> list = this.b;
if (list != null) {
return list.size();
}
return 0;
}
/* loaded from: classes5.dex */
public class LimitCustomViewHolder extends RecyclerView.zJl {
@BindView
TextView cardNo;
private DebitsLimitAdapter e;
@BindView
TextView nickName;
@BindView
TextView productName;
@BindView
LinearLayout rootLayout;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
LimitCustomViewHolder(DebitsLimitAdapter debitsLimitAdapter, View view) {
super(view);
this.e = debitsLimitAdapter;
ButterKnife.c(this, view);
}
public static /* synthetic */ void c(LimitCustomViewHolder limitCustomViewHolder, C0917Rn c0917Rn) {
if (limitCustomViewHolder.e.c != null) {
limitCustomViewHolder.e.c.c(c0917Rn);
}
}
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ LimitCustomViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
return new LimitCustomViewHolder(this, LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131559095, (ViewGroup) null));
}
}