what-the-bank/sources/com/scb/phone/view/activity/transferandpay/EditFavouriteActivity.java

450 lines
21 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.activity.transferandpay;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.media.AudioTrack;
import android.os.SystemClock;
import android.text.TextUtils;
import android.view.Gravity;
import android.view.KeyEvent;
import android.view.Menu;
import android.view.MenuItem;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.kofax.mobile.sdk._internal.impl.extraction.kta.KtaJsonExactionHelper;
import com.scb.phone.R;
import com.scb.phone.view.activity.remittance.RemittanceLandingActivity;
import com.scb.phone.view.activity.transferandpay.transfer.AddFavoriteTransferActivity;
import java.lang.reflect.Method;
import o.AbstractActivityC11917eoQ;
import o.C4593bdB;
import o.EnumC8951daY;
import o.GuL;
import o.VD;
import o.xzZ;
/* loaded from: classes5.dex */
public class EditFavouriteActivity extends AbstractActivityC11917eoQ {
/* renamed from: o, reason: collision with root package name */
private String f7966o;
private static final byte[] $$g = {105, 77, -86, 73};
private static final int $$h = 76;
private static int $10 = 0;
private static int $11 = 1;
private static int l = 0;
private static int t = 1;
private static long m = -5205905329052257748L;
private static long k = 1944895187120197949L;
/* 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:0x002d). 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 az(int r6, short r7, byte r8, java.lang.Object[] r9) {
/*
byte[] r0 = com.scb.phone.view.activity.transferandpay.EditFavouriteActivity.$$g
int r7 = r7 * 4
int r1 = 1 - r7
int r6 = 121 - r6
int r8 = r8 + 4
byte[] r1 = new byte[r1]
r2 = 0
int r7 = 0 - r7
if (r0 != 0) goto L14
r3 = r8
r4 = r2
goto L2d
L14:
r3 = r2
L15:
byte r4 = (byte) r6
r1[r3] = r4
int r8 = r8 + 1
if (r3 != r7) goto L24
java.lang.String r6 = new java.lang.String
r6.<init>(r1, r2)
r9[r2] = r6
return
L24:
int r3 = r3 + 1
r4 = r0[r8]
r5 = r8
r8 = r6
r6 = r4
r4 = r3
r3 = r5
L2d:
int r6 = r6 + r8
r8 = r3
r3 = r4
goto L15
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.transferandpay.EditFavouriteActivity.az(int, short, byte, java.lang.Object[]):void");
}
private static void ay(char[] cArr, int i, Object[] objArr) {
int i2 = 2 % 2;
GuL guL = new GuL();
char[] a = GuL.a(k ^ (-7538262848231253921L), cArr, i);
guL.a = 4;
int i3 = $10 + 109;
$11 = i3 % 128;
int i4 = i3 % 2;
while (guL.a < a.length) {
int i5 = $11 + 49;
$10 = i5 % 128;
int i6 = i5 % 2;
guL.c = guL.a - 4;
int i7 = guL.a;
try {
Object[] objArr2 = {Long.valueOf(a[guL.a] ^ a[guL.a % 4]), Long.valueOf(guL.c), Long.valueOf(k)};
Object obj = xzZ.y.get(428080616);
if (obj == null) {
Class cls = (Class) xzZ.c(TextUtils.indexOf("", "", 0) + 208, Color.rgb(0, 0, 0) + 16777221, (char) (Color.alpha(0) + 1706));
byte b = (byte) 2;
byte b2 = (byte) (b - 2);
Object[] objArr3 = new Object[1];
az(b, b2, (byte) (b2 - 1), objArr3);
obj = cls.getMethod((String) objArr3[0], Long.TYPE, Long.TYPE, Long.TYPE);
xzZ.y.put(428080616, obj);
}
a[i7] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
Object[] objArr4 = {guL, guL};
Object obj2 = xzZ.y.get(-1875914398);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c((ViewConfiguration.getPressedStateDuration() >> 16) + 392, 5 - (ViewConfiguration.getScrollBarSize() >> 8), (char) (ViewConfiguration.getWindowTouchSlop() >> 8));
byte b3 = (byte) 0;
byte b4 = b3;
Object[] objArr5 = new Object[1];
az(b3, b4, (byte) (b4 - 1), objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class);
xzZ.y.put(-1875914398, obj2);
}
((Method) obj2).invoke(null, objArr4);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
objArr[0] = new String(a, 4, a.length - 4);
}
private static void ax(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;
int i3 = $11 + 19;
$10 = i3 % 128;
if (i3 % 2 != 0) {
int i4 = 3 % 3;
}
while (c4593bdB.e < cArr.length) {
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(KeyEvent.getDeadChar(0, 0) + 402, 5 - KeyEvent.keyCodeFromString(""), (char) (21608 - TextUtils.getOffsetAfter("", 0)));
byte b = (byte) 0;
Object[] objArr3 = new Object[1];
az((byte) 44, b, (byte) (b - 1), 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() ^ (m ^ (-6958928035870403642L));
Object[] objArr4 = {c4593bdB, c4593bdB};
Object obj2 = xzZ.y.get(-1143917229);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(238 - KeyEvent.keyCodeFromString(""), (AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 4, (char) View.MeasureSpec.getMode(0));
byte b2 = (byte) 0;
Object[] objArr5 = new Object[1];
az((byte) 43, b2, (byte) (b2 - 1), objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class);
xzZ.y.put(-1143917229, obj2);
}
((Method) obj2).invoke(null, objArr4);
int i6 = $11 + 17;
$10 = i6 % 128;
int i7 = i6 % 2;
} 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 i8 = $10 + 85;
$11 = i8 % 128;
int i9 = i8 % 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((SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)) + 237, 5 - TextUtils.getCapsMode("", 0, 0), (char) TextUtils.indexOf("", ""));
byte b3 = (byte) 0;
Object[] objArr7 = new Object[1];
az((byte) 43, b3, (byte) (b3 - 1), 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: Code restructure failed: missing block: B:4:0x00af, code lost:
if (r2 > 99999) goto L6;
*/
@Override // o.AbstractActivityC11917eoQ, com.scb.phone.view.activity.BaseActivity, com.scb.phone.view.activity.PreLoadCheckActivity, com.akexorcist.localizationactivity.LocalizationActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public void onCreate(android.os.Bundle r19) {
/*
Method dump skipped, instructions count: 1392
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.transferandpay.EditFavouriteActivity.onCreate(android.os.Bundle):void");
}
@Override // com.scb.phone.view.activity.BaseActivity, android.app.Activity
public boolean onCreateOptionsMenu(Menu menu) {
int i = 2 % 2;
if (!"TRANSFER".equals(this.f7966o)) {
return true;
}
int i2 = l + 29;
t = i2 % 128;
if (i2 % 2 == 0) {
getMenuInflater().inflate(R.menu.2131689472, menu);
throw null;
}
getMenuInflater().inflate(R.menu.2131689472, menu);
int i3 = t + 41;
l = i3 % 128;
if (i3 % 2 == 0) {
return true;
}
int i4 = 4 % 2;
return true;
}
@Override // com.scb.phone.view.activity.BaseActivity, android.app.Activity
public boolean onOptionsItemSelected(MenuItem menuItem) {
Intent alz_;
int i;
int i2 = 2 % 2;
int i3 = t + 117;
l = i3 % 128;
if (i3 % 2 != 0) {
menuItem.getItemId();
throw null;
}
if (menuItem.getItemId() != R.id.menu_add_favorite) {
return super.onOptionsItemSelected(menuItem);
}
if ("TRANSFER".equals(this.f7966o)) {
startActivityForResult(new Intent(this, (Class<?>) AddFavoriteTransferActivity.class), 101);
} else if ("REMITTANCE".equals(this.f7966o)) {
int i4 = l + 79;
t = i4 % 128;
if (i4 % 2 == 0) {
alz_ = RemittanceLandingActivity.alz_(this, VD.ADD_FAVOURITE);
i = 75;
} else {
alz_ = RemittanceLandingActivity.alz_(this, VD.ADD_FAVOURITE);
i = 102;
}
startActivityForResult(alz_, i);
int i5 = l + 1;
t = i5 % 128;
int i6 = i5 % 2;
}
return true;
}
@Override // com.scb.phone.view.activity.BaseActivity, com.scb.phone.view.activity.PreLoadCheckActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, android.app.Activity
public void onActivityResult(int i, int i2, Intent intent) {
int i3 = 2 % 2;
if (i == 101 && i2 == -1) {
Xb_(this, R.id.success_view_container, getString(R.string.new_favorite_success), EnumC8951daY.SUCCESS);
return;
}
if (i == 102) {
int i4 = l;
int i5 = i4 + 1;
t = i5 % 128;
if (i5 % 2 == 0) {
throw null;
}
if (i2 == -1) {
int i6 = i4 + 9;
t = i6 % 128;
if (i6 % 2 != 0) {
Xb_(this, R.id.success_view_container, getString(R.string.new_remittance_favorite_success), EnumC8951daY.SUCCESS);
} else {
Xb_(this, R.id.success_view_container, getString(R.string.new_remittance_favorite_success), EnumC8951daY.SUCCESS);
throw null;
}
}
}
}
@Override // o.AbstractActivityC11917eoQ, com.scb.phone.view.activity.BaseActivity, com.scb.phone.view.activity.PreLoadCheckActivity, com.akexorcist.localizationactivity.LocalizationActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity
public void onResume() {
int i = 2 % 2;
Context baseContext = getBaseContext();
if (baseContext == null) {
int i2 = l + 47;
t = i2 % 128;
int i3 = i2 % 2;
Object[] objArr = new Object[1];
ay(new char[]{63053, 63020, 12919, 32753, 7077, 31611, 60753, 51185, 54186, 23796, 51161, 6693, 48444, 42613, 41557, 15549, 34452, 35822, 31961, 22386, 24603, 60828, 22369, 27034, 19889, 14101, 12783, 35854, 5916, 6273}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() - 13, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
ay(new char[]{4051, 4016, 32196, 32578, 44428, 13523, 60916, 29144, 10814, 4928, 51066, 44131, 17587, 59846, 41722, 35539, 32552, 50271, 31850, 57691, 39324, 41512}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.idp_share_information_cancellation_label_clickable).substring(0, 1).length() - 1, objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
int i4 = l + 103;
t = i4 % 128;
if (i4 % 2 == 0) {
baseContext = baseContext.getApplicationContext();
int i5 = 77 / 0;
} else {
baseContext = baseContext.getApplicationContext();
}
}
if (baseContext != null) {
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(492 - Drawable.resolveOpacity(0, 0), 5 - Color.red(0), (char) (1 - (SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1))))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr3 = {baseContext};
Object obj2 = xzZ.y.get(1378719468);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(KeyEvent.keyCodeFromString("") + 487, 4 - MotionEvent.axisFromString(""), (char) View.resolveSizeAndState(0, 0, 0))).getMethod(KtaJsonExactionHelper.OBJECT, Context.class);
xzZ.y.put(1378719468, obj2);
}
((Method) obj2).invoke(invoke, objArr3);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
super.onResume();
int i6 = t + 121;
l = i6 % 128;
int i7 = i6 % 2;
}
@Override // o.AbstractActivityC11917eoQ, com.scb.phone.view.activity.BaseActivity, com.scb.phone.view.activity.PreLoadCheckActivity, com.akexorcist.localizationactivity.LocalizationActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity
public void onPause() {
int i = 2 % 2;
int i2 = t + 115;
l = i2 % 128;
Object obj = null;
if (i2 % 2 == 0) {
Context baseContext = getBaseContext();
if (baseContext == null) {
Object[] objArr = new Object[1];
ay(new char[]{63053, 63020, 12919, 32753, 7077, 31611, 60753, 51185, 54186, 23796, 51161, 6693, 48444, 42613, 41557, 15549, 34452, 35822, 31961, 22386, 24603, 60828, 22369, 27034, 19889, 14101, 12783, 35854, 5916, 6273}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.contact_info_mcmc_top_up_registration_address).substring(0, 41).length() - 41, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
ay(new char[]{4051, 4016, 32196, 32578, 44428, 13523, 60916, 29144, 10814, 4928, 51066, 44131, 17587, 59846, 41722, 35539, 32552, 50271, 31850, 57691, 39324, 41512}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 34, objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
int i3 = l + 83;
t = i3 % 128;
int i4 = i3 % 2;
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
try {
Object obj2 = xzZ.y.get(125943855);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(Color.green(0) + 492, 4 - ExpandableListView.getPackedPositionChild(0L), (char) Gravity.getAbsoluteGravity(0, 0))).getMethod("a", null);
xzZ.y.put(125943855, obj2);
}
Object invoke = ((Method) obj2).invoke(null, null);
Object[] objArr3 = {baseContext};
Object obj3 = xzZ.y.get(1633456013);
if (obj3 == null) {
obj3 = ((Class) xzZ.c(487 - (ViewConfiguration.getScrollBarFadeDuration() >> 16), Gravity.getAbsoluteGravity(0, 0) + 5, (char) (ViewConfiguration.getTouchSlop() >> 8))).getMethod("c", Context.class);
xzZ.y.put(1633456013, obj3);
}
((Method) obj3).invoke(invoke, objArr3);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
super.onPause();
return;
}
getBaseContext();
obj.hashCode();
throw null;
}
/* JADX WARN: Code restructure failed: missing block: B:4:0x0070, code lost:
if (r3 > 99999) goto L6;
*/
@Override // o.AbstractActivityC11917eoQ, com.scb.phone.view.activity.BaseActivity, com.scb.phone.view.activity.PreLoadCheckActivity, com.akexorcist.localizationactivity.LocalizationActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity, android.view.ContextThemeWrapper, android.content.ContextWrapper
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public void attachBaseContext(android.content.Context r22) {
/*
Method dump skipped, instructions count: 848
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.transferandpay.EditFavouriteActivity.attachBaseContext(android.content.Context):void");
}
@Override // o.AbstractActivityC11917eoQ, com.scb.phone.view.activity.BaseActivity, com.scb.phone.view.activity.PreLoadCheckActivity, com.akexorcist.localizationactivity.LocalizationActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity
public void onStart() {
int i = 2 % 2;
int i2 = t + 77;
l = i2 % 128;
int i3 = i2 % 2;
super.onStart();
int i4 = t + 95;
l = i4 % 128;
int i5 = i4 % 2;
}
}