what-the-bank/sources/com/scb/phone/view/adapter/fixedtransfer/DepositDetailRecyclerViewAd...

145 lines
6.2 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.adapter.fixedtransfer;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
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.List;
import o.C1222Yi;
import o.pyT;
/* loaded from: classes5.dex */
public final class DepositDetailRecyclerViewAdapter extends RecyclerView.Sts<DepositViewHolder> {
private List<C1222Yi> e;
/* loaded from: classes5.dex */
public class DepositViewHolder_ViewBinding implements Unbinder {
private DepositViewHolder e;
public DepositViewHolder_ViewBinding(DepositViewHolder depositViewHolder, View view) {
this.e = depositViewHolder;
depositViewHolder.mDepositCount = (TextView) pyT.e(view, R.id.tv_deposit_count_title, "field 'mDepositCount'", TextView.class);
depositViewHolder.mDepositAmount = (TextView) pyT.e(view, R.id.tv_deposit_amount_value, "field 'mDepositAmount'", TextView.class);
depositViewHolder.mDepositDate = (TextView) pyT.e(view, R.id.tv_deposit_date_value, "field 'mDepositDate'", TextView.class);
depositViewHolder.mMaturityDate = (TextView) pyT.e(view, R.id.tv_maturity_date_value, "field 'mMaturityDate'", TextView.class);
depositViewHolder.mDepositInterest = (TextView) pyT.e(view, R.id.tv_deposit_interest_value, "field 'mDepositInterest'", TextView.class);
depositViewHolder.mDepositInterestRate = (TextView) pyT.e(view, R.id.tv_deposit_interest_rate_value, "field 'mDepositInterestRate'", TextView.class);
depositViewHolder.mDepositWithholdingTax = (TextView) pyT.e(view, R.id.tv_deposit_withholding_tax_value, "field 'mDepositWithholdingTax'", TextView.class);
depositViewHolder.mDepositNetAmount = (TextView) pyT.e(view, R.id.tv_deposit_net_amount_value, "field 'mDepositNetAmount'", TextView.class);
depositViewHolder.viewLineCloseList = pyT.a(view, R.id.view_line_close_list, "field 'viewLineCloseList'");
}
@Override // butterknife.Unbinder
public final void a() {
DepositViewHolder depositViewHolder = this.e;
if (depositViewHolder == null) {
throw new IllegalStateException("Bindings already cleared.");
}
this.e = null;
depositViewHolder.mDepositCount = null;
depositViewHolder.mDepositAmount = null;
depositViewHolder.mDepositDate = null;
depositViewHolder.mMaturityDate = null;
depositViewHolder.mDepositInterest = null;
depositViewHolder.mDepositInterestRate = null;
depositViewHolder.mDepositWithholdingTax = null;
depositViewHolder.mDepositNetAmount = null;
depositViewHolder.viewLineCloseList = null;
}
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ void onBindViewHolder(DepositViewHolder depositViewHolder, int i) {
DepositViewHolder depositViewHolder2 = depositViewHolder;
List<C1222Yi> list = this.e;
C1222Yi c1222Yi = (list == null || i < 0 || i >= list.size()) ? null : this.e.get(i);
if (c1222Yi != null) {
TextView textView = depositViewHolder2.mDepositCount;
StringBuilder sb = new StringBuilder();
sb.append(depositViewHolder2.itemView.getContext().getString(R.string.fixed_transfer_deposit_count));
sb.append(c1222Yi.b);
textView.setText(sb.toString());
depositViewHolder2.mDepositAmount.setText(c1222Yi.a);
depositViewHolder2.mDepositDate.setText(c1222Yi.d);
depositViewHolder2.mMaturityDate.setText(c1222Yi.f);
depositViewHolder2.mDepositInterest.setText(c1222Yi.e);
depositViewHolder2.mDepositInterestRate.setText(c1222Yi.j);
depositViewHolder2.mDepositWithholdingTax.setText(c1222Yi.g);
depositViewHolder2.mDepositNetAmount.setText(c1222Yi.i);
} else {
depositViewHolder2.mDepositCount.setText((CharSequence) null);
depositViewHolder2.mDepositAmount.setText((CharSequence) null);
depositViewHolder2.mDepositDate.setText((CharSequence) null);
depositViewHolder2.mMaturityDate.setText((CharSequence) null);
depositViewHolder2.mDepositInterest.setText((CharSequence) null);
depositViewHolder2.mDepositInterestRate.setText((CharSequence) null);
depositViewHolder2.mDepositWithholdingTax.setText((CharSequence) null);
depositViewHolder2.mDepositNetAmount.setText((CharSequence) null);
}
if (!this.e.isEmpty() && i == this.e.size() - 1) {
depositViewHolder2.viewLineCloseList.setVisibility(0);
} else {
depositViewHolder2.viewLineCloseList.setVisibility(8);
}
}
public DepositDetailRecyclerViewAdapter(List<C1222Yi> list) {
this.e = list;
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final int getItemCount() {
List<C1222Yi> list = this.e;
if (list != null) {
return list.size();
}
return 0;
}
/* loaded from: classes5.dex */
protected static class DepositViewHolder extends RecyclerView.zJl {
@BindView
TextView mDepositAmount;
@BindView
TextView mDepositCount;
@BindView
TextView mDepositDate;
@BindView
TextView mDepositInterest;
@BindView
TextView mDepositInterestRate;
@BindView
TextView mDepositNetAmount;
@BindView
TextView mDepositWithholdingTax;
@BindView
TextView mMaturityDate;
@BindView
View viewLineCloseList;
DepositViewHolder(View view) {
super(view);
ButterKnife.c(this, view);
}
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ DepositViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
return new DepositViewHolder(LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131559129, viewGroup, false));
}
}