133 lines
4.5 KiB
Java
133 lines
4.5 KiB
Java
|
package com.scb.phone.view.adapter.transferandpay;
|
||
|
|
||
|
import android.view.LayoutInflater;
|
||
|
import android.view.View;
|
||
|
import android.view.ViewGroup;
|
||
|
import android.widget.RelativeLayout;
|
||
|
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.transferandpay.PaybackPeriodAdapter;
|
||
|
import java.util.List;
|
||
|
import o.InterfaceC12824fIT;
|
||
|
import o.VM;
|
||
|
import o.pyT;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class PaybackPeriodAdapter extends RecyclerView.Sts {
|
||
|
public List<VM> a;
|
||
|
public int b = -1;
|
||
|
public InterfaceC12824fIT e;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
class LWm extends SelectedItemHolder {
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public class SelectedItemHolder_ViewBinding implements Unbinder {
|
||
|
private SelectedItemHolder e;
|
||
|
|
||
|
public SelectedItemHolder_ViewBinding(SelectedItemHolder selectedItemHolder, View view) {
|
||
|
this.e = selectedItemHolder;
|
||
|
selectedItemHolder.amount = (TextView) pyT.e(view, R.id.amount_text_view, "field 'amount'", TextView.class);
|
||
|
selectedItemHolder.container = (RelativeLayout) pyT.e(view, R.id.amount_container_relative_layout, "field 'container'", RelativeLayout.class);
|
||
|
}
|
||
|
|
||
|
@Override // butterknife.Unbinder
|
||
|
public final void a() {
|
||
|
SelectedItemHolder selectedItemHolder = this.e;
|
||
|
if (selectedItemHolder == null) {
|
||
|
throw new IllegalStateException("Bindings already cleared.");
|
||
|
}
|
||
|
this.e = null;
|
||
|
selectedItemHolder.amount = null;
|
||
|
selectedItemHolder.container = null;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public PaybackPeriodAdapter(List<VM> list) {
|
||
|
this.a = list;
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final RecyclerView.zJl onCreateViewHolder(ViewGroup viewGroup, int i) {
|
||
|
if (i == 0) {
|
||
|
return new SelectedItemHolder(this, LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131559068, viewGroup, false));
|
||
|
}
|
||
|
return new Sts(this, LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131559067, viewGroup, false));
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final void onBindViewHolder(RecyclerView.zJl zjl, final int i) {
|
||
|
SelectedItemHolder selectedItemHolder = (SelectedItemHolder) zjl;
|
||
|
selectedItemHolder.amount.setText(this.a.get(i).a);
|
||
|
if (zjl instanceof LWm) {
|
||
|
return;
|
||
|
}
|
||
|
selectedItemHolder.container.setOnClickListener(new View.OnClickListener(this, i) { // from class: o.ezQ
|
||
|
private int a;
|
||
|
private PaybackPeriodAdapter c;
|
||
|
|
||
|
@Override // android.view.View.OnClickListener
|
||
|
public final void onClick(View view) {
|
||
|
PaybackPeriodAdapter.d(this.c, this.a);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.c = this;
|
||
|
this.a = i;
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final int getItemCount() {
|
||
|
return this.a.size();
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
class Sts extends SelectedItemHolder {
|
||
|
private PaybackPeriodAdapter b;
|
||
|
|
||
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||
|
Sts(PaybackPeriodAdapter paybackPeriodAdapter, View view) {
|
||
|
super(paybackPeriodAdapter, view);
|
||
|
this.b = paybackPeriodAdapter;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
class SelectedItemHolder extends RecyclerView.zJl {
|
||
|
|
||
|
@BindView
|
||
|
TextView amount;
|
||
|
private PaybackPeriodAdapter b;
|
||
|
|
||
|
@BindView
|
||
|
RelativeLayout container;
|
||
|
|
||
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||
|
SelectedItemHolder(PaybackPeriodAdapter paybackPeriodAdapter, View view) {
|
||
|
super(view);
|
||
|
this.b = paybackPeriodAdapter;
|
||
|
ButterKnife.c(this, view);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void d(PaybackPeriodAdapter paybackPeriodAdapter, int i) {
|
||
|
if (paybackPeriodAdapter.b != i) {
|
||
|
paybackPeriodAdapter.b = i;
|
||
|
paybackPeriodAdapter.notifyDataSetChanged();
|
||
|
paybackPeriodAdapter.e.a(i);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final int getItemViewType(int i) {
|
||
|
return i == this.b ? 0 : 1;
|
||
|
}
|
||
|
}
|