what-the-bank/sources/o/C12459eyc.java

428 lines
19 KiB
Java

package o;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CheckBox;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.recyclerview.widget.RecyclerView;
import java.util.Arrays;
import java.util.List;
/* renamed from: o.eyc, reason: case insensitive filesystem */
/* loaded from: classes5.dex */
public final class C12459eyc extends RecyclerView.Sts<RecyclerView.zJl> {
private final Context b;
private final InterfaceC12868fJl d;
private final List<VY> e;
/* JADX WARN: Multi-variable type inference failed */
public C12459eyc(List<? extends VY> list, InterfaceC12868fJl interfaceC12868fJl, Context context) {
C14957gcv.e(list, "");
C14957gcv.e(context, "");
this.e = list;
this.d = interfaceC12868fJl;
this.b = context;
}
@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.divider_view;
int i3 = com.scb.phone.R.id.title_name;
if (i != 0 && i != 1) {
if (i != 3 && i != 16) {
if (i != 28) {
if (i != 20) {
if (i != 21) {
switch (i) {
case 7:
View inflate = from.inflate(com.scb.phone.R.layout.2131559204, viewGroup, false);
TextView textView = (TextView) qeC.e(inflate, com.scb.phone.R.id.description);
if (textView != null) {
View e = qeC.e(inflate, com.scb.phone.R.id.divider_view);
if (e != null) {
View e2 = qeC.e(inflate, com.scb.phone.R.id.footer_divider_view);
if (e2 != null) {
i2 = com.scb.phone.R.id.imageView5;
ImageView imageView = (ImageView) qeC.e(inflate, com.scb.phone.R.id.imageView5);
if (imageView != null) {
LinearLayout linearLayout = (LinearLayout) inflate;
TextView textView2 = (TextView) qeC.e(inflate, com.scb.phone.R.id.title_name);
if (textView2 != null) {
C8525dNu c8525dNu = new C8525dNu(linearLayout, textView, e, e2, imageView, linearLayout, textView2);
C14957gcv.c(c8525dNu, "");
return new LWm(this, c8525dNu);
}
i2 = com.scb.phone.R.id.title_name;
}
} else {
i2 = com.scb.phone.R.id.footer_divider_view;
}
}
} else {
i2 = com.scb.phone.R.id.description;
}
throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i2)));
case 8:
case 10:
case 11:
break;
case 9:
break;
default:
View inflate2 = from.inflate(com.scb.phone.R.layout.2131559205, viewGroup, false);
TextView textView3 = (TextView) qeC.e(inflate2, com.scb.phone.R.id.description);
if (textView3 != null) {
View e3 = qeC.e(inflate2, com.scb.phone.R.id.divider_view);
if (e3 != null) {
View e4 = qeC.e(inflate2, com.scb.phone.R.id.footer_divider_view);
if (e4 != null) {
LinearLayout linearLayout2 = (LinearLayout) inflate2;
TextView textView4 = (TextView) qeC.e(inflate2, com.scb.phone.R.id.title_name);
if (textView4 != null) {
C17057taw c17057taw = new C17057taw(linearLayout2, textView3, e3, e4, linearLayout2, textView4);
C14957gcv.c(c17057taw, "");
return new IeS(this, c17057taw);
}
i2 = com.scb.phone.R.id.title_name;
} else {
i2 = com.scb.phone.R.id.footer_divider_view;
}
}
} else {
i2 = com.scb.phone.R.id.description;
}
throw new NullPointerException("Missing required view with ID: ".concat(inflate2.getResources().getResourceName(i2)));
}
}
}
}
View inflate3 = from.inflate(com.scb.phone.R.layout.2131559206, viewGroup, false);
TextView textView5 = (TextView) qeC.e(inflate3, com.scb.phone.R.id.description);
if (textView5 != null) {
View e5 = qeC.e(inflate3, com.scb.phone.R.id.divider_view);
if (e5 != null) {
View e6 = qeC.e(inflate3, com.scb.phone.R.id.footer_divider_view);
if (e6 != null) {
TextView textView6 = (TextView) qeC.e(inflate3, com.scb.phone.R.id.title_name);
if (textView6 != null) {
i2 = com.scb.phone.R.id.toggle_view;
CheckBox checkBox = (CheckBox) qeC.e(inflate3, com.scb.phone.R.id.toggle_view);
if (checkBox != null) {
OqX oqX = new OqX((LinearLayout) inflate3, textView5, e5, e6, textView6, checkBox);
C14957gcv.c(oqX, "");
return new HBt(this, oqX);
}
} else {
i2 = com.scb.phone.R.id.title_name;
}
} else {
i2 = com.scb.phone.R.id.footer_divider_view;
}
}
} else {
i2 = com.scb.phone.R.id.description;
}
throw new NullPointerException("Missing required view with ID: ".concat(inflate3.getResources().getResourceName(i2)));
}
View inflate4 = from.inflate(com.scb.phone.R.layout.2131559203, viewGroup, false);
View e7 = qeC.e(inflate4, com.scb.phone.R.id.footer_divider_view);
if (e7 != null) {
TextView textView7 = (TextView) qeC.e(inflate4, com.scb.phone.R.id.title_name);
if (textView7 != null) {
C0335EiO c0335EiO = new C0335EiO((LinearLayout) inflate4, e7, textView7);
C14957gcv.c(c0335EiO, "");
return new Sts(this, c0335EiO);
}
} else {
i3 = com.scb.phone.R.id.footer_divider_view;
}
throw new NullPointerException("Missing required view with ID: ".concat(inflate4.getResources().getResourceName(i3)));
}
View inflate5 = from.inflate(com.scb.phone.R.layout.2131559207, viewGroup, false);
TextView textView8 = (TextView) qeC.e(inflate5, com.scb.phone.R.id.description);
if (textView8 != null) {
View e8 = qeC.e(inflate5, com.scb.phone.R.id.divider_view);
if (e8 != null) {
i2 = com.scb.phone.R.id.email_text;
TextView textView9 = (TextView) qeC.e(inflate5, com.scb.phone.R.id.email_text);
if (textView9 != null) {
View e9 = qeC.e(inflate5, com.scb.phone.R.id.footer_divider_view);
if (e9 != null) {
i2 = com.scb.phone.R.id.image_group_arrow;
ImageView imageView2 = (ImageView) qeC.e(inflate5, com.scb.phone.R.id.image_group_arrow);
if (imageView2 != null) {
LinearLayout linearLayout3 = (LinearLayout) inflate5;
TextView textView10 = (TextView) qeC.e(inflate5, com.scb.phone.R.id.title_name);
if (textView10 != null) {
yUV yuv = new yUV(linearLayout3, textView8, e8, textView9, e9, imageView2, linearLayout3, textView10);
C14957gcv.c(yuv, "");
return new RVV(this, yuv);
}
i2 = com.scb.phone.R.id.title_name;
}
} else {
i2 = com.scb.phone.R.id.footer_divider_view;
}
}
}
} else {
i2 = com.scb.phone.R.id.description;
}
throw new NullPointerException("Missing required view with ID: ".concat(inflate5.getResources().getResourceName(i2)));
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final int getItemViewType(int i) {
return this.e.get(i).b;
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final void onBindViewHolder(RecyclerView.zJl zjl, int i) {
C14957gcv.e(zjl, "");
if (zjl instanceof Sts) {
Sts sts = (Sts) zjl;
C12459eyc c12459eyc = sts.c;
TextView textView = sts.b.c;
C14957gcv.c(textView, "");
c12459eyc.anQ_(null, textView, null, null, null, i);
return;
}
if (zjl instanceof HBt) {
HBt hBt = (HBt) zjl;
C12459eyc c12459eyc2 = hBt.c;
TextView textView2 = hBt.d.c;
C14957gcv.c(textView2, "");
c12459eyc2.anQ_(null, textView2, hBt.d.d, null, hBt.d.e, i);
return;
}
if (zjl instanceof RVV) {
RVV rvv = (RVV) zjl;
C12459eyc c12459eyc3 = rvv.e;
LinearLayout linearLayout = rvv.c.b;
TextView textView3 = rvv.c.c;
C14957gcv.c(textView3, "");
c12459eyc3.anQ_(linearLayout, textView3, rvv.c.e, rvv.c.d, null, i);
return;
}
if (zjl instanceof LWm) {
LWm lWm = (LWm) zjl;
C12459eyc c12459eyc4 = lWm.d;
LinearLayout linearLayout2 = lWm.e.a;
TextView textView4 = lWm.e.b;
C14957gcv.c(textView4, "");
c12459eyc4.anQ_(linearLayout2, textView4, lWm.e.c, null, null, i);
return;
}
if (zjl instanceof IeS) {
IeS ieS = (IeS) zjl;
C12459eyc c12459eyc5 = ieS.a;
LinearLayout linearLayout3 = ieS.b.b;
TextView textView5 = ieS.b.d;
C14957gcv.c(textView5, "");
c12459eyc5.anQ_(linearLayout3, textView5, ieS.b.c, null, null, i);
}
}
private void anQ_(LinearLayout linearLayout, TextView textView, final TextView textView2, TextView textView3, final CheckBox checkBox, final int i) {
C14957gcv.e(textView, "");
textView.setText(this.e.get(i).g);
String str = this.e.get(i).c;
String str2 = null;
if (str == null) {
C14957gcv.a("");
str = null;
}
if (str.length() > 0 && textView2 != null) {
TextView textView4 = textView2;
C14957gcv.e(textView4, "");
textView4.setVisibility(0);
String str3 = this.e.get(i).c;
if (str3 != null) {
str2 = str3;
} else {
C14957gcv.a("");
}
textView2.setText(str2);
if (this.e.get(i).a != 0) {
textView2.setTextColor(this.e.get(i).a);
}
}
if (this.e.get(i).b == 0) {
VY vy = this.e.get(i);
C14957gcv.d(vy, "");
String str4 = ((C1122Wb) vy).d;
if ((true ^ (str4 == null || gdZ.d((CharSequence) str4))) && textView3 != null) {
TextView textView5 = textView3;
C14957gcv.e(textView5, "");
textView5.setVisibility(0);
textView3.setText(str4);
}
}
if (checkBox != null) {
if (this.e.get(i) instanceof C1129Wf) {
VY vy2 = this.e.get(i);
C14957gcv.d(vy2, "");
checkBox.setChecked(((C1129Wf) vy2).d);
}
checkBox.setOnClickListener(new View.OnClickListener(this, checkBox, i, textView2) { // from class: o.exZ
private CheckBox a;
private int b;
private C12459eyc c;
private TextView d;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
C12459eyc.anP_(this.c, this.a, this.b, this.d);
}
{
this.c = this;
this.a = checkBox;
this.b = i;
this.d = textView2;
}
});
}
if (linearLayout != null) {
linearLayout.setOnClickListener(new View.OnClickListener(this, i) { // from class: o.eyd
private int a;
private C12459eyc e;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
C12459eyc.c(this.e, this.a);
}
{
this.e = this;
this.a = i;
}
});
}
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final int getItemCount() {
return this.e.size();
}
/* renamed from: o.eyc$HBt */
/* loaded from: classes5.dex */
public final class HBt extends RecyclerView.zJl {
final C12459eyc c;
final OqX d;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public HBt(C12459eyc c12459eyc, OqX oqX) {
super(oqX.b);
C14957gcv.e(oqX, "");
this.c = c12459eyc;
this.d = oqX;
}
}
/* renamed from: o.eyc$IeS */
/* loaded from: classes5.dex */
public final class IeS extends RecyclerView.zJl {
final C12459eyc a;
final C17057taw b;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public IeS(C12459eyc c12459eyc, C17057taw c17057taw) {
super(c17057taw.a);
C14957gcv.e(c17057taw, "");
this.a = c12459eyc;
this.b = c17057taw;
}
}
/* renamed from: o.eyc$LWm */
/* loaded from: classes5.dex */
public final class LWm extends RecyclerView.zJl {
final C12459eyc d;
final C8525dNu e;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public LWm(C12459eyc c12459eyc, C8525dNu c8525dNu) {
super(c8525dNu.d);
C14957gcv.e(c8525dNu, "");
this.d = c12459eyc;
this.e = c8525dNu;
}
}
/* renamed from: o.eyc$RVV */
/* loaded from: classes5.dex */
public final class RVV extends RecyclerView.zJl {
final yUV c;
final C12459eyc e;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public RVV(C12459eyc c12459eyc, yUV yuv) {
super(yuv.a);
C14957gcv.e(yuv, "");
this.e = c12459eyc;
this.c = yuv;
}
}
/* renamed from: o.eyc$Sts */
/* loaded from: classes5.dex */
public final class Sts extends RecyclerView.zJl {
final C0335EiO b;
final C12459eyc c;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public Sts(C12459eyc c12459eyc, C0335EiO c0335EiO) {
super(c0335EiO.a);
C14957gcv.e(c0335EiO, "");
this.c = c12459eyc;
this.b = c0335EiO;
}
}
public static /* synthetic */ void anP_(C12459eyc c12459eyc, CheckBox checkBox, int i, TextView textView) {
String str;
C14957gcv.e(c12459eyc, "");
C14957gcv.e(checkBox, "");
InterfaceC12868fJl interfaceC12868fJl = c12459eyc.d;
if (interfaceC12868fJl != null) {
boolean isChecked = checkBox.isChecked();
interfaceC12868fJl.e(isChecked, c12459eyc.e.get(i).b);
if (c12459eyc.e.get(i).b != 8 || textView == null) {
return;
}
if (isChecked) {
gcH gch = gcH.d;
String string = c12459eyc.b.getString(com.scb.phone.R.string.mask_description_format);
C14957gcv.c((Object) string, "");
String format = String.format(string, Arrays.copyOf(new Object[]{c12459eyc.b.getString(com.scb.phone.R.string.settings_mask_on_sample), c12459eyc.b.getString(com.scb.phone.R.string.settings_mask_on_description)}, 2));
C14957gcv.c((Object) format, "");
str = format;
} else {
gcH gch2 = gcH.d;
String string2 = c12459eyc.b.getString(com.scb.phone.R.string.mask_description_format);
C14957gcv.c((Object) string2, "");
String format2 = String.format(string2, Arrays.copyOf(new Object[]{c12459eyc.b.getString(com.scb.phone.R.string.settings_mask_off_sample), c12459eyc.b.getString(com.scb.phone.R.string.settings_mask_off_description)}, 2));
C14957gcv.c((Object) format2, "");
str = format2;
}
textView.setText(str);
}
}
public static /* synthetic */ void c(C12459eyc c12459eyc, int i) {
C14957gcv.e(c12459eyc, "");
InterfaceC12868fJl interfaceC12868fJl = c12459eyc.d;
if (interfaceC12868fJl != null) {
interfaceC12868fJl.e(c12459eyc.e.get(i).b);
}
}
}