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

196 lines
7.2 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.adapter.transferandpay;
import android.content.Context;
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.transferandpay.EBillAdapter;
import java.util.List;
import o.C12891fKc;
import o.InterfaceC12824fIT;
import o.XB;
import o.guQ;
import o.kcz;
import o.nMh;
import o.pyT;
/* loaded from: classes5.dex */
public final class EBillAdapter extends RecyclerView.Sts<EBillHolder> {
private InterfaceC12824fIT b;
public List<XB> c;
private Context e;
/* loaded from: classes5.dex */
public class EBillHolder_ViewBinding implements Unbinder {
private EBillHolder e;
public EBillHolder_ViewBinding(EBillHolder eBillHolder, View view) {
this.e = eBillHolder;
eBillHolder.mIconBiller = (ImageView) pyT.e(view, R.id.ebill_icon_image_view, "field 'mIconBiller'", ImageView.class);
eBillHolder.mIconCheck = (ImageView) pyT.e(view, R.id.ebill_check_icon_image_view, "field 'mIconCheck'", ImageView.class);
eBillHolder.mTitle = (TextView) pyT.e(view, R.id.ebill_title_text_view, "field 'mTitle'", TextView.class);
eBillHolder.mCode = (TextView) pyT.e(view, R.id.ebill_code_text_view, "field 'mCode'", TextView.class);
eBillHolder.mValue = (TextView) pyT.e(view, R.id.ebill_value_text_view, "field 'mValue'", TextView.class);
eBillHolder.mDate = (TextView) pyT.e(view, R.id.ebill_date_text_view, "field 'mDate'", TextView.class);
eBillHolder.mPayNowText = (TextView) pyT.e(view, R.id.ebill_pay_now_text_view, "field 'mPayNowText'", TextView.class);
eBillHolder.mRemark = (TextView) pyT.e(view, R.id.ebill_remark_text_view, "field 'mRemark'", TextView.class);
eBillHolder.tvDowntimeDescription = (TextView) pyT.e(view, R.id.tv_downtime_description, "field 'tvDowntimeDescription'", TextView.class);
eBillHolder.mDivider = pyT.a(view, R.id.ebill_divider, "field 'mDivider'");
eBillHolder.mFullDivider = pyT.a(view, R.id.ebill_full_divider, "field 'mFullDivider'");
}
@Override // butterknife.Unbinder
public final void a() {
EBillHolder eBillHolder = this.e;
if (eBillHolder == null) {
throw new IllegalStateException("Bindings already cleared.");
}
this.e = null;
eBillHolder.mIconBiller = null;
eBillHolder.mIconCheck = null;
eBillHolder.mTitle = null;
eBillHolder.mCode = null;
eBillHolder.mValue = null;
eBillHolder.mDate = null;
eBillHolder.mPayNowText = null;
eBillHolder.mRemark = null;
eBillHolder.tvDowntimeDescription = null;
eBillHolder.mDivider = null;
eBillHolder.mFullDivider = null;
}
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ void onBindViewHolder(EBillHolder eBillHolder, final int i) {
EBillHolder eBillHolder2 = eBillHolder;
XB xb = this.c.get(i);
C12891fKc.azi_(nMh.getDrawable(this.e, R.drawable.biller_place_holder), eBillHolder2.mIconBiller, xb.h, (int) this.e.getResources().getDimension(R.dimen.f15102131165274));
eBillHolder2.mTitle.setText(xb.f);
if (xb.g) {
eBillHolder2.mCode.setText(xb.k);
} else {
eBillHolder2.mCode.setText(xb.p);
}
if (xb.a) {
eBillHolder2.mIconCheck.setVisibility(8);
} else {
eBillHolder2.mIconCheck.setVisibility(0);
}
String str = xb.i;
if (str == null || kcz.c(str)) {
eBillHolder2.mDate.setVisibility(0);
eBillHolder2.mValue.setVisibility(0);
eBillHolder2.mRemark.setVisibility(0);
eBillHolder2.tvDowntimeDescription.setVisibility(8);
eBillHolder2.mDate.setText(xb.n);
eBillHolder2.mValue.setText(xb.x);
eBillHolder2.mRemark.setText(this.e.getString(R.string.bill_total_amount_as_of_closing_date));
if (xb.b) {
eBillHolder2.mPayNowText.setVisibility(0);
eBillHolder2.itemView.setOnClickListener(new View.OnClickListener(this, i) { // from class: o.ezA
private EBillAdapter a;
private int e;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
this.a.b.a(this.e);
}
{
this.a = this;
this.e = i;
}
});
} else {
eBillHolder2.mPayNowText.setVisibility(8);
}
} else {
eBillHolder2.mPayNowText.setVisibility(8);
eBillHolder2.mDate.setVisibility(8);
eBillHolder2.mValue.setVisibility(8);
eBillHolder2.mRemark.setVisibility(8);
eBillHolder2.tvDowntimeDescription.setVisibility(0);
eBillHolder2.tvDowntimeDescription.setText(str);
}
if (i == getItemCount() - 1) {
eBillHolder2.mDivider.setVisibility(8);
eBillHolder2.mFullDivider.setVisibility(0);
} else {
eBillHolder2.mFullDivider.setVisibility(8);
eBillHolder2.mDivider.setVisibility(0);
}
StringBuilder sb = new StringBuilder("BILLPAY: ");
sb.append(i);
sb.append(xb.n);
guQ.c(sb.toString(), new Object[0]);
}
public EBillAdapter(Context context, List<XB> list, InterfaceC12824fIT interfaceC12824fIT) {
this.e = context;
this.c = list;
this.b = interfaceC12824fIT;
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final int getItemCount() {
return this.c.size();
}
/* loaded from: classes5.dex */
public class EBillHolder extends RecyclerView.zJl {
private EBillAdapter d;
@BindView
TextView mCode;
@BindView
TextView mDate;
@BindView
View mDivider;
@BindView
View mFullDivider;
@BindView
ImageView mIconBiller;
@BindView
ImageView mIconCheck;
@BindView
TextView mPayNowText;
@BindView
TextView mRemark;
@BindView
TextView mTitle;
@BindView
TextView mValue;
@BindView
TextView tvDowntimeDescription;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public EBillHolder(EBillAdapter eBillAdapter, View view) {
super(view);
this.d = eBillAdapter;
ButterKnife.c(this, view);
}
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ EBillHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
return new EBillHolder(this, LayoutInflater.from(this.e).inflate(R.layout.2131559007, viewGroup, false));
}
}