what-the-bank/sources/com/scb/phone/view/adapter/merchant/MerchantWalletOutgoingTrans...

226 lines
8.9 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.adapter.merchant;
import android.content.Context;
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 com.scb.phone.view.adapter.BaseExpandableRecycleViewAdapter;
import com.scb.phone.view.adapter.merchant.MerchantWalletOutgoingTransactionAdapter;
import java.util.List;
import o.AbstractC12404exa;
import o.AbstractC5347brN;
import o.C16148leh;
import o.RM;
import o.RN;
import o.nMh;
import o.pyT;
/* loaded from: classes5.dex */
public final class MerchantWalletOutgoingTransactionAdapter extends AbstractC12404exa<RN> {
private RM d;
@Override // com.scb.phone.view.adapter.BaseExpandableRecycleViewAdapter, o.Qpt
public final boolean b(RecyclerView.zJl zjl) {
return false;
}
/* loaded from: classes5.dex */
public class ChildViewHolder_ViewBinding implements Unbinder {
private ChildViewHolder e;
public ChildViewHolder_ViewBinding(ChildViewHolder childViewHolder, View view) {
this.e = childViewHolder;
childViewHolder.textTransferTo = (TextView) pyT.e(view, R.id.text_transfer_to_value, "field 'textTransferTo'", TextView.class);
childViewHolder.textAccountName = (TextView) pyT.e(view, R.id.text_account_name_value, "field 'textAccountName'", TextView.class);
childViewHolder.textAccountNumber = (TextView) pyT.e(view, R.id.text_account_number_value, "field 'textAccountNumber'", TextView.class);
}
@Override // butterknife.Unbinder
public final void a() {
ChildViewHolder childViewHolder = this.e;
if (childViewHolder == null) {
throw new IllegalStateException("Bindings already cleared.");
}
this.e = null;
childViewHolder.textTransferTo = null;
childViewHolder.textAccountName = null;
childViewHolder.textAccountNumber = null;
}
}
/* loaded from: classes5.dex */
public class OutgoingGroupItemViewHolder_ViewBinding extends BaseExpandableRecycleViewAdapter.BaseParentViewHolder_ViewBinding {
private OutgoingGroupItemViewHolder d;
public OutgoingGroupItemViewHolder_ViewBinding(OutgoingGroupItemViewHolder outgoingGroupItemViewHolder, View view) {
super(outgoingGroupItemViewHolder, view);
this.d = outgoingGroupItemViewHolder;
outgoingGroupItemViewHolder.container = pyT.a(view, R.id.container, "field 'container'");
outgoingGroupItemViewHolder.viewVerticalLine = pyT.a(view, R.id.view_vertical_line, "field 'viewVerticalLine'");
outgoingGroupItemViewHolder.textTitle = (TextView) pyT.e(view, R.id.text_title, "field 'textTitle'", TextView.class);
outgoingGroupItemViewHolder.textAmount = (TextView) pyT.e(view, R.id.text_amount, "field 'textAmount'", TextView.class);
outgoingGroupItemViewHolder.textTimestamp = (TextView) pyT.e(view, R.id.text_timestamp, "field 'textTimestamp'", TextView.class);
outgoingGroupItemViewHolder.viewVerticalLineBelowDot = pyT.a(view, R.id.view_vertical_line_below_dot, "field 'viewVerticalLineBelowDot'");
}
@Override // com.scb.phone.view.adapter.BaseExpandableRecycleViewAdapter.BaseParentViewHolder_ViewBinding, butterknife.Unbinder
public final void a() {
OutgoingGroupItemViewHolder outgoingGroupItemViewHolder = this.d;
if (outgoingGroupItemViewHolder == null) {
throw new IllegalStateException("Bindings already cleared.");
}
this.d = null;
outgoingGroupItemViewHolder.container = null;
outgoingGroupItemViewHolder.viewVerticalLine = null;
outgoingGroupItemViewHolder.textTitle = null;
outgoingGroupItemViewHolder.textAmount = null;
outgoingGroupItemViewHolder.textTimestamp = null;
outgoingGroupItemViewHolder.viewVerticalLineBelowDot = null;
super.a();
}
}
public MerchantWalletOutgoingTransactionAdapter(C16148leh c16148leh) {
super(null);
this.c = c16148leh;
this.e = new View.OnClickListener(this) { // from class: o.ewW
private MerchantWalletOutgoingTransactionAdapter c;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
this.c.e(view);
}
{
this.c = this;
}
};
}
public final void a(RM rm, List<RN> list) {
this.d = rm;
super.b(list);
}
@Override // o.pvT, o.Qpt
public final int c(int i) {
return this.a.get(i) == null ? 0 : 1;
}
@Override // o.Qpt
public final RecyclerView.zJl anX_(ViewGroup viewGroup, int i) {
if (i == 1) {
return new OutgoingGroupItemViewHolder(this, LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131559181, viewGroup, false), this.e);
}
if (i == 0) {
return new HBt(this, LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131559248, viewGroup, false));
}
return null;
}
@Override // o.Qpt
public final RecyclerView.zJl anW_(ViewGroup viewGroup, int i) {
return new ChildViewHolder(this, LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131559179, viewGroup, false));
}
@Override // o.Qpt
public final void d(RecyclerView.zJl zjl, int i) {
if (zjl instanceof OutgoingGroupItemViewHolder) {
((OutgoingGroupItemViewHolder) zjl).a(i);
}
}
@Override // o.Qpt
public final void c(RecyclerView.zJl zjl, int i, int i2) {
if (zjl instanceof ChildViewHolder) {
ChildViewHolder childViewHolder = (ChildViewHolder) zjl;
childViewHolder.textTransferTo.setText(childViewHolder.d.d.c);
childViewHolder.textAccountName.setText(childViewHolder.d.d.a);
childViewHolder.textAccountNumber.setText(childViewHolder.d.d.b);
}
}
/* loaded from: classes5.dex */
class HBt extends AbstractC5347brN {
private MerchantWalletOutgoingTransactionAdapter a;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
HBt(MerchantWalletOutgoingTransactionAdapter merchantWalletOutgoingTransactionAdapter, View view) {
super(view);
this.a = merchantWalletOutgoingTransactionAdapter;
}
}
/* loaded from: classes5.dex */
class OutgoingGroupItemViewHolder extends BaseExpandableRecycleViewAdapter.BaseParentViewHolder {
private MerchantWalletOutgoingTransactionAdapter a;
@BindView
View container;
@BindView
TextView textAmount;
@BindView
TextView textTimestamp;
@BindView
TextView textTitle;
@BindView
View viewVerticalLine;
@BindView
View viewVerticalLineBelowDot;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
OutgoingGroupItemViewHolder(MerchantWalletOutgoingTransactionAdapter merchantWalletOutgoingTransactionAdapter, View view, View.OnClickListener onClickListener) {
super(view);
this.a = merchantWalletOutgoingTransactionAdapter;
ButterKnife.c(this, view);
this.container.setOnClickListener(onClickListener);
}
final void a(int i) {
RN rn = (RN) this.a.a.get(i);
Context context = this.itemView.getContext();
this.textTitle.setText(context.getString(R.string.wallet_detail_transfer_out));
this.textTimestamp.setText(rn.c);
this.viewVerticalLine.setVisibility(i == 0 ? 4 : 0);
this.viewVerticalLineBelowDot.setVisibility(i == this.a.a.size() - 1 ? 8 : 0);
this.itemView.setClickable(true);
this.expandIcon.setVisibility(0);
this.textAmount.setText(String.format(context.getString(R.string.debit_value), rn.b));
this.textAmount.setTextColor(nMh.getColor(context, R.color.f3462131099854));
BaseExpandableRecycleViewAdapter.a(this);
}
}
/* loaded from: classes5.dex */
class ChildViewHolder extends AbstractC5347brN {
final MerchantWalletOutgoingTransactionAdapter d;
@BindView
TextView textAccountName;
@BindView
TextView textAccountNumber;
@BindView
TextView textTransferTo;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
ChildViewHolder(MerchantWalletOutgoingTransactionAdapter merchantWalletOutgoingTransactionAdapter, View view) {
super(view);
this.d = merchantWalletOutgoingTransactionAdapter;
ButterKnife.c(this, view);
}
}
}