169 lines
6.1 KiB
Java
169 lines
6.1 KiB
Java
package o;
|
|
|
|
import android.content.Context;
|
|
import android.text.SpannableString;
|
|
import android.text.Spanned;
|
|
import android.text.SpannedString;
|
|
import android.text.TextUtils;
|
|
import android.util.Base64;
|
|
import android.view.LayoutInflater;
|
|
import android.view.View;
|
|
import android.view.ViewGroup;
|
|
import android.widget.TextView;
|
|
import androidx.appcompat.widget.AppCompatImageView;
|
|
import androidx.constraintlayout.widget.ConstraintLayout;
|
|
import androidx.recyclerview.widget.RecyclerView;
|
|
import java.nio.charset.StandardCharsets;
|
|
import java.util.List;
|
|
|
|
/* renamed from: o.esL, reason: case insensitive filesystem */
|
|
/* loaded from: classes5.dex */
|
|
public final class C12124esL extends RecyclerView.Sts<RVV> {
|
|
private final InterfaceC12824fIT a;
|
|
private final List<C16636pr> e;
|
|
|
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
|
public final /* synthetic */ void onBindViewHolder(RVV rvv, final int i) {
|
|
RVV rvv2 = rvv;
|
|
C14957gcv.e(rvv2, "");
|
|
rvv2.ane_(this.e.get(i), new View.OnClickListener(this, i) { // from class: o.esK
|
|
private C12124esL c;
|
|
private int d;
|
|
|
|
@Override // android.view.View.OnClickListener
|
|
public final void onClick(View view) {
|
|
C12124esL.d(this.c, this.d);
|
|
}
|
|
|
|
{
|
|
this.c = this;
|
|
this.d = i;
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
|
public final /* synthetic */ RVV onCreateViewHolder(ViewGroup viewGroup, int i) {
|
|
C14957gcv.e(viewGroup, "");
|
|
View inflate = LayoutInflater.from(viewGroup.getContext()).inflate(com.scb.phone.R.layout.2131558986, viewGroup, false);
|
|
int i2 = com.scb.phone.R.id.arrow;
|
|
AppCompatImageView appCompatImageView = (AppCompatImageView) qeC.e(inflate, com.scb.phone.R.id.arrow);
|
|
if (appCompatImageView != null) {
|
|
ConstraintLayout constraintLayout = (ConstraintLayout) inflate;
|
|
i2 = com.scb.phone.R.id.icon;
|
|
AppCompatImageView appCompatImageView2 = (AppCompatImageView) qeC.e(inflate, com.scb.phone.R.id.icon);
|
|
if (appCompatImageView2 != null) {
|
|
i2 = com.scb.phone.R.id.text;
|
|
TextView textView = (TextView) qeC.e(inflate, com.scb.phone.R.id.text);
|
|
if (textView != null) {
|
|
zJD zjd = new zJD(constraintLayout, appCompatImageView, constraintLayout, appCompatImageView2, textView);
|
|
C14957gcv.c(zjd, "");
|
|
return new RVV(zjd);
|
|
}
|
|
}
|
|
}
|
|
throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i2)));
|
|
}
|
|
|
|
public C12124esL(List<C16636pr> list, InterfaceC12824fIT interfaceC12824fIT) {
|
|
C14957gcv.e(list, "");
|
|
C14957gcv.e(interfaceC12824fIT, "");
|
|
this.e = list;
|
|
this.a = interfaceC12824fIT;
|
|
}
|
|
|
|
/* renamed from: o.esL$RVV */
|
|
/* loaded from: classes5.dex */
|
|
public static final class RVV extends RecyclerView.zJl {
|
|
private static int b = 0;
|
|
private static int d = 1;
|
|
private static byte e = 6;
|
|
private final zJD c;
|
|
|
|
private void f(String str, Object[] objArr) {
|
|
byte[] decode = Base64.decode(str, 0);
|
|
byte[] bArr = new byte[decode.length];
|
|
for (int i = 0; i < decode.length; i++) {
|
|
bArr[i] = (byte) (decode[(decode.length - i) - 1] ^ e);
|
|
}
|
|
objArr[0] = new String(bArr, StandardCharsets.UTF_8);
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
/* JADX WARN: Type inference failed for: r6v3, types: [android.text.SpannableString, android.text.Spannable] */
|
|
public final void ane_(C16636pr c16636pr, View.OnClickListener onClickListener) {
|
|
int i = 2 % 2;
|
|
int i2 = d + 53;
|
|
b = i2 % 128;
|
|
int i3 = i2 % 2;
|
|
C14957gcv.e(c16636pr, "");
|
|
C14957gcv.e(onClickListener, "");
|
|
zJD zjd = this.c;
|
|
zjd.b.setImageResource(c16636pr.b);
|
|
TextView textView = zjd.c;
|
|
int i4 = c16636pr.d;
|
|
Context context = textView.getContext();
|
|
String string = context.getString(i4);
|
|
if (string.startsWith(",*,)")) {
|
|
Object[] objArr = new Object[1];
|
|
f(string.substring(4), objArr);
|
|
string = ((String) objArr[0]).intern();
|
|
CharSequence text = context.getText(i4);
|
|
if (text instanceof Spanned) {
|
|
?? spannableString = new SpannableString(string);
|
|
TextUtils.copySpansFrom((SpannedString) text, 0, string.length(), Object.class, spannableString, 0);
|
|
string = spannableString;
|
|
}
|
|
}
|
|
textView.setText(string);
|
|
View view = this.itemView;
|
|
if (!c16636pr.c) {
|
|
view.setEnabled(false);
|
|
view.setAlpha(0.45f);
|
|
int i5 = d + 59;
|
|
b = i5 % 128;
|
|
int i6 = i5 % 2;
|
|
return;
|
|
}
|
|
int i7 = d + 19;
|
|
b = i7 % 128;
|
|
int i8 = i7 % 2;
|
|
view.setOnClickListener(onClickListener);
|
|
view.setEnabled(true);
|
|
view.setAlpha(1.0f);
|
|
}
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public RVV(zJD zjd) {
|
|
super(zjd.e);
|
|
C14957gcv.e(zjd, "");
|
|
this.c = zjd;
|
|
}
|
|
}
|
|
|
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
|
public final int getItemCount() {
|
|
return this.e.size();
|
|
}
|
|
|
|
/* renamed from: o.esL$Sts */
|
|
/* loaded from: classes5.dex */
|
|
public static final class Sts {
|
|
private Sts() {
|
|
}
|
|
|
|
public /* synthetic */ Sts(byte b) {
|
|
this();
|
|
}
|
|
}
|
|
|
|
public static /* synthetic */ void d(C12124esL c12124esL, int i) {
|
|
C14957gcv.e(c12124esL, "");
|
|
c12124esL.a.a(i);
|
|
}
|
|
|
|
static {
|
|
new Sts((byte) 0);
|
|
}
|
|
}
|