193 lines
7.7 KiB
Java
193 lines
7.7 KiB
Java
package com.scb.phone.view.adapter.ebillsubscription;
|
|
|
|
import android.content.Context;
|
|
import android.view.LayoutInflater;
|
|
import android.view.View;
|
|
import android.view.ViewGroup;
|
|
import android.widget.ImageView;
|
|
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.ebillsubscription.EBillSubscriptionAdapter;
|
|
import java.util.List;
|
|
import o.C0682Mc;
|
|
import o.C12891fKc;
|
|
import o.C13001fNn;
|
|
import o.EnumC12253eui;
|
|
import o.nMh;
|
|
import o.pyT;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public final class EBillSubscriptionAdapter extends RecyclerView.Sts {
|
|
private RVV b;
|
|
public List<C0682Mc> c;
|
|
private final Context d;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public interface RVV {
|
|
void a(int i);
|
|
}
|
|
|
|
/* loaded from: classes5.dex */
|
|
public class EBillSubscriptionItemHolder_ViewBinding implements Unbinder {
|
|
private EBillSubscriptionItemHolder c;
|
|
|
|
public EBillSubscriptionItemHolder_ViewBinding(EBillSubscriptionItemHolder eBillSubscriptionItemHolder, View view) {
|
|
this.c = eBillSubscriptionItemHolder;
|
|
eBillSubscriptionItemHolder.mContainer = (RelativeLayout) pyT.e(view, R.id.container, "field 'mContainer'", RelativeLayout.class);
|
|
eBillSubscriptionItemHolder.mIconBiller = (ImageView) pyT.e(view, R.id.ebill_subscription_icon_image_view, "field 'mIconBiller'", ImageView.class);
|
|
eBillSubscriptionItemHolder.mTitle = (TextView) pyT.e(view, R.id.ebill_subscription_title_text_view, "field 'mTitle'", TextView.class);
|
|
eBillSubscriptionItemHolder.mCode = (TextView) pyT.e(view, R.id.ebill_subscription_code_text_view, "field 'mCode'", TextView.class);
|
|
eBillSubscriptionItemHolder.mReference = (TextView) pyT.e(view, R.id.ebill_subscription_reference_text_view, "field 'mReference'", TextView.class);
|
|
eBillSubscriptionItemHolder.mDivider = pyT.a(view, R.id.ebill_subscription_divider, "field 'mDivider'");
|
|
eBillSubscriptionItemHolder.mFullDivider = pyT.a(view, R.id.ebill_subscription_full_divider, "field 'mFullDivider'");
|
|
eBillSubscriptionItemHolder.mStatus = (TextView) pyT.e(view, R.id.ebill_status_text_view, "field 'mStatus'", TextView.class);
|
|
}
|
|
|
|
@Override // butterknife.Unbinder
|
|
public final void a() {
|
|
EBillSubscriptionItemHolder eBillSubscriptionItemHolder = this.c;
|
|
if (eBillSubscriptionItemHolder == null) {
|
|
throw new IllegalStateException("Bindings already cleared.");
|
|
}
|
|
this.c = null;
|
|
eBillSubscriptionItemHolder.mContainer = null;
|
|
eBillSubscriptionItemHolder.mIconBiller = null;
|
|
eBillSubscriptionItemHolder.mTitle = null;
|
|
eBillSubscriptionItemHolder.mCode = null;
|
|
eBillSubscriptionItemHolder.mReference = null;
|
|
eBillSubscriptionItemHolder.mDivider = null;
|
|
eBillSubscriptionItemHolder.mFullDivider = null;
|
|
eBillSubscriptionItemHolder.mStatus = null;
|
|
}
|
|
}
|
|
|
|
public EBillSubscriptionAdapter(Context context, List<C0682Mc> list, RVV rvv) {
|
|
this.d = context;
|
|
this.b = rvv;
|
|
this.c = list;
|
|
}
|
|
|
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
|
public final void onBindViewHolder(RecyclerView.zJl zjl, final int i) {
|
|
if (zjl instanceof EBillSubscriptionItemHolder) {
|
|
EBillSubscriptionItemHolder eBillSubscriptionItemHolder = (EBillSubscriptionItemHolder) zjl;
|
|
C0682Mc c0682Mc = this.c.get(i);
|
|
C12891fKc.azf_(this.d, R.drawable.biller_place_holder, eBillSubscriptionItemHolder.mIconBiller, c0682Mc.a, this.d.getResources().getDimensionPixelOffset(R.dimen.f15222131165286), nMh.getColor(this.d, R.color.f3412131099849));
|
|
eBillSubscriptionItemHolder.mTitle.setText(c0682Mc.f);
|
|
eBillSubscriptionItemHolder.mCode.setText(c0682Mc.b);
|
|
eBillSubscriptionItemHolder.mReference.setText(c0682Mc.n);
|
|
eBillSubscriptionItemHolder.mStatus.setText(c0682Mc.h);
|
|
EnumC12253eui d = EnumC12253eui.d(c0682Mc.j);
|
|
int i2 = AnonymousClass2.d[(d == null ? EnumC12253eui.DEFAULT : d).ordinal()];
|
|
eBillSubscriptionItemHolder.mStatus.setTextColor(nMh.getColor(this.d, i2 != 1 ? i2 != 2 ? i2 != 3 ? R.color.f1852131099685 : R.color.f13582131100866 : R.color.f13642131100872 : R.color.f13682131100876));
|
|
if (EnumC12253eui.DEFAULT == d) {
|
|
eBillSubscriptionItemHolder.mStatus.setVisibility(4);
|
|
eBillSubscriptionItemHolder.mStatus.setText(C13001fNn.DEFAULT_IDENTIFIER);
|
|
}
|
|
eBillSubscriptionItemHolder.mContainer.setOnClickListener(new View.OnClickListener(this, i) { // from class: o.eul
|
|
private int b;
|
|
private EBillSubscriptionAdapter c;
|
|
|
|
@Override // android.view.View.OnClickListener
|
|
public final void onClick(View view) {
|
|
EBillSubscriptionAdapter.b(this.c, this.b);
|
|
}
|
|
|
|
{
|
|
this.c = this;
|
|
this.b = i;
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
/* renamed from: com.scb.phone.view.adapter.ebillsubscription.EBillSubscriptionAdapter$2, reason: invalid class name */
|
|
/* loaded from: classes5.dex */
|
|
static /* synthetic */ class AnonymousClass2 {
|
|
static final int[] d;
|
|
|
|
static {
|
|
int[] iArr = new int[EnumC12253eui.values().length];
|
|
d = iArr;
|
|
try {
|
|
iArr[EnumC12253eui.PENDING_SUBSCRIBE.ordinal()] = 1;
|
|
} catch (NoSuchFieldError unused) {
|
|
}
|
|
try {
|
|
d[EnumC12253eui.SUBSCRIBE.ordinal()] = 2;
|
|
} catch (NoSuchFieldError unused2) {
|
|
}
|
|
try {
|
|
d[EnumC12253eui.REJECT.ordinal()] = 3;
|
|
} catch (NoSuchFieldError unused3) {
|
|
}
|
|
try {
|
|
d[EnumC12253eui.DEFAULT.ordinal()] = 4;
|
|
} catch (NoSuchFieldError unused4) {
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
|
public final int getItemCount() {
|
|
List<C0682Mc> list = this.c;
|
|
if (list != null) {
|
|
return list.size();
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
/* loaded from: classes5.dex */
|
|
public class EBillSubscriptionItemHolder extends RecyclerView.zJl {
|
|
private EBillSubscriptionAdapter b;
|
|
|
|
@BindView
|
|
TextView mCode;
|
|
|
|
@BindView
|
|
RelativeLayout mContainer;
|
|
|
|
@BindView
|
|
View mDivider;
|
|
|
|
@BindView
|
|
View mFullDivider;
|
|
|
|
@BindView
|
|
ImageView mIconBiller;
|
|
|
|
@BindView
|
|
TextView mReference;
|
|
|
|
@BindView
|
|
TextView mStatus;
|
|
|
|
@BindView
|
|
TextView mTitle;
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public EBillSubscriptionItemHolder(EBillSubscriptionAdapter eBillSubscriptionAdapter, View view) {
|
|
super(view);
|
|
this.b = eBillSubscriptionAdapter;
|
|
ButterKnife.c(this, view);
|
|
}
|
|
}
|
|
|
|
public static /* synthetic */ void b(EBillSubscriptionAdapter eBillSubscriptionAdapter, int i) {
|
|
RVV rvv = eBillSubscriptionAdapter.b;
|
|
if (rvv != null) {
|
|
rvv.a(i);
|
|
}
|
|
}
|
|
|
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
|
public final /* synthetic */ RecyclerView.zJl onCreateViewHolder(ViewGroup viewGroup, int i) {
|
|
return new EBillSubscriptionItemHolder(this, LayoutInflater.from(this.d).inflate(R.layout.2131559113, viewGroup, false));
|
|
}
|
|
}
|