what-the-bank/sources/com/scb/phone/view/adapter/loan/SmeLoanDetailPnItemAdapter....

368 lines
15 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.adapter.loan;
import android.content.Context;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewConfiguration;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.recyclerview.widget.RecyclerView;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.Unbinder;
import com.google.common.base.Ascii;
import com.scb.phone.R;
import com.scb.phone.view.adapter.loan.SmeLoanDetailPnItemAdapter;
import java.lang.reflect.Method;
import java.util.List;
import net.sf.scuba.smartcards.ISOFileInfo;
import o.AbstractC12339ewO;
import o.AbstractC5347brN;
import o.C0394Fo;
import o.C16148leh;
import o.C4593bdB;
import o.pyT;
import o.xzZ;
import org.bouncycastle.crypto.tls.CipherSuite;
/* loaded from: classes5.dex */
public final class SmeLoanDetailPnItemAdapter extends AbstractC12339ewO {
private View.OnClickListener a;
private List<C0394Fo> e;
/* loaded from: classes5.dex */
public class ChildViewHolder_ViewBinding implements Unbinder {
private ChildViewHolder d;
public ChildViewHolder_ViewBinding(ChildViewHolder childViewHolder, View view) {
this.d = childViewHolder;
childViewHolder.textPnNextPaymentAmountValue = (TextView) pyT.e(view, R.id.text_pn_next_payment_amount_value, "field 'textPnNextPaymentAmountValue'", TextView.class);
childViewHolder.textPnInterestRateValue = (TextView) pyT.e(view, R.id.text_pn_interest_rate_value, "field 'textPnInterestRateValue'", TextView.class);
childViewHolder.textPnNextPaymentDateValue = (TextView) pyT.e(view, R.id.text_pn_next_payment_date_value, "field 'textPnNextPaymentDateValue'", TextView.class);
childViewHolder.textPnStartDateValue = (TextView) pyT.e(view, R.id.text_pn_start_date_value, "field 'textPnStartDateValue'", TextView.class);
}
@Override // butterknife.Unbinder
public final void a() {
ChildViewHolder childViewHolder = this.d;
if (childViewHolder == null) {
throw new IllegalStateException("Bindings already cleared.");
}
this.d = null;
childViewHolder.textPnNextPaymentAmountValue = null;
childViewHolder.textPnInterestRateValue = null;
childViewHolder.textPnNextPaymentDateValue = null;
childViewHolder.textPnStartDateValue = null;
}
}
/* loaded from: classes5.dex */
public class GroupItemViewHolder_ViewBinding implements Unbinder {
private GroupItemViewHolder d;
public GroupItemViewHolder_ViewBinding(GroupItemViewHolder groupItemViewHolder, View view) {
this.d = groupItemViewHolder;
groupItemViewHolder.container = pyT.a(view, R.id.container, "field 'container'");
groupItemViewHolder.textTitle = (TextView) pyT.e(view, R.id.text_title, "field 'textTitle'", TextView.class);
groupItemViewHolder.textAmount = (TextView) pyT.e(view, R.id.text_amount, "field 'textAmount'", TextView.class);
groupItemViewHolder.textPaidOffStatus = (TextView) pyT.e(view, R.id.text_paid_off_status, "field 'textPaidOffStatus'", TextView.class);
groupItemViewHolder.textTimestamp = (TextView) pyT.e(view, R.id.text_timestamp, "field 'textTimestamp'", TextView.class);
groupItemViewHolder.expandIcon = (ImageView) pyT.e(view, R.id.expand_icon_image_view, "field 'expandIcon'", ImageView.class);
}
@Override // butterknife.Unbinder
public final void a() {
GroupItemViewHolder groupItemViewHolder = this.d;
if (groupItemViewHolder == null) {
throw new IllegalStateException("Bindings already cleared.");
}
this.d = null;
groupItemViewHolder.container = null;
groupItemViewHolder.textTitle = null;
groupItemViewHolder.textAmount = null;
groupItemViewHolder.textPaidOffStatus = null;
groupItemViewHolder.textTimestamp = null;
groupItemViewHolder.expandIcon = null;
}
}
public SmeLoanDetailPnItemAdapter(Context context, C16148leh c16148leh, List<C0394Fo> list) {
super(context, c16148leh);
this.e = list;
this.a = new View.OnClickListener(this) { // from class: o.ewV
private SmeLoanDetailPnItemAdapter c;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
this.c.d(view);
}
{
this.c = this;
}
};
}
@Override // o.Qpt
public final int d() {
return this.e.size();
}
@Override // o.Qpt
public final RecyclerView.zJl anX_(ViewGroup viewGroup, int i) {
return new GroupItemViewHolder(this, LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131559238, viewGroup, false), this.a);
}
@Override // o.Qpt
public final RecyclerView.zJl anW_(ViewGroup viewGroup, int i) {
return new ChildViewHolder(this, LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131559239, viewGroup, false));
}
@Override // o.Qpt
public final void d(RecyclerView.zJl zjl, int i) {
if (zjl instanceof GroupItemViewHolder) {
((GroupItemViewHolder) zjl).a(i);
}
}
@Override // o.Qpt
public final void c(RecyclerView.zJl zjl, int i, int i2) {
if (zjl instanceof ChildViewHolder) {
ChildViewHolder childViewHolder = (ChildViewHolder) zjl;
C0394Fo c0394Fo = childViewHolder.a.e.get(i);
childViewHolder.textPnNextPaymentAmountValue.setText(c0394Fo.c);
childViewHolder.textPnInterestRateValue.setText(c0394Fo.e);
childViewHolder.textPnNextPaymentDateValue.setText(c0394Fo.b);
childViewHolder.textPnStartDateValue.setText(c0394Fo.f);
}
}
/* loaded from: classes5.dex */
class GroupItemViewHolder extends AbstractC5347brN {
private SmeLoanDetailPnItemAdapter b;
@BindView
View container;
@BindView
ImageView expandIcon;
@BindView
TextView textAmount;
@BindView
TextView textPaidOffStatus;
@BindView
TextView textTimestamp;
@BindView
TextView textTitle;
private static final byte[] $$a = {Ascii.DC2, 10, ISOFileInfo.FCI_BYTE, -108};
private static final int $$b = CipherSuite.TLS_DH_anon_WITH_AES_256_GCM_SHA384;
private static int $10 = 0;
private static int $11 = 1;
private static int e = 0;
private static int a = 1;
private static long d = -92829857797807859L;
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Removed duplicated region for block: B:10:0x0024 */
/* JADX WARN: Removed duplicated region for block: B:7:0x001c */
/* JADX WARN: Type inference failed for: r7v2, types: [int] */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0024 -> B:4:0x0026). Please report as a decompilation issue!!! */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static void g(byte r6, short r7, int r8, java.lang.Object[] r9) {
/*
int r7 = r7 * 4
int r7 = r7 + 4
int r8 = r8 * 4
int r8 = r8 + 1
byte[] r0 = com.scb.phone.view.adapter.loan.SmeLoanDetailPnItemAdapter.GroupItemViewHolder.$$a
int r6 = 78 - r6
byte[] r1 = new byte[r8]
r2 = 0
if (r0 != 0) goto L14
r3 = r7
r4 = r2
goto L26
L14:
r3 = r2
L15:
int r4 = r3 + 1
byte r5 = (byte) r6
r1[r3] = r5
if (r4 != r8) goto L24
java.lang.String r6 = new java.lang.String
r6.<init>(r1, r2)
r9[r2] = r6
return
L24:
r3 = r0[r7]
L26:
int r7 = r7 + 1
int r3 = -r3
int r6 = r6 + r3
r3 = r4
goto L15
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.adapter.loan.SmeLoanDetailPnItemAdapter.GroupItemViewHolder.g(byte, short, int, java.lang.Object[]):void");
}
private static void f(char[] cArr, int i, Object[] objArr) {
int i2 = 2 % 2;
C4593bdB c4593bdB = new C4593bdB();
c4593bdB.a = i;
int length = cArr.length;
long[] jArr = new long[length];
c4593bdB.e = 0;
while (c4593bdB.e < cArr.length) {
int i3 = $11 + 51;
$10 = i3 % 128;
int i4 = i3 % 2;
int i5 = c4593bdB.e;
try {
Object[] objArr2 = {Integer.valueOf(cArr[c4593bdB.e]), c4593bdB, c4593bdB};
Object obj = xzZ.y.get(-1229953068);
if (obj == null) {
Class cls = (Class) xzZ.c(402 - KeyEvent.normalizeMetaState(0), 5 - Color.red(0), (char) (21608 - View.MeasureSpec.getMode(0)));
byte b = (byte) ($$b & 1);
byte b2 = (byte) (b - 1);
Object[] objArr3 = new Object[1];
g(b, b2, b2, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Object.class, Object.class);
xzZ.y.put(-1229953068, obj);
}
jArr[i5] = ((Long) ((Method) obj).invoke(null, objArr2)).longValue() ^ (d ^ (-6958928035870403642L));
Object[] objArr4 = {c4593bdB, c4593bdB};
Object obj2 = xzZ.y.get(-1143917229);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(238 - (ViewConfiguration.getScrollBarFadeDuration() >> 16), 5 - KeyEvent.getDeadChar(0, 0), (char) (ViewConfiguration.getWindowTouchSlop() >> 8));
byte b3 = (byte) 0;
byte b4 = b3;
Object[] objArr5 = new Object[1];
g(b3, b4, b4, objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class);
xzZ.y.put(-1143917229, obj2);
}
((Method) obj2).invoke(null, objArr4);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
char[] cArr2 = new char[length];
c4593bdB.e = 0;
while (c4593bdB.e < cArr.length) {
int i6 = $11 + 61;
$10 = i6 % 128;
int i7 = i6 % 2;
cArr2[c4593bdB.e] = (char) jArr[c4593bdB.e];
Object[] objArr6 = {c4593bdB, c4593bdB};
Object obj3 = xzZ.y.get(-1143917229);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c((ViewConfiguration.getLongPressTimeout() >> 16) + 238, 5 - Drawable.resolveOpacity(0, 0), (char) (ViewConfiguration.getJumpTapTimeout() >> 16));
byte b5 = (byte) 0;
byte b6 = b5;
Object[] objArr7 = new Object[1];
g(b5, b6, b6, objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class);
xzZ.y.put(-1143917229, obj3);
}
((Method) obj3).invoke(null, objArr6);
}
objArr[0] = new String(cArr2);
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
GroupItemViewHolder(SmeLoanDetailPnItemAdapter smeLoanDetailPnItemAdapter, View view, View.OnClickListener onClickListener) {
super(view);
this.b = smeLoanDetailPnItemAdapter;
ButterKnife.c(this, view);
this.container.setOnClickListener(onClickListener);
}
final void a(int i) {
int i2 = 2 % 2;
int i3 = e + 109;
a = i3 % 128;
int i4 = i3 % 2;
C0394Fo c0394Fo = (C0394Fo) this.b.e.get(i);
this.textTitle.setText(c0394Fo.d);
this.textAmount.setText(c0394Fo.i);
this.textTimestamp.setText(c0394Fo.a);
TextView textView = this.textPaidOffStatus;
int i5 = 0;
Object[] objArr = new Object[1];
f(new char[]{29434}, (ViewConfiguration.getScrollBarSize() >> 8) + 5179, objArr);
if (!((String) objArr[0]).intern().equals(c0394Fo.j)) {
int i6 = e + 85;
a = i6 % 128;
int i7 = i6 % 2;
i5 = 8;
}
textView.setVisibility(i5);
a();
}
private void a() {
int i;
int i2 = 2 % 2;
int i3 = this.c.b;
if ((Integer.MIN_VALUE & i3) != 0) {
int i4 = a;
int i5 = i4 + 5;
int i6 = i5 % 128;
e = i6;
int i7 = i5 % 2;
if ((i3 & 4) != 0) {
int i8 = i4 + 69;
e = i8 % 128;
int i9 = i8 % 2;
i = R.drawable.ic_expand_less_black_24dp;
} else {
int i10 = i6 + 79;
a = i10 % 128;
int i11 = i10 % 2;
i = R.drawable.ic_expand_more_black_24dp;
}
this.expandIcon.setImageResource(i);
}
}
}
/* loaded from: classes5.dex */
class ChildViewHolder extends AbstractC5347brN {
final SmeLoanDetailPnItemAdapter a;
@BindView
TextView textPnInterestRateValue;
@BindView
TextView textPnNextPaymentAmountValue;
@BindView
TextView textPnNextPaymentDateValue;
@BindView
TextView textPnStartDateValue;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
ChildViewHolder(SmeLoanDetailPnItemAdapter smeLoanDetailPnItemAdapter, View view) {
super(view);
this.a = smeLoanDetailPnItemAdapter;
ButterKnife.c(this, view);
}
}
}