143 lines
4.8 KiB
Java
143 lines
4.8 KiB
Java
|
package com.scb.phone.view.adapter.requesttopay;
|
||
|
|
||
|
import android.view.LayoutInflater;
|
||
|
import android.view.View;
|
||
|
import android.view.ViewGroup;
|
||
|
import android.widget.LinearLayout;
|
||
|
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.requesttopay.OutgoingAdapter;
|
||
|
import java.util.List;
|
||
|
import o.VI;
|
||
|
import o.pyT;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class OutgoingAdapter extends RecyclerView.Sts {
|
||
|
private RVV c;
|
||
|
public List<VI> d;
|
||
|
public boolean e = false;
|
||
|
|
||
|
@FunctionalInterface
|
||
|
/* loaded from: classes5.dex */
|
||
|
public interface LWm {
|
||
|
void a(boolean z);
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public interface RVV {
|
||
|
void a(int i);
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public class OutgoingHolder_ViewBinding implements Unbinder {
|
||
|
private OutgoingHolder c;
|
||
|
|
||
|
public OutgoingHolder_ViewBinding(OutgoingHolder outgoingHolder, View view) {
|
||
|
this.c = outgoingHolder;
|
||
|
outgoingHolder.container = (LinearLayout) pyT.e(view, R.id.container_relative_layout, "field 'container'", LinearLayout.class);
|
||
|
outgoingHolder.tvName = (TextView) pyT.e(view, R.id.name_outgoing_textview, "field 'tvName'", TextView.class);
|
||
|
outgoingHolder.tvProxyNumber = (TextView) pyT.e(view, R.id.pxoxy_number_outgoing_textview, "field 'tvProxyNumber'", TextView.class);
|
||
|
outgoingHolder.tvDueDate = (TextView) pyT.e(view, R.id.due_date_outgoing_textview, "field 'tvDueDate'", TextView.class);
|
||
|
outgoingHolder.tvAmount = (TextView) pyT.e(view, R.id.amount_outgoing_textview, "field 'tvAmount'", TextView.class);
|
||
|
outgoingHolder.tvStatus = (TextView) pyT.e(view, R.id.status_outgoing_textview, "field 'tvStatus'", TextView.class);
|
||
|
}
|
||
|
|
||
|
@Override // butterknife.Unbinder
|
||
|
public final void a() {
|
||
|
OutgoingHolder outgoingHolder = this.c;
|
||
|
if (outgoingHolder == null) {
|
||
|
throw new IllegalStateException("Bindings already cleared.");
|
||
|
}
|
||
|
this.c = null;
|
||
|
outgoingHolder.container = null;
|
||
|
outgoingHolder.tvName = null;
|
||
|
outgoingHolder.tvProxyNumber = null;
|
||
|
outgoingHolder.tvDueDate = null;
|
||
|
outgoingHolder.tvAmount = null;
|
||
|
outgoingHolder.tvStatus = null;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public OutgoingAdapter(RVV rvv) {
|
||
|
this.c = rvv;
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final RecyclerView.zJl onCreateViewHolder(ViewGroup viewGroup, int i) {
|
||
|
return new OutgoingHolder(this, LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131559197, viewGroup, false));
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final void onBindViewHolder(RecyclerView.zJl zjl, final int i) {
|
||
|
if (zjl instanceof OutgoingHolder) {
|
||
|
OutgoingHolder outgoingHolder = (OutgoingHolder) zjl;
|
||
|
VI vi = this.d.get(i);
|
||
|
outgoingHolder.tvName.setText(vi.g);
|
||
|
outgoingHolder.tvProxyNumber.setText(vi.h);
|
||
|
outgoingHolder.tvDueDate.setText(vi.b);
|
||
|
outgoingHolder.tvAmount.setText(vi.d);
|
||
|
outgoingHolder.tvStatus.setText(vi.m);
|
||
|
outgoingHolder.container.setOnClickListener(new View.OnClickListener(this, i) { // from class: o.eyu
|
||
|
private int c;
|
||
|
private OutgoingAdapter d;
|
||
|
|
||
|
@Override // android.view.View.OnClickListener
|
||
|
public final void onClick(View view) {
|
||
|
OutgoingAdapter.a(this.d, this.c);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.d = this;
|
||
|
this.c = i;
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final int getItemCount() {
|
||
|
return this.d.size();
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public class OutgoingHolder extends RecyclerView.zJl {
|
||
|
|
||
|
@BindView
|
||
|
LinearLayout container;
|
||
|
private OutgoingAdapter d;
|
||
|
|
||
|
@BindView
|
||
|
TextView tvAmount;
|
||
|
|
||
|
@BindView
|
||
|
TextView tvDueDate;
|
||
|
|
||
|
@BindView
|
||
|
TextView tvName;
|
||
|
|
||
|
@BindView
|
||
|
TextView tvProxyNumber;
|
||
|
|
||
|
@BindView
|
||
|
TextView tvStatus;
|
||
|
|
||
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||
|
public OutgoingHolder(OutgoingAdapter outgoingAdapter, View view) {
|
||
|
super(view);
|
||
|
this.d = outgoingAdapter;
|
||
|
ButterKnife.c(this, view);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void a(OutgoingAdapter outgoingAdapter, int i) {
|
||
|
RVV rvv = outgoingAdapter.c;
|
||
|
if (rvv != null) {
|
||
|
rvv.a(i);
|
||
|
}
|
||
|
}
|
||
|
}
|