339 lines
14 KiB
Java
339 lines
14 KiB
Java
package o;
|
|
|
|
import android.content.Context;
|
|
import android.view.LayoutInflater;
|
|
import android.view.View;
|
|
import android.view.ViewGroup;
|
|
import android.widget.ImageView;
|
|
import android.widget.LinearLayout;
|
|
import android.widget.RelativeLayout;
|
|
import android.widget.TextView;
|
|
import androidx.recyclerview.widget.RecyclerView;
|
|
import java.util.List;
|
|
import kotlin.NoWhenBranchMatchedException;
|
|
|
|
/* renamed from: o.eqR, reason: case insensitive filesystem */
|
|
/* loaded from: classes5.dex */
|
|
public final class C12024eqR extends RecyclerView.Sts<RecyclerView.zJl> {
|
|
private final List<WB> e;
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public C12024eqR(List<? extends WB> list) {
|
|
C14957gcv.e(list, "");
|
|
this.e = list;
|
|
}
|
|
|
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
|
public final RecyclerView.zJl onCreateViewHolder(ViewGroup viewGroup, int i) {
|
|
C14957gcv.e(viewGroup, "");
|
|
LayoutInflater from = LayoutInflater.from(viewGroup.getContext());
|
|
int i2 = com.scb.phone.R.id.vw_divider;
|
|
if (i == 0) {
|
|
View inflate = from.inflate(com.scb.phone.R.layout.2131559343, viewGroup, false);
|
|
int i3 = com.scb.phone.R.id.iv_successful;
|
|
ImageView imageView = (ImageView) qeC.e(inflate, com.scb.phone.R.id.iv_successful);
|
|
if (imageView != null) {
|
|
i3 = com.scb.phone.R.id.ll_layout_all_successful;
|
|
LinearLayout linearLayout = (LinearLayout) qeC.e(inflate, com.scb.phone.R.id.ll_layout_all_successful);
|
|
if (linearLayout != null) {
|
|
i3 = com.scb.phone.R.id.ll_layout_some_successful;
|
|
LinearLayout linearLayout2 = (LinearLayout) qeC.e(inflate, com.scb.phone.R.id.ll_layout_some_successful);
|
|
if (linearLayout2 != null) {
|
|
i3 = com.scb.phone.R.id.tv_one_success_title;
|
|
TextView textView = (TextView) qeC.e(inflate, com.scb.phone.R.id.tv_one_success_title);
|
|
if (textView != null) {
|
|
i3 = com.scb.phone.R.id.tv_one_unregister_title;
|
|
TextView textView2 = (TextView) qeC.e(inflate, com.scb.phone.R.id.tv_one_unregister_title);
|
|
if (textView2 != null) {
|
|
i3 = com.scb.phone.R.id.tv_success_title;
|
|
TextView textView3 = (TextView) qeC.e(inflate, com.scb.phone.R.id.tv_success_title);
|
|
if (textView3 != null) {
|
|
i3 = com.scb.phone.R.id.tv_txn_date_time;
|
|
TextView textView4 = (TextView) qeC.e(inflate, com.scb.phone.R.id.tv_txn_date_time);
|
|
if (textView4 != null) {
|
|
View e = qeC.e(inflate, com.scb.phone.R.id.vw_divider);
|
|
if (e != null) {
|
|
vnv vnvVar = new vnv((LinearLayout) inflate, imageView, linearLayout, linearLayout2, textView, textView2, textView3, textView4, e);
|
|
C14957gcv.c(vnvVar, "");
|
|
return new IeS(vnvVar);
|
|
}
|
|
throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i2)));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
i2 = i3;
|
|
throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i2)));
|
|
}
|
|
int i4 = com.scb.phone.R.id.tv_label;
|
|
if (i == 1) {
|
|
View inflate2 = from.inflate(com.scb.phone.R.layout.2131559346, viewGroup, false);
|
|
TextView textView5 = (TextView) qeC.e(inflate2, com.scb.phone.R.id.tv_label);
|
|
if (textView5 != null) {
|
|
TextView textView6 = (TextView) qeC.e(inflate2, com.scb.phone.R.id.tv_value);
|
|
if (textView6 != null) {
|
|
View e2 = qeC.e(inflate2, com.scb.phone.R.id.vw_divider);
|
|
if (e2 != null) {
|
|
Tdy tdy = new Tdy((LinearLayout) inflate2, textView5, textView6, e2);
|
|
C14957gcv.c(tdy, "");
|
|
return new Sts(tdy);
|
|
}
|
|
} else {
|
|
i2 = com.scb.phone.R.id.tv_value;
|
|
}
|
|
} else {
|
|
i2 = com.scb.phone.R.id.tv_label;
|
|
}
|
|
throw new NullPointerException("Missing required view with ID: ".concat(inflate2.getResources().getResourceName(i2)));
|
|
}
|
|
if (i == 2) {
|
|
View inflate3 = from.inflate(com.scb.phone.R.layout.2131559344, viewGroup, false);
|
|
ImageView imageView2 = (ImageView) qeC.e(inflate3, com.scb.phone.R.id.iv_icon);
|
|
if (imageView2 != null) {
|
|
TextView textView7 = (TextView) qeC.e(inflate3, com.scb.phone.R.id.tv_label);
|
|
if (textView7 != null) {
|
|
QxO qxO = new QxO((RelativeLayout) inflate3, imageView2, textView7);
|
|
C14957gcv.c(qxO, "");
|
|
return new RVV(qxO);
|
|
}
|
|
} else {
|
|
i4 = com.scb.phone.R.id.iv_icon;
|
|
}
|
|
throw new NullPointerException("Missing required view with ID: ".concat(inflate3.getResources().getResourceName(i4)));
|
|
}
|
|
if (i != 3) {
|
|
View inflate4 = from.inflate(com.scb.phone.R.layout.2131559347, viewGroup, false);
|
|
TextView textView8 = (TextView) qeC.e(inflate4, com.scb.phone.R.id.tv_label);
|
|
if (textView8 != null) {
|
|
TextView textView9 = (TextView) qeC.e(inflate4, com.scb.phone.R.id.tv_value);
|
|
if (textView9 != null) {
|
|
View e3 = qeC.e(inflate4, com.scb.phone.R.id.vw_divider);
|
|
if (e3 != null) {
|
|
utx utxVar = new utx((LinearLayout) inflate4, textView8, textView9, e3);
|
|
C14957gcv.c(utxVar, "");
|
|
return new ZqN(utxVar);
|
|
}
|
|
} else {
|
|
i2 = com.scb.phone.R.id.tv_value;
|
|
}
|
|
} else {
|
|
i2 = com.scb.phone.R.id.tv_label;
|
|
}
|
|
throw new NullPointerException("Missing required view with ID: ".concat(inflate4.getResources().getResourceName(i2)));
|
|
}
|
|
View inflate5 = from.inflate(com.scb.phone.R.layout.2131559345, viewGroup, false);
|
|
int i5 = com.scb.phone.R.id.tv_description;
|
|
TextView textView10 = (TextView) qeC.e(inflate5, com.scb.phone.R.id.tv_description);
|
|
if (textView10 != null) {
|
|
TextView textView11 = (TextView) qeC.e(inflate5, com.scb.phone.R.id.tv_label);
|
|
if (textView11 != null) {
|
|
i5 = com.scb.phone.R.id.tv_title;
|
|
TextView textView12 = (TextView) qeC.e(inflate5, com.scb.phone.R.id.tv_title);
|
|
if (textView12 != null) {
|
|
View e4 = qeC.e(inflate5, com.scb.phone.R.id.vw_divider);
|
|
if (e4 != null) {
|
|
ZQm zQm = new ZQm((RelativeLayout) inflate5, textView10, textView11, textView12, e4);
|
|
C14957gcv.c(zQm, "");
|
|
return new LWm(zQm);
|
|
}
|
|
}
|
|
} else {
|
|
i2 = com.scb.phone.R.id.tv_label;
|
|
}
|
|
throw new NullPointerException("Missing required view with ID: ".concat(inflate5.getResources().getResourceName(i2)));
|
|
}
|
|
i2 = i5;
|
|
throw new NullPointerException("Missing required view with ID: ".concat(inflate5.getResources().getResourceName(i2)));
|
|
}
|
|
|
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
|
public final int getItemCount() {
|
|
return this.e.size();
|
|
}
|
|
|
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
|
public final void onBindViewHolder(RecyclerView.zJl zjl, int i) {
|
|
C14957gcv.e(zjl, "");
|
|
WB wb = this.e.get(i);
|
|
int itemViewType = getItemViewType(i);
|
|
if (itemViewType == 0) {
|
|
IeS ieS = (IeS) zjl;
|
|
C14957gcv.d(wb, "");
|
|
C1144Wp c1144Wp = (C1144Wp) wb;
|
|
C14957gcv.e(c1144Wp, "");
|
|
vnv vnvVar = ieS.e;
|
|
vnvVar.j.setText(c1144Wp.a);
|
|
if (c1144Wp.e) {
|
|
LinearLayout linearLayout = vnvVar.a;
|
|
C14957gcv.c(linearLayout, "");
|
|
LinearLayout linearLayout2 = linearLayout;
|
|
C14957gcv.e(linearLayout2, "");
|
|
linearLayout2.setVisibility(0);
|
|
return;
|
|
}
|
|
Context context = ieS.itemView.getContext();
|
|
vnvVar.b.setText(context.getString(com.scb.phone.R.string.auto_single_form_successful_registration, Integer.valueOf(c1144Wp.c)));
|
|
vnvVar.c.setText(context.getString(com.scb.phone.R.string.auto_single_form_unsuccessful_registration, Integer.valueOf(c1144Wp.b)));
|
|
LinearLayout linearLayout3 = vnvVar.d;
|
|
C14957gcv.c(linearLayout3, "");
|
|
LinearLayout linearLayout4 = linearLayout3;
|
|
C14957gcv.e(linearLayout4, "");
|
|
linearLayout4.setVisibility(0);
|
|
return;
|
|
}
|
|
if (itemViewType == 1) {
|
|
C14957gcv.d(wb, "");
|
|
C1149Wu c1149Wu = (C1149Wu) wb;
|
|
C14957gcv.e(c1149Wu, "");
|
|
Tdy tdy = ((Sts) zjl).d;
|
|
tdy.d.setText(c1149Wu.b);
|
|
tdy.e.setText(c1149Wu.a);
|
|
return;
|
|
}
|
|
if (itemViewType == 2) {
|
|
RVV rvv = (RVV) zjl;
|
|
C14957gcv.d(wb, "");
|
|
C1147Ws c1147Ws = (C1147Ws) wb;
|
|
C14957gcv.e(c1147Ws, "");
|
|
QxO qxO = rvv.d;
|
|
qxO.d.setText(c1147Ws.c);
|
|
ImageView imageView = qxO.c;
|
|
imageView.setVisibility(c1147Ws.a);
|
|
if (c1147Ws.e) {
|
|
imageView.setImageResource(com.scb.phone.R.drawable.ic_check_circle_black_48dp);
|
|
imageView.setColorFilter(nMh.getColor(rvv.itemView.getContext(), com.scb.phone.R.color.f3432131099851));
|
|
return;
|
|
} else {
|
|
imageView.setImageResource(com.scb.phone.R.drawable.ic_cross_circle);
|
|
imageView.setColorFilter(nMh.getColor(rvv.itemView.getContext(), com.scb.phone.R.color.f13582131100866));
|
|
return;
|
|
}
|
|
}
|
|
if (itemViewType == 3) {
|
|
C14957gcv.d(wb, "");
|
|
C1146Wr c1146Wr = (C1146Wr) wb;
|
|
C14957gcv.e(c1146Wr, "");
|
|
ZQm zQm = ((LWm) zjl).a;
|
|
zQm.e.setText(c1146Wr.d);
|
|
zQm.d.setText(c1146Wr.c);
|
|
zQm.a.setText(c1146Wr.e);
|
|
return;
|
|
}
|
|
if (itemViewType == 4) {
|
|
ZqN zqN = (ZqN) zjl;
|
|
C14957gcv.d(wb, "");
|
|
C1155Ww c1155Ww = (C1155Ww) wb;
|
|
C14957gcv.e(c1155Ww, "");
|
|
utx utxVar = zqN.a;
|
|
utxVar.a.setText(c1155Ww.b);
|
|
utxVar.b.setText(c1155Ww.d);
|
|
utxVar.b.setTextColor(nMh.getColor(zqN.itemView.getContext(), c1155Ww.c));
|
|
utxVar.e.setVisibility(c1155Ww.a);
|
|
}
|
|
}
|
|
|
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
|
public final int getItemViewType(int i) {
|
|
WB wb = this.e.get(i);
|
|
if (wb instanceof C1144Wp) {
|
|
return 0;
|
|
}
|
|
if (wb instanceof C1149Wu) {
|
|
return 1;
|
|
}
|
|
if (wb instanceof C1147Ws) {
|
|
return 2;
|
|
}
|
|
if (wb instanceof C1146Wr) {
|
|
return 3;
|
|
}
|
|
if (wb instanceof C1155Ww) {
|
|
return 4;
|
|
}
|
|
throw new NoWhenBranchMatchedException();
|
|
}
|
|
|
|
/* renamed from: o.eqR$HBt */
|
|
/* loaded from: classes5.dex */
|
|
public static final class HBt {
|
|
private HBt() {
|
|
}
|
|
|
|
public /* synthetic */ HBt(byte b) {
|
|
this();
|
|
}
|
|
}
|
|
|
|
/* renamed from: o.eqR$IeS */
|
|
/* loaded from: classes5.dex */
|
|
public static final class IeS extends RecyclerView.zJl {
|
|
final vnv e;
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public IeS(vnv vnvVar) {
|
|
super(vnvVar.e);
|
|
C14957gcv.e(vnvVar, "");
|
|
this.e = vnvVar;
|
|
}
|
|
}
|
|
|
|
/* renamed from: o.eqR$LWm */
|
|
/* loaded from: classes5.dex */
|
|
public static final class LWm extends RecyclerView.zJl {
|
|
final ZQm a;
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public LWm(ZQm zQm) {
|
|
super(zQm.c);
|
|
C14957gcv.e(zQm, "");
|
|
this.a = zQm;
|
|
}
|
|
}
|
|
|
|
/* renamed from: o.eqR$RVV */
|
|
/* loaded from: classes5.dex */
|
|
public static final class RVV extends RecyclerView.zJl {
|
|
final QxO d;
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public RVV(QxO qxO) {
|
|
super(qxO.e);
|
|
C14957gcv.e(qxO, "");
|
|
this.d = qxO;
|
|
}
|
|
}
|
|
|
|
/* renamed from: o.eqR$Sts */
|
|
/* loaded from: classes5.dex */
|
|
public static final class Sts extends RecyclerView.zJl {
|
|
final Tdy d;
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public Sts(Tdy tdy) {
|
|
super(tdy.a);
|
|
C14957gcv.e(tdy, "");
|
|
this.d = tdy;
|
|
}
|
|
}
|
|
|
|
/* renamed from: o.eqR$ZqN */
|
|
/* loaded from: classes5.dex */
|
|
public static final class ZqN extends RecyclerView.zJl {
|
|
final utx a;
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public ZqN(utx utxVar) {
|
|
super(utxVar.c);
|
|
C14957gcv.e(utxVar, "");
|
|
this.a = utxVar;
|
|
}
|
|
}
|
|
|
|
static {
|
|
new HBt((byte) 0);
|
|
}
|
|
}
|