what-the-bank/sources/com/scb/phone/view/fragment/bulktransfer/SelectRecipientFromFavourit...

434 lines
16 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.fragment.bulktransfer;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.PointF;
import android.os.Bundle;
import android.os.Process;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewConfiguration;
import android.view.ViewGroup;
import android.widget.ExpandableListView;
import android.widget.TextView;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.scb.phone.R;
import com.scb.phone.view.adapter.bulktransfer.SelectRecipientFromFavouriteAdapter;
import com.scb.phone.view.custom.common.DefaultButton;
import java.lang.reflect.Method;
import java.util.List;
import net.sf.scuba.smartcards.ISO7816;
import o.C10457eEr;
import o.C12102erq;
import o.C2782alB;
import o.FU;
import o.GEP;
import o.InterfaceC1244Ytw;
import o.InterfaceC13391fZD;
import o.InterfaceC6636cYn;
import o.PRA;
import o.YKU;
import o.ZI;
import o.eIB;
import o.iNh;
import o.jTb;
import o.pZV;
import o.wxK;
import o.xzZ;
import org.bouncycastle.crypto.tls.CipherSuite;
/* loaded from: classes5.dex */
public class SelectRecipientFromFavouriteFragment extends Hilt_SelectRecipientFromFavouriteFragment implements InterfaceC6636cYn.dAO {
@BindView
DefaultButton addButton;
@BindView
View emptyCard;
@BindView
TextView favouriteSuggestion;
@BindView
TextView favouriteTitle;
@BindView
RecyclerView recyclerView;
@InterfaceC13391fZD
public C2782alB selectRecipientFromFavouritePresenter;
private static final byte[] $$a = {80, 41, ISO7816.INS_UPDATE_RECORD, 94};
private static final int $$b = CipherSuite.TLS_PSK_WITH_AES_256_CBC_SHA384;
private static int $10 = 0;
private static int $11 = 1;
private static int f = 0;
private static int g = 1;
private static char d = 21574;
private static char c = 46966;
private static char h = 2159;
private static char i = 4363;
/* JADX WARN: Removed duplicated region for block: B:10:0x0024 */
/* JADX WARN: Removed duplicated region for block: B:7:0x001c */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0024 -> B:4:0x0028). 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 m(int r5, int r6, byte r7, java.lang.Object[] r8) {
/*
int r7 = r7 * 2
int r7 = 3 - r7
byte[] r0 = com.scb.phone.view.fragment.bulktransfer.SelectRecipientFromFavouriteFragment.$$a
int r6 = r6 * 2
int r1 = r6 + 1
int r5 = 67 - r5
byte[] r1 = new byte[r1]
r2 = 0
if (r0 != 0) goto L14
r4 = r6
r3 = r2
goto L28
L14:
r3 = r2
L15:
byte r4 = (byte) r5
r1[r3] = r4
int r7 = r7 + 1
if (r3 != r6) goto L24
java.lang.String r5 = new java.lang.String
r5.<init>(r1, r2)
r8[r2] = r5
return
L24:
int r3 = r3 + 1
r4 = r0[r7]
L28:
int r5 = r5 + r4
goto L15
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.fragment.bulktransfer.SelectRecipientFromFavouriteFragment.m(int, int, byte, java.lang.Object[]):void");
}
public static SelectRecipientFromFavouriteFragment e(String str, int i2) {
int i3 = 2 % 2;
SelectRecipientFromFavouriteFragment selectRecipientFromFavouriteFragment = new SelectRecipientFromFavouriteFragment();
Bundle bundle = new Bundle();
bundle.putSerializable("com.scb.phone.EXTRA_GROUP_ID", str);
bundle.putInt("com.scb.phone.EXTRA_NUM_RECIPIENTS", i2);
selectRecipientFromFavouriteFragment.setArguments(bundle);
int i4 = g + 125;
f = i4 % 128;
if (i4 % 2 == 0) {
return selectRecipientFromFavouriteFragment;
}
throw null;
}
@Override // androidx.fragment.app.Fragment
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
int i2 = 2 % 2;
byte b = 0;
View inflate = layoutInflater.inflate(R.layout.2131559908, viewGroup, false);
ButterKnife.c(this, inflate);
this.selectRecipientFromFavouritePresenter.e((C2782alB) this);
C2782alB c2782alB = this.selectRecipientFromFavouritePresenter;
int i3 = getArguments().getInt("com.scb.phone.EXTRA_NUM_RECIPIENTS", 0);
ZI.IeS ieS = new ZI.IeS() { // from class: o.aly
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC6636cYn.dAO) obj).d();
}
};
if (c2782alB.f != 0) {
int i4 = g + 81;
f = i4 % 128;
if (i4 % 2 == 0) {
ieS.e(c2782alB.f);
int i5 = f + 63;
g = i5 % 128;
int i6 = i5 % 2;
}
}
c2782alB.d = i3;
if (c2782alB.f != 0) {
int i7 = f + 23;
g = i7 % 128;
if (i7 % 2 == 0) {
c2782alB.f.y();
Object obj = null;
obj.hashCode();
throw null;
}
c2782alB.f.y();
}
c2782alB.b.d();
iNh inh = c2782alB.b;
inh.d(inh.i, new C2782alB.IeS(c2782alB, b));
return inflate;
}
@OnClick
public void onAddButtonClick() {
int i2 = 2 % 2;
YKU yku = new YKU(((SelectRecipientFromFavouriteAdapter) this.recyclerView.g).c);
List list = (List) new YKU(yku.a, new GEP(yku.b, new C12102erq())).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8()));
C2782alB c2782alB = this.selectRecipientFromFavouritePresenter;
String string = getArguments().getString("com.scb.phone.EXTRA_GROUP_ID");
if (c2782alB.f != 0) {
int i3 = f + 107;
g = i3 % 128;
int i4 = i3 % 2;
c2782alB.f.y();
int i5 = f + 113;
g = i5 % 128;
int i6 = i5 % 2;
}
iNh inh = c2782alB.b;
pZV d2 = pZV.d();
d2.e = string;
YKU yku2 = new YKU(list);
d2.d = (List) new YKU(yku2.a, new wxK(yku2.b, new InterfaceC1244Ytw(c2782alB) { // from class: o.alH
private C2782alB a;
@Override // o.InterfaceC1244Ytw
public final Object d(Object obj) {
return C2782alB.e((FU) obj);
}
{
this.a = c2782alB;
}
})).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8()));
inh.c(d2);
iNh inh2 = c2782alB.b;
inh2.d(inh2.i, new C2782alB.HBt(c2782alB, (byte) 0));
}
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
public void onDestroy() {
int i2 = 2 % 2;
int i3 = f + 29;
g = i3 % 128;
if (i3 % 2 == 0) {
super.onDestroy();
this.selectRecipientFromFavouritePresenter.w_();
int i4 = 35 / 0;
} else {
super.onDestroy();
this.selectRecipientFromFavouritePresenter.w_();
}
}
@Override // o.InterfaceC6636cYn.dAO
public final void c(List<FU> list, String str) {
int i2 = 2 % 2;
this.favouriteTitle.setText(getString(R.string.favorite_transfer_title, str));
this.emptyCard.setVisibility(8);
this.recyclerView.setVisibility(0);
SelectRecipientFromFavouriteAdapter selectRecipientFromFavouriteAdapter = new SelectRecipientFromFavouriteAdapter(list, this.selectRecipientFromFavouritePresenter.d, new eIB(this));
RecyclerView recyclerView = this.recyclerView;
getContext();
recyclerView.setLayoutManager(new GridLayoutManager(4, (byte) 0));
this.recyclerView.setAdapter(selectRecipientFromFavouriteAdapter);
int i3 = f + 71;
g = i3 % 128;
if (i3 % 2 == 0) {
int i4 = 49 / 0;
}
}
@Override // o.InterfaceC6636cYn.dAO
public final void a() {
int i2 = 2 % 2;
C10457eEr.aqd_(this, new Intent("com.scb.phone/BROADCAST_RELOAD_MANAGE_RECIPIENTS_GROUP_BULK_TRANSFER"));
getActivity().finish();
int i3 = g + 33;
f = i3 % 128;
int i4 = i3 % 2;
}
public static /* synthetic */ Object d(Object[] objArr) {
TextView textView;
String string;
SelectRecipientFromFavouriteFragment selectRecipientFromFavouriteFragment = (SelectRecipientFromFavouriteFragment) objArr[0];
int i2 = 2 % 2;
int i3 = g + 77;
f = i3 % 128;
if (i3 % 2 != 0) {
textView = selectRecipientFromFavouriteFragment.favouriteTitle;
Object[] objArr2 = new Object[0];
Object[] objArr3 = new Object[1];
n(new char[]{26745, 60794}, -(ExpandableListView.getPackedPositionForChild(1, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(1, 0) == 0L ? 0 : -1)), objArr3);
objArr2[0] = ((String) objArr3[0]).intern();
string = selectRecipientFromFavouriteFragment.getString(R.string.favorite_transfer_title, objArr2);
} else {
textView = selectRecipientFromFavouriteFragment.favouriteTitle;
Object[] objArr4 = new Object[1];
n(new char[]{26745, 60794}, -(ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)), objArr4);
string = selectRecipientFromFavouriteFragment.getString(R.string.favorite_transfer_title, ((String) objArr4[0]).intern());
}
textView.setText(string);
int i4 = f + 35;
g = i4 % 128;
Object obj = null;
if (i4 % 2 != 0) {
return null;
}
obj.hashCode();
throw null;
}
private static void n(char[] cArr, int i2, Object[] objArr) {
int i3;
int i4 = 2 % 2;
jTb jtb = new jTb();
char[] cArr2 = new char[cArr.length];
int i5 = 0;
jtb.b = 0;
char[] cArr3 = new char[2];
while (jtb.b < cArr.length) {
int i6 = $10 + 15;
$11 = i6 % 128;
int i7 = 58224;
int i8 = 1;
if (i6 % 2 == 0) {
cArr3[1] = cArr[jtb.b];
cArr3[i5] = cArr[jtb.b - 1];
i3 = 1;
} else {
cArr3[i5] = cArr[jtb.b];
cArr3[1] = cArr[jtb.b + 1];
i3 = i5;
}
while (i3 < 16) {
int i9 = $10 + 121;
$11 = i9 % 128;
int i10 = i9 % 2;
char c2 = cArr3[i8];
char c3 = cArr3[i5];
char[] cArr4 = cArr3;
int i11 = (c3 + i7) ^ ((c3 << 4) + ((char) (h ^ 41718355337583039L)));
int i12 = c3 >>> 5;
try {
Object[] objArr2 = new Object[4];
objArr2[3] = Integer.valueOf(i);
objArr2[2] = Integer.valueOf(i12);
objArr2[i8] = Integer.valueOf(i11);
objArr2[0] = Integer.valueOf(c2);
Object obj = xzZ.y.get(597144044);
if (obj == null) {
Class cls = (Class) xzZ.c(Process.getGidForName("") + 413, 5 - (PointF.length(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (PointF.length(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (char) TextUtils.getOffsetAfter("", 0));
byte b = (byte) ($$b & i8);
byte b2 = (byte) (b - 1);
Object[] objArr3 = new Object[i8];
m(b, b2, b2, objArr3);
String str = (String) objArr3[0];
Class<?>[] clsArr = new Class[4];
clsArr[0] = Integer.TYPE;
clsArr[i8] = Integer.TYPE;
clsArr[2] = Integer.TYPE;
clsArr[3] = Integer.TYPE;
obj = cls.getMethod(str, clsArr);
xzZ.y.put(597144044, obj);
}
char charValue = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
cArr4[i8] = charValue;
Object[] objArr4 = {Integer.valueOf(cArr4[0]), Integer.valueOf((charValue + i7) ^ ((charValue << 4) + ((char) (d ^ 41718355337583039L)))), Integer.valueOf(charValue >>> 5), Integer.valueOf(c)};
Object obj2 = xzZ.y.get(597144044);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(412 - TextUtils.indexOf("", ""), Color.red(0) + 5, (char) ((-1) - TextUtils.indexOf((CharSequence) "", '0', 0, 0)));
byte b3 = (byte) ($$b & 1);
byte b4 = (byte) (b3 - 1);
Object[] objArr5 = new Object[1];
m(b3, b4, b4, objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE, Integer.TYPE, Integer.TYPE, Integer.TYPE);
xzZ.y.put(597144044, obj2);
}
cArr4[0] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue();
i7 -= 40503;
i3++;
cArr3 = cArr4;
i5 = 0;
i8 = 1;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
char[] cArr5 = cArr3;
cArr2[jtb.b] = cArr5[0];
cArr2[jtb.b + 1] = cArr5[1];
Object[] objArr6 = {jtb, jtb};
Object obj3 = xzZ.y.get(943004485);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c(TextUtils.getOffsetBefore("", 0) + 98, (ViewConfiguration.getMinimumFlingVelocity() >> 16) + 5, (char) (ViewConfiguration.getLongPressTimeout() >> 16));
byte b5 = (byte) 0;
byte b6 = b5;
Object[] objArr7 = new Object[1];
m(b5, b6, b6, objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class);
xzZ.y.put(943004485, obj3);
}
((Method) obj3).invoke(null, objArr6);
cArr3 = cArr5;
i5 = 0;
}
objArr[0] = new String(cArr2, 0, i2);
}
private void c(boolean z) {
int i2 = 2 % 2;
int i3 = f + 107;
g = i3 % 128;
if (i3 % 2 != 0) {
this.addButton.setButtonEnabled(z);
} else {
this.addButton.setButtonEnabled(z);
int i4 = 57 / 0;
}
}
@Override // o.InterfaceC6636cYn.dAO
public final void b() {
int i2 = 2 % 2;
int i3 = g + 67;
f = i3 % 128;
int i4 = i3 % 2;
this.favouriteSuggestion.setText(R.string.favorite_add_suggestion_bulk_transfer);
this.emptyCard.setVisibility(0);
this.recyclerView.setVisibility(8);
int i5 = g + 51;
f = i5 % 128;
if (i5 % 2 != 0) {
int i6 = 84 / 0;
}
}
@Override // o.InterfaceC6636cYn.dAO
public final void d() {
System.identityHashCode(this);
d(new Object[]{this});
}
public static /* synthetic */ void b(SelectRecipientFromFavouriteFragment selectRecipientFromFavouriteFragment, boolean z) {
int i2 = 2 % 2;
int i3 = f + 25;
g = i3 % 128;
int i4 = i3 % 2;
selectRecipientFromFavouriteFragment.c(z);
if (i4 == 0) {
int i5 = 16 / 0;
}
}
}