143 lines
5.7 KiB
Java
143 lines
5.7 KiB
Java
|
package com.scb.phone.view.adapter.fixedtransfer;
|
||
|
|
||
|
import android.content.Context;
|
||
|
import android.view.LayoutInflater;
|
||
|
import android.view.View;
|
||
|
import android.view.ViewGroup;
|
||
|
import android.widget.CheckBox;
|
||
|
import android.widget.CompoundButton;
|
||
|
import android.widget.ProgressBar;
|
||
|
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.fixedtransfer.FixedTransferSubDepositAdapter;
|
||
|
import java.util.List;
|
||
|
import o.C1222Yi;
|
||
|
import o.pyT;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class FixedTransferSubDepositAdapter extends RecyclerView.Sts<SubDepositViewHolder> {
|
||
|
public List<C1222Yi> b;
|
||
|
public HBt e;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public interface HBt {
|
||
|
void a(int i, boolean z);
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public class SubDepositViewHolder_ViewBinding implements Unbinder {
|
||
|
private SubDepositViewHolder d;
|
||
|
|
||
|
public SubDepositViewHolder_ViewBinding(SubDepositViewHolder subDepositViewHolder, View view) {
|
||
|
this.d = subDepositViewHolder;
|
||
|
subDepositViewHolder.tvNumber = (TextView) pyT.e(view, R.id.tv_number, "field 'tvNumber'", TextView.class);
|
||
|
subDepositViewHolder.tvAmount = (TextView) pyT.e(view, R.id.tv_amount, "field 'tvAmount'", TextView.class);
|
||
|
subDepositViewHolder.cbSelect = (CheckBox) pyT.e(view, R.id.cb_select, "field 'cbSelect'", CheckBox.class);
|
||
|
subDepositViewHolder.tvDepositDate = (TextView) pyT.e(view, R.id.tv_deposit_date, "field 'tvDepositDate'", TextView.class);
|
||
|
subDepositViewHolder.tvMaturityDate = (TextView) pyT.e(view, R.id.tv_maturity_date, "field 'tvMaturityDate'", TextView.class);
|
||
|
subDepositViewHolder.pbDepositProgress = (ProgressBar) pyT.e(view, R.id.pb_deposit_progress, "field 'pbDepositProgress'", ProgressBar.class);
|
||
|
}
|
||
|
|
||
|
@Override // butterknife.Unbinder
|
||
|
public final void a() {
|
||
|
SubDepositViewHolder subDepositViewHolder = this.d;
|
||
|
if (subDepositViewHolder == null) {
|
||
|
throw new IllegalStateException("Bindings already cleared.");
|
||
|
}
|
||
|
this.d = null;
|
||
|
subDepositViewHolder.tvNumber = null;
|
||
|
subDepositViewHolder.tvAmount = null;
|
||
|
subDepositViewHolder.cbSelect = null;
|
||
|
subDepositViewHolder.tvDepositDate = null;
|
||
|
subDepositViewHolder.tvMaturityDate = null;
|
||
|
subDepositViewHolder.pbDepositProgress = null;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final /* synthetic */ void onBindViewHolder(SubDepositViewHolder subDepositViewHolder, int i) {
|
||
|
final SubDepositViewHolder subDepositViewHolder2 = subDepositViewHolder;
|
||
|
final C1222Yi c1222Yi = this.b.get(i);
|
||
|
final HBt hBt = this.e;
|
||
|
Context context = subDepositViewHolder2.itemView.getContext();
|
||
|
subDepositViewHolder2.tvNumber.setText(context.getString(R.string.subdeposit_number, c1222Yi.b));
|
||
|
subDepositViewHolder2.tvAmount.setText(context.getString(R.string.deposit_amount_value, c1222Yi.a));
|
||
|
subDepositViewHolder2.cbSelect.setChecked(c1222Yi.h);
|
||
|
subDepositViewHolder2.tvDepositDate.setText(context.getString(R.string.subdeposit_deposit_date, c1222Yi.d));
|
||
|
subDepositViewHolder2.tvMaturityDate.setText(context.getString(R.string.subdeposit_maturity_date, c1222Yi.f));
|
||
|
subDepositViewHolder2.pbDepositProgress.setProgress((int) c1222Yi.c);
|
||
|
subDepositViewHolder2.cbSelect.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener(subDepositViewHolder2, c1222Yi, hBt) { // from class: o.euE
|
||
|
private FixedTransferSubDepositAdapter.HBt a;
|
||
|
private FixedTransferSubDepositAdapter.SubDepositViewHolder c;
|
||
|
private C1222Yi e;
|
||
|
|
||
|
@Override // android.widget.CompoundButton.OnCheckedChangeListener
|
||
|
public final void onCheckedChanged(CompoundButton compoundButton, boolean z) {
|
||
|
FixedTransferSubDepositAdapter.SubDepositViewHolder.b(this.c, this.e, this.a, z);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.c = subDepositViewHolder2;
|
||
|
this.e = c1222Yi;
|
||
|
this.a = hBt;
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
|
||
|
public FixedTransferSubDepositAdapter(List<C1222Yi> list) {
|
||
|
this.b = list;
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final int getItemCount() {
|
||
|
List<C1222Yi> list = this.b;
|
||
|
if (list == null) {
|
||
|
return 0;
|
||
|
}
|
||
|
return list.size();
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public static class SubDepositViewHolder extends RecyclerView.zJl {
|
||
|
|
||
|
@BindView
|
||
|
CheckBox cbSelect;
|
||
|
|
||
|
@BindView
|
||
|
ProgressBar pbDepositProgress;
|
||
|
|
||
|
@BindView
|
||
|
TextView tvAmount;
|
||
|
|
||
|
@BindView
|
||
|
TextView tvDepositDate;
|
||
|
|
||
|
@BindView
|
||
|
TextView tvMaturityDate;
|
||
|
|
||
|
@BindView
|
||
|
TextView tvNumber;
|
||
|
|
||
|
public SubDepositViewHolder(View view) {
|
||
|
super(view);
|
||
|
ButterKnife.c(this, view);
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void b(SubDepositViewHolder subDepositViewHolder, C1222Yi c1222Yi, HBt hBt, boolean z) {
|
||
|
c1222Yi.h = z;
|
||
|
if (hBt != null) {
|
||
|
hBt.a(subDepositViewHolder.getAdapterPosition(), z);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final /* synthetic */ SubDepositViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
|
||
|
return new SubDepositViewHolder(LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131559242, viewGroup, false));
|
||
|
}
|
||
|
}
|