139 lines
5.9 KiB
Java
139 lines
5.9 KiB
Java
package com.scb.phone.view.adapter.transferandpay;
|
|
|
|
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 java.util.List;
|
|
import o.C1183Xj;
|
|
import o.pyT;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public final class FixedTransferDepositSuccessTransactionAdapter extends RecyclerView.Sts<DepositViewHolder> {
|
|
private List<C1183Xj> d;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public class DepositViewHolder_ViewBinding implements Unbinder {
|
|
private DepositViewHolder b;
|
|
|
|
public DepositViewHolder_ViewBinding(DepositViewHolder depositViewHolder, View view) {
|
|
this.b = depositViewHolder;
|
|
depositViewHolder.mTitleTextView = (TextView) pyT.e(view, R.id.title_text_view, "field 'mTitleTextView'", TextView.class);
|
|
depositViewHolder.mStatusSuccessImageView = (ImageView) pyT.e(view, R.id.status_success_image, "field 'mStatusSuccessImageView'", ImageView.class);
|
|
depositViewHolder.mStatusErrorImageView = (ImageView) pyT.e(view, R.id.status_error_image, "field 'mStatusErrorImageView'", ImageView.class);
|
|
depositViewHolder.mAmountTextView = (TextView) pyT.e(view, R.id.amount_value_text_view, "field 'mAmountTextView'", TextView.class);
|
|
depositViewHolder.mInterestTextView = (TextView) pyT.e(view, R.id.interest_value_text_view, "field 'mInterestTextView'", TextView.class);
|
|
depositViewHolder.mWithholdingTaxTextView = (TextView) pyT.e(view, R.id.withholding_tax_value_text_view, "field 'mWithholdingTaxTextView'", TextView.class);
|
|
depositViewHolder.mTotalTextView = (TextView) pyT.e(view, R.id.total_value_text_view, "field 'mTotalTextView'", TextView.class);
|
|
depositViewHolder.mErrorTextView = (TextView) pyT.e(view, R.id.error_text_view, "field 'mErrorTextView'", TextView.class);
|
|
}
|
|
|
|
@Override // butterknife.Unbinder
|
|
public final void a() {
|
|
DepositViewHolder depositViewHolder = this.b;
|
|
if (depositViewHolder == null) {
|
|
throw new IllegalStateException("Bindings already cleared.");
|
|
}
|
|
this.b = null;
|
|
depositViewHolder.mTitleTextView = null;
|
|
depositViewHolder.mStatusSuccessImageView = null;
|
|
depositViewHolder.mStatusErrorImageView = null;
|
|
depositViewHolder.mAmountTextView = null;
|
|
depositViewHolder.mInterestTextView = null;
|
|
depositViewHolder.mWithholdingTaxTextView = null;
|
|
depositViewHolder.mTotalTextView = null;
|
|
depositViewHolder.mErrorTextView = null;
|
|
}
|
|
}
|
|
|
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
|
public final /* synthetic */ void onBindViewHolder(DepositViewHolder depositViewHolder, int i) {
|
|
DepositViewHolder depositViewHolder2 = depositViewHolder;
|
|
List<C1183Xj> list = this.d;
|
|
C1183Xj c1183Xj = (list == null || i < 0 || i >= list.size()) ? null : this.d.get(i);
|
|
if (c1183Xj != null) {
|
|
depositViewHolder2.mTitleTextView.setText(c1183Xj.d);
|
|
depositViewHolder2.mAmountTextView.setText(c1183Xj.e);
|
|
depositViewHolder2.mInterestTextView.setText(c1183Xj.c);
|
|
depositViewHolder2.mWithholdingTaxTextView.setText(c1183Xj.i);
|
|
depositViewHolder2.mTotalTextView.setText(c1183Xj.j);
|
|
if (c1183Xj.b) {
|
|
depositViewHolder2.mStatusSuccessImageView.setVisibility(0);
|
|
depositViewHolder2.mStatusErrorImageView.setVisibility(8);
|
|
depositViewHolder2.mErrorTextView.setVisibility(8);
|
|
return;
|
|
} else {
|
|
depositViewHolder2.mErrorTextView.setVisibility(0);
|
|
depositViewHolder2.mErrorTextView.setText(c1183Xj.a);
|
|
depositViewHolder2.mStatusErrorImageView.setVisibility(0);
|
|
depositViewHolder2.mStatusSuccessImageView.setVisibility(8);
|
|
return;
|
|
}
|
|
}
|
|
depositViewHolder2.mTitleTextView.setText((CharSequence) null);
|
|
depositViewHolder2.mAmountTextView.setText((CharSequence) null);
|
|
depositViewHolder2.mInterestTextView.setText((CharSequence) null);
|
|
depositViewHolder2.mWithholdingTaxTextView.setText((CharSequence) null);
|
|
depositViewHolder2.mTotalTextView.setText((CharSequence) null);
|
|
depositViewHolder2.mStatusSuccessImageView.setVisibility(8);
|
|
depositViewHolder2.mStatusErrorImageView.setVisibility(8);
|
|
}
|
|
|
|
public FixedTransferDepositSuccessTransactionAdapter(List<C1183Xj> list) {
|
|
this.d = list;
|
|
}
|
|
|
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
|
public final int getItemCount() {
|
|
List<C1183Xj> list = this.d;
|
|
if (list != null) {
|
|
return list.size();
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
/* loaded from: classes5.dex */
|
|
protected static class DepositViewHolder extends RecyclerView.zJl {
|
|
|
|
@BindView
|
|
TextView mAmountTextView;
|
|
|
|
@BindView
|
|
TextView mErrorTextView;
|
|
|
|
@BindView
|
|
TextView mInterestTextView;
|
|
|
|
@BindView
|
|
ImageView mStatusErrorImageView;
|
|
|
|
@BindView
|
|
ImageView mStatusSuccessImageView;
|
|
|
|
@BindView
|
|
TextView mTitleTextView;
|
|
|
|
@BindView
|
|
TextView mTotalTextView;
|
|
|
|
@BindView
|
|
TextView mWithholdingTaxTextView;
|
|
|
|
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.2131560097, viewGroup, false));
|
|
}
|
|
}
|