what-the-bank/sources/com/scb/phone/view/activity/emailverification/ManageEmailInputActivity.java

1178 lines
49 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.activity.emailverification;
import android.app.Dialog;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.ImageFormat;
import android.graphics.drawable.Drawable;
import android.media.AudioTrack;
import android.os.Process;
import android.os.SystemClock;
import android.telephony.cdma.CdmaCellLocation;
import android.text.AndroidCharacter;
import android.text.TextUtils;
import android.util.Base64;
import android.view.Gravity;
import android.view.KeyEvent;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.Button;
import android.widget.ExpandableListView;
import android.widget.ImageView;
import android.widget.TextView;
import butterknife.BindView;
import butterknife.OnClick;
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.presentation.presenter.emailverification.ManageEmailInputPresenter;
import com.scb.phone.view.activity.BaseActivity;
import com.scb.phone.view.activity.emailverification.ManageEmailInputActivity;
import com.scb.phone.view.custom.ScbEditText;
import java.lang.reflect.Method;
import java.nio.charset.StandardCharsets;
import net.sf.scuba.smartcards.ISO7816;
import o.C13846fhy;
import o.C16898sG;
import o.C4403bZM;
import o.InterfaceC13391fZD;
import o.cZP;
import o.dLC;
import o.jTb;
import o.xzZ;
/* loaded from: classes4.dex */
public class ManageEmailInputActivity extends dLC implements cZP {
private static byte m;
private static char p;
private static char q;
private static char r;
private static int[] s;
private static char t;
private static int v;
@BindView
Button btnCancel;
@BindView
ImageView btnDeleteEmail;
@BindView
Button btnSave;
@BindView
TextView editEmailDescription;
@BindView
ScbEditText etEmail;
private boolean k;
private C13846fhy l;
@InterfaceC13391fZD
public C16898sG manageEmailCommonDisplayMapper;
/* renamed from: o, reason: collision with root package name */
private String f7127o = "";
@InterfaceC13391fZD
public ManageEmailInputPresenter presenter;
@BindView
TextView tvEmailError;
private static final byte[] $$p = {70, -37, 38, -31};
private static final int $$q = 50;
private static int $10 = 0;
private static int $11 = 1;
private static int y = 0;
/* JADX WARN: Removed duplicated region for block: B:10:0x0025 */
/* JADX WARN: Removed duplicated region for block: B:7:0x001d */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0025 -> B:4:0x0029). 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 aD(short r5, int r6, short r7, java.lang.Object[] r8) {
/*
int r5 = r5 * 4
int r5 = r5 + 4
byte[] r0 = com.scb.phone.view.activity.emailverification.ManageEmailInputActivity.$$p
int r6 = r6 + 66
int r7 = r7 * 3
int r1 = 1 - r7
byte[] r1 = new byte[r1]
r2 = 0
int r7 = 0 - r7
if (r0 != 0) goto L17
r4 = r6
r6 = r7
r3 = r2
goto L29
L17:
r3 = r2
L18:
byte r4 = (byte) r6
r1[r3] = r4
if (r3 != r7) goto L25
java.lang.String r5 = new java.lang.String
r5.<init>(r1, r2)
r8[r2] = r5
return
L25:
int r3 = r3 + 1
r4 = r0[r5]
L29:
int r6 = r6 + r4
int r5 = r5 + 1
goto L18
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.emailverification.ManageEmailInputActivity.aD(short, int, short, java.lang.Object[]):void");
}
public static /* synthetic */ Object c(Object[] objArr, int i, int i2, int i3) {
int i4 = i | i2;
int i5 = (i * 503) + (i2 * 503) + (i4 * (-502));
int i6 = ~i;
int i7 = ~((~i2) | i6);
int i8 = i6 | (~i3);
int i9 = i7 | (~i8);
int i10 = ~(i3 | i4);
int i11 = i5 + ((i9 | i10) * (-502)) + (((~(i8 | i2)) | i10) * 502);
if (i11 == 1) {
return a(objArr);
}
if (i11 == 2) {
return d(objArr);
}
ManageEmailInputActivity manageEmailInputActivity = (ManageEmailInputActivity) objArr[0];
String str = (String) objArr[1];
boolean booleanValue = ((Boolean) objArr[2]).booleanValue();
int i12 = 2 % 2;
manageEmailInputActivity.f7127o = str;
if (!booleanValue) {
int i13 = v + 63;
y = i13 % 128;
int i14 = i13 % 2;
manageEmailInputActivity.editEmailDescription.setText(R.string.edit_email_description_blank_state);
int i15 = y + 71;
v = i15 % 128;
if (i15 % 2 == 0) {
int i16 = 5 / 5;
}
}
manageEmailInputActivity.l.c(((BaseActivity) manageEmailInputActivity).scbAnalytics, "emailverification_edit_email");
manageEmailInputActivity.etEmail.setText(str);
return null;
}
private void aC(String str, Object[] objArr) {
int i = 2 % 2;
byte[] decode = Base64.decode(str, 0);
byte[] bArr = new byte[decode.length];
int i2 = 0;
while (i2 < decode.length) {
int i3 = y + 89;
int i4 = i3 % 128;
v = i4;
int i5 = i3 % 2;
bArr[i2] = (byte) (decode[(decode.length - i2) - 1] ^ m);
i2++;
int i6 = i4 + 5;
y = i6 % 128;
int i7 = i6 % 2;
}
objArr[0] = new String(bArr, StandardCharsets.UTF_8);
}
public static Intent aeU_(Context context, boolean z) {
int i = 2 % 2;
Intent intent = new Intent(context, (Class<?>) ManageEmailInputActivity.class);
intent.putExtra("EXTRA_IS_REQUESTED_FOR_RESULT", z);
int i2 = v + 1;
y = i2 % 128;
int i3 = i2 % 2;
return intent;
}
private static void aB(char[] cArr, int i, Object[] objArr) {
int i2;
int i3 = 2;
int i4 = 2 % 2;
jTb jtb = new jTb();
char[] cArr2 = new char[cArr.length];
jtb.b = 0;
char[] cArr3 = new char[2];
while (jtb.b < cArr.length) {
int i5 = $10 + 113;
$11 = i5 % 128;
if (i5 % i3 == 0) {
cArr3[1] = cArr[jtb.b];
cArr3[0] = cArr[jtb.b];
i2 = 1;
} else {
cArr3[0] = cArr[jtb.b];
cArr3[1] = cArr[jtb.b + 1];
i2 = 0;
}
int i6 = 58224;
while (i2 < 16) {
char c = cArr3[1];
char c2 = cArr3[0];
int i7 = (c2 + i6) ^ ((c2 << 4) + ((char) (p ^ 41718355337583039L)));
int i8 = c2 >>> 5;
try {
Object[] objArr2 = new Object[4];
objArr2[3] = Integer.valueOf(q);
objArr2[i3] = Integer.valueOf(i8);
objArr2[1] = Integer.valueOf(i7);
objArr2[0] = Integer.valueOf(c);
Object obj = xzZ.y.get(597144044);
if (obj == null) {
Class cls = (Class) xzZ.c(TextUtils.indexOf((CharSequence) "", '0', 0, 0) + 413, 5 - (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (char) (CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)));
byte b = (byte) 0;
byte b2 = b;
Object[] objArr3 = new Object[1];
aD(b, b2, b2, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Integer.TYPE, Integer.TYPE, Integer.TYPE);
xzZ.y.put(597144044, obj);
}
char charValue = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
cArr3[1] = charValue;
Object[] objArr4 = {Integer.valueOf(cArr3[0]), Integer.valueOf((charValue + i6) ^ ((charValue << 4) + ((char) (t ^ 41718355337583039L)))), Integer.valueOf(charValue >>> 5), Integer.valueOf(r)};
Object obj2 = xzZ.y.get(597144044);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(KeyEvent.keyCodeFromString("") + 412, (ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)) + 4, (char) (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)));
byte b3 = (byte) 0;
byte b4 = b3;
Object[] objArr5 = new Object[1];
aD(b3, b4, b4, objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE, Integer.TYPE, Integer.TYPE, Integer.TYPE);
xzZ.y.put(597144044, obj2);
}
cArr3[0] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue();
i6 -= 40503;
i2++;
int i9 = $10 + 13;
$11 = i9 % 128;
if (i9 % 2 == 0) {
int i10 = 4 % 3;
}
i3 = 2;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
cArr2[jtb.b] = cArr3[0];
cArr2[jtb.b + 1] = cArr3[1];
Object[] objArr6 = {jtb, jtb};
Object obj3 = xzZ.y.get(943004485);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c(99 - (ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)), TextUtils.lastIndexOf("", '0', 0, 0) + 6, (char) (ViewConfiguration.getDoubleTapTimeout() >> 16));
byte b5 = (byte) 0;
byte b6 = (byte) (b5 + 1);
Object[] objArr7 = new Object[1];
aD(b5, b6, (byte) (b6 - 1), objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class);
xzZ.y.put(943004485, obj3);
}
((Method) obj3).invoke(null, objArr6);
int i11 = $10 + 105;
$11 = i11 % 128;
if (i11 % 2 == 0) {
int i12 = 4 % 5;
}
i3 = 2;
}
objArr[0] = new String(cArr2, 0, i);
}
private static void aA(int[] iArr, int i, Object[] objArr) {
int[] iArr2;
int length;
int[] iArr3;
int i2;
int i3 = 2 % 2;
C4403bZM c4403bZM = new C4403bZM();
char[] cArr = new char[4];
char[] cArr2 = new char[iArr.length * 2];
int[] iArr4 = s;
int i4 = 729798706;
int i5 = 1;
int i6 = 0;
if (iArr4 != null) {
int i7 = $10;
int i8 = i7 + 49;
$11 = i8 % 128;
if (i8 % 2 == 0) {
length = iArr4.length;
iArr3 = new int[length];
i2 = 1;
} else {
length = iArr4.length;
iArr3 = new int[length];
i2 = 0;
}
int i9 = i7 + 99;
$11 = i9 % 128;
int i10 = i9 % 2;
int i11 = i2;
while (i11 < length) {
try {
Object[] objArr2 = new Object[1];
objArr2[i6] = Integer.valueOf(iArr4[i11]);
Object obj = xzZ.y.get(Integer.valueOf(i4));
if (obj == null) {
Class cls = (Class) xzZ.c(View.MeasureSpec.makeMeasureSpec(i6, i6) + 15, Color.blue(i6) + 5, (char) (58134 - TextUtils.indexOf("", "", i6, i6)));
Class<?>[] clsArr = new Class[1];
clsArr[i6] = Integer.TYPE;
obj = cls.getMethod("i", clsArr);
xzZ.y.put(729798706, obj);
}
iArr3[i11] = ((Integer) ((Method) obj).invoke(null, objArr2)).intValue();
i11++;
i4 = 729798706;
i6 = 0;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
iArr4 = iArr3;
}
int length2 = iArr4.length;
int[] iArr5 = new int[length2];
int[] iArr6 = s;
int i12 = 16;
if (iArr6 != null) {
int length3 = iArr6.length;
int[] iArr7 = new int[length3];
int i13 = 0;
while (i13 < length3) {
Object[] objArr3 = new Object[i5];
objArr3[0] = Integer.valueOf(iArr6[i13]);
Object obj2 = xzZ.y.get(729798706);
if (obj2 != null) {
iArr2 = iArr6;
} else {
obj2 = ((Class) xzZ.c((ViewConfiguration.getLongPressTimeout() >> i12) + 15, (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 4, (char) (58133 - ExpandableListView.getPackedPositionChild(0L)))).getMethod("i", Integer.TYPE);
iArr2 = iArr6;
xzZ.y.put(729798706, obj2);
}
iArr7[i13] = ((Integer) ((Method) obj2).invoke(null, objArr3)).intValue();
i13++;
int i14 = $10 + 93;
$11 = i14 % 128;
if (i14 % 2 == 0) {
int i15 = 2 / 5;
}
iArr6 = iArr2;
i5 = 1;
i12 = 16;
}
iArr6 = iArr7;
}
System.arraycopy(iArr6, 0, iArr5, 0, length2);
c4403bZM.b = 0;
int i16 = $10 + 117;
$11 = i16 % 128;
if (i16 % 2 == 0) {
int i17 = 3 % 2;
}
while (c4403bZM.b < iArr.length) {
cArr[0] = (char) (iArr[c4403bZM.b] >> 16);
cArr[1] = (char) iArr[c4403bZM.b];
cArr[2] = (char) (iArr[c4403bZM.b + 1] >> 16);
cArr[3] = (char) iArr[c4403bZM.b + 1];
c4403bZM.e = (cArr[0] << 16) + cArr[1];
c4403bZM.a = (cArr[2] << 16) + cArr[3];
C4403bZM.d(iArr5);
int i18 = 0;
for (int i19 = 16; i18 < i19; i19 = 16) {
int i20 = $11 + 25;
$10 = i20 % 128;
if (i20 % 2 != 0) {
c4403bZM.e ^= iArr5[i18];
Object[] objArr4 = {c4403bZM, Integer.valueOf(C4403bZM.d(c4403bZM.e)), c4403bZM, c4403bZM};
Object obj3 = xzZ.y.get(-1196964548);
if (obj3 == null) {
Class cls2 = (Class) xzZ.c(117 - ((byte) KeyEvent.getModifierMetaStateMask()), 5 - TextUtils.getOffsetBefore("", 0), (char) ((ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)) + 1));
byte b = (byte) 0;
Object[] objArr5 = new Object[1];
aD(b, $$p[2], b, objArr5);
obj3 = cls2.getMethod((String) objArr5[0], Object.class, Integer.TYPE, Object.class, Object.class);
xzZ.y.put(-1196964548, obj3);
}
int intValue = ((Integer) ((Method) obj3).invoke(null, objArr4)).intValue();
c4403bZM.e = c4403bZM.a;
c4403bZM.a = intValue;
i18 += 57;
} else {
c4403bZM.e ^= iArr5[i18];
Object[] objArr6 = {c4403bZM, Integer.valueOf(C4403bZM.d(c4403bZM.e)), c4403bZM, c4403bZM};
Object obj4 = xzZ.y.get(-1196964548);
if (obj4 == null) {
Class cls3 = (Class) xzZ.c(118 - TextUtils.getOffsetAfter("", 0), AndroidCharacter.getMirror('0') - '+', (char) (ViewConfiguration.getMaximumFlingVelocity() >> 16));
byte b2 = (byte) 0;
Object[] objArr7 = new Object[1];
aD(b2, $$p[2], b2, objArr7);
obj4 = cls3.getMethod((String) objArr7[0], Object.class, Integer.TYPE, Object.class, Object.class);
xzZ.y.put(-1196964548, obj4);
}
int intValue2 = ((Integer) ((Method) obj4).invoke(null, objArr6)).intValue();
c4403bZM.e = c4403bZM.a;
c4403bZM.a = intValue2;
i18++;
}
}
int i21 = c4403bZM.e;
c4403bZM.e = c4403bZM.a;
c4403bZM.a = i21;
c4403bZM.a ^= iArr5[16];
c4403bZM.e ^= iArr5[17];
int i22 = c4403bZM.e;
int i23 = c4403bZM.a;
cArr[0] = (char) (c4403bZM.e >>> 16);
cArr[1] = (char) c4403bZM.e;
cArr[2] = (char) (c4403bZM.a >>> 16);
cArr[3] = (char) c4403bZM.a;
C4403bZM.d(iArr5);
cArr2[c4403bZM.b * 2] = cArr[0];
cArr2[(c4403bZM.b * 2) + 1] = cArr[1];
cArr2[(c4403bZM.b * 2) + 2] = cArr[2];
cArr2[(c4403bZM.b * 2) + 3] = cArr[3];
Object[] objArr8 = {c4403bZM, c4403bZM};
Object obj5 = xzZ.y.get(1914371176);
if (obj5 == null) {
Class cls4 = (Class) xzZ.c(TextUtils.lastIndexOf("", '0') + 99, KeyEvent.normalizeMetaState(0) + 5, (char) (TextUtils.indexOf((CharSequence) "", '0', 0) + 1));
byte b3 = (byte) 0;
Object[] objArr9 = new Object[1];
aD(b3, (byte) (b3 | ISO7816.INS_CHANGE_CHV), b3, objArr9);
obj5 = cls4.getMethod((String) objArr9[0], Object.class, Object.class);
xzZ.y.put(1914371176, obj5);
}
((Method) obj5).invoke(null, objArr8);
}
objArr[0] = new String(cArr2, 0, i);
}
public static /* synthetic */ CharSequence b(CharSequence charSequence) {
int i = 2 % 2;
int i2 = v + 117;
y = i2 % 128;
int i3 = i2 % 2;
String lowerCase = String.valueOf(charSequence).toLowerCase();
if (i3 != 0) {
int i4 = 81 / 0;
}
return lowerCase;
}
/* JADX WARN: Code restructure failed: missing block: B:13:0x00aa, code lost:
if (r2 > 99999) goto L10;
*/
/* JADX WARN: Code restructure failed: missing block: B:6:0x00a7, code lost:
if (r2 > 99999) goto L10;
*/
/* JADX WARN: Removed duplicated region for block: B:12:? A[RETURN, SYNTHETIC] */
/* JADX WARN: Removed duplicated region for block: B:9:0x03b8 */
@Override // o.dLC, 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 r17) {
/*
Method dump skipped, instructions count: 1340
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.emailverification.ManageEmailInputActivity.onCreate(android.os.Bundle):void");
}
@Override // com.scb.phone.view.activity.BaseActivity
public final void Z() {
int i = 2 % 2;
int i2 = v + 19;
y = i2 % 128;
if (i2 % 2 == 0) {
super.Z();
this.presenter.b();
} else {
super.Z();
this.presenter.b();
throw null;
}
}
@OnClick
public void onBtnCancelClicked() {
int i = 2 % 2;
int i2 = y + 65;
v = i2 % 128;
Object obj = null;
if (i2 % 2 == 0) {
this.presenter.d();
obj.hashCode();
throw null;
}
this.presenter.d();
int i3 = y + 121;
v = i3 % 128;
if (i3 % 2 != 0) {
return;
}
obj.hashCode();
throw null;
}
@OnClick
public void onBtnSaveClicked() {
int i = 2 % 2;
int i2 = y + 125;
v = i2 % 128;
if (i2 % 2 == 0) {
this.presenter.e(this.etEmail.getText().toString());
int i3 = 66 / 0;
} else {
this.presenter.e(this.etEmail.getText().toString());
}
int i4 = v + 89;
y = i4 % 128;
int i5 = i4 % 2;
}
@OnClick
public void clearEmail() {
int i = 2 % 2;
int i2 = y + 75;
v = i2 % 128;
int i3 = i2 % 2;
this.etEmail.setText("");
this.btnDeleteEmail.setVisibility(8);
int i4 = v + 91;
y = i4 % 128;
if (i4 % 2 == 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
@Override // o.cZP
public final void d(boolean z) {
int i = 2 % 2;
int i2 = v + 125;
y = i2 % 128;
int i3 = i2 % 2;
this.btnSave.setEnabled(z);
int i4 = v + 97;
y = i4 % 128;
int i5 = i4 % 2;
}
@Override // o.cZP
public final void b() {
int i = 2 % 2;
int i2 = v + 101;
y = i2 % 128;
int i3 = i2 % 2;
finish();
if (i3 != 0) {
throw null;
}
}
@Override // androidx.activity.ComponentActivity, android.app.Activity
public void onBackPressed() {
int i = 2 % 2;
int i2 = y + 69;
v = i2 % 128;
int i3 = i2 % 2;
this.presenter.a();
int i4 = v + 39;
y = i4 % 128;
if (i4 % 2 != 0) {
int i5 = 55 / 0;
}
}
@Override // com.scb.phone.view.activity.BaseActivity, android.app.Activity
public boolean onOptionsItemSelected(MenuItem menuItem) {
int i = 2 % 2;
int i2 = y + 79;
v = i2 % 128;
if (i2 % 2 != 0) {
if (menuItem.getItemId() == 16908332) {
int i3 = y + 25;
v = i3 % 128;
int i4 = i3 % 2;
this.presenter.a();
return true;
}
return super.onOptionsItemSelected(menuItem);
}
menuItem.getItemId();
Object obj = null;
obj.hashCode();
throw null;
}
/* JADX WARN: Code restructure failed: missing block: B:11:0x0039, code lost:
r4.editEmailDescription.setText(com.scb.phone.R.string.edit_email_description_blank_state);
*/
/* JADX WARN: Code restructure failed: missing block: B:13:0x0036, code lost:
if (android.text.TextUtils.isEmpty(r4.f7127o) != true) goto L11;
*/
/* JADX WARN: Code restructure failed: missing block: B:4:0x0022, code lost:
if (android.text.TextUtils.isEmpty(r4.f7127o) != false) goto L10;
*/
@Override // o.cZP
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void h() {
/*
r4 = this;
r0 = 2
int r1 = r0 % r0
int r1 = com.scb.phone.view.activity.emailverification.ManageEmailInputActivity.v
int r1 = r1 + 57
int r2 = r1 % 128
com.scb.phone.view.activity.emailverification.ManageEmailInputActivity.y = r2
int r1 = r1 % r0
r2 = 2131231840(0x7f080460, float:1.8079772E38)
r3 = 0
if (r1 == 0) goto L25
com.scb.phone.view.custom.ScbEditText r1 = r4.etEmail
r1.setBackgroundResource(r2)
android.widget.TextView r1 = r4.tvEmailError
r1.setVisibility(r3)
java.lang.String r1 = r4.f7127o
boolean r1 = android.text.TextUtils.isEmpty(r1)
if (r1 == 0) goto L41
goto L39
L25:
com.scb.phone.view.custom.ScbEditText r1 = r4.etEmail
r1.setBackgroundResource(r2)
android.widget.TextView r1 = r4.tvEmailError
r1.setVisibility(r3)
java.lang.String r1 = r4.f7127o
boolean r1 = android.text.TextUtils.isEmpty(r1)
r2 = 1
if (r1 == r2) goto L39
goto L41
L39:
android.widget.TextView r1 = r4.editEmailDescription
r2 = 2131954782(0x7f130c5e, float:1.9546073E38)
r1.setText(r2)
L41:
int r1 = com.scb.phone.view.activity.emailverification.ManageEmailInputActivity.y
int r1 = r1 + 47
int r2 = r1 % 128
com.scb.phone.view.activity.emailverification.ManageEmailInputActivity.v = r2
int r1 = r1 % r0
if (r1 != 0) goto L4f
r0 = 12
int r0 = r0 / r3
L4f:
return
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.emailverification.ManageEmailInputActivity.h():void");
}
@Override // o.cZP
public final void e() {
int i = 2 % 2;
int i2 = v + 63;
y = i2 % 128;
(i2 % 2 != 0 ? this.etEmail : this.etEmail).setBackgroundResource(R.drawable.shape_gray_rounded_rectangle);
this.tvEmailError.setVisibility(8);
int i3 = y + 35;
v = i3 % 128;
if (i3 % 2 == 0) {
int i4 = 76 / 0;
}
}
@Override // o.cZP
public final void d(String str, String str2) {
int i = 2 % 2;
d_("profile_settings_email_save");
setResult(-1, new Intent().putExtra("EXTRA_EMAIL_STATUS", 1));
finish();
if (this.k) {
int i2 = v + 35;
y = i2 % 128;
int i3 = i2 % 2;
startActivityForResult(ManageEmailVerificationActivity.afa_(this, str, str2, true, true), 1001);
return;
}
Object[] objArr = {this, str, str2, true};
startActivity((Intent) ManageEmailVerificationActivity.b(objArr));
int i4 = v + 121;
y = i4 % 128;
int i5 = i4 % 2;
}
@Override // o.cZP
public final void g() {
int i = 2 % 2;
int i2 = y + 87;
v = i2 % 128;
if (i2 % 2 == 0) {
e(this.manageEmailCommonDisplayMapper.h());
throw null;
}
e(this.manageEmailCommonDisplayMapper.h());
int i3 = v + 61;
y = i3 % 128;
int i4 = i3 % 2;
}
@Override // o.cZP
public final void a() {
int i = 2 % 2;
setResult(-1, new Intent().putExtra("EXTRA_EMAIL_STATUS", 0));
finish();
int i2 = v + 97;
y = i2 % 128;
int i3 = i2 % 2;
}
@Override // o.cZP
public final void c() {
int i = 2 % 2;
d_("profile_settings_email_save");
setResult(-1, new Intent().putExtra("EXTRA_EMAIL_STATUS", 0));
finish();
int i2 = v + 109;
y = i2 % 128;
int i3 = i2 % 2;
}
private static /* synthetic */ Object a(Object[] objArr) {
final ManageEmailInputActivity manageEmailInputActivity = (ManageEmailInputActivity) objArr[0];
int i = 2 % 2;
manageEmailInputActivity.e(manageEmailInputActivity.manageEmailCommonDisplayMapper.e(new Runnable(manageEmailInputActivity) { // from class: o.dLJ
private ManageEmailInputActivity e;
@Override // java.lang.Runnable
public final void run() {
ManageEmailInputActivity.c(new Object[]{this.e}, -1399785475, 1399785477, (int) System.currentTimeMillis());
}
{
this.e = manageEmailInputActivity;
}
}));
int i2 = v + 71;
y = i2 % 128;
int i3 = i2 % 2;
return null;
}
@Override // o.cZP
public final void j() {
int i = 2 % 2;
Dialog dialog = new Dialog(this);
dialog.requestWindowFeature(1);
dialog.setCancelable(false);
dialog.setContentView(R.layout.f36402131558993);
TextView textView = (TextView) dialog.findViewById(R.id.dialog_title);
TextView textView2 = (TextView) dialog.findViewById(R.id.dialog_text);
Button button = (Button) dialog.findViewById(R.id.dialog_positive_button);
textView.setVisibility(0);
textView.setText(R.string.manage_email_disable_title);
textView2.setVisibility(0);
textView2.setText(R.string.manage_email_disable_message);
button.setVisibility(0);
button.setOnClickListener(new View.OnClickListener(this) { // from class: o.dLE
private ManageEmailInputActivity d;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
ManageEmailInputActivity.d(this.d);
}
{
this.d = this;
}
});
dialog.show();
int i2 = v + 97;
y = i2 % 128;
if (i2 % 2 != 0) {
throw null;
}
}
@Override // o.cZP
public final void d(int i) {
int i2 = 2 % 2;
int i3 = v + 5;
y = i3 % 128;
int i4 = i3 % 2;
String string = getString(i);
if (!(!string.startsWith(",*,)"))) {
int i5 = y + 39;
v = i5 % 128;
int i6 = i5 % 2;
Object[] objArr = new Object[1];
aC(string.substring(4), objArr);
string = ((String) objArr[0]).intern();
}
p(string);
}
/* JADX WARN: Code restructure failed: missing block: B:15:0x0020, code lost:
if (r4.k != true) goto L13;
*/
/* JADX WARN: Code restructure failed: missing block: B:4:0x0018, code lost:
if (r4.k != true) goto L13;
*/
/* JADX WARN: Code restructure failed: missing block: B:6:0x0025, code lost:
if (1001 != r5) goto L13;
*/
/* JADX WARN: Code restructure failed: missing block: B:7:0x0027, code lost:
setResult(r6, r7);
finish();
r5 = com.scb.phone.view.activity.emailverification.ManageEmailInputActivity.y + 95;
com.scb.phone.view.activity.emailverification.ManageEmailInputActivity.v = r5 % 128;
r5 = r5 % 2;
*/
@Override // com.scb.phone.view.activity.BaseActivity, com.scb.phone.view.activity.PreLoadCheckActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, android.app.Activity
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public void onActivityResult(int r5, int r6, android.content.Intent r7) {
/*
r4 = this;
r0 = 2
int r1 = r0 % r0
int r1 = com.scb.phone.view.activity.emailverification.ManageEmailInputActivity.y
int r1 = r1 + 121
int r2 = r1 % 128
com.scb.phone.view.activity.emailverification.ManageEmailInputActivity.v = r2
int r1 = r1 % r0
r2 = 1
if (r1 != 0) goto L1b
super.onActivityResult(r5, r6, r7)
boolean r1 = r4.k
r3 = 20
int r3 = r3 / 0
if (r1 == r2) goto L23
goto L36
L1b:
super.onActivityResult(r5, r6, r7)
boolean r1 = r4.k
if (r1 == r2) goto L23
goto L36
L23:
r1 = 1001(0x3e9, float:1.403E-42)
if (r1 != r5) goto L36
r4.setResult(r6, r7)
r4.finish()
int r5 = com.scb.phone.view.activity.emailverification.ManageEmailInputActivity.y
int r5 = r5 + 95
int r6 = r5 % 128
com.scb.phone.view.activity.emailverification.ManageEmailInputActivity.v = r6
int r5 = r5 % r0
L36:
int r5 = com.scb.phone.view.activity.emailverification.ManageEmailInputActivity.v
int r5 = r5 + 67
int r6 = r5 % 128
com.scb.phone.view.activity.emailverification.ManageEmailInputActivity.y = r6
int r5 = r5 % r0
if (r5 != 0) goto L42
return
L42:
r5 = 0
r5.hashCode()
throw r5
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.emailverification.ManageEmailInputActivity.onActivityResult(int, int, android.content.Intent):void");
}
@Override // o.dLC, 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;
int i2 = v + 93;
y = i2 % 128;
Object obj = null;
if (i2 % 2 != 0) {
getBaseContext();
obj.hashCode();
throw null;
}
Context baseContext = getBaseContext();
if (baseContext == null) {
Object[] objArr = new Object[1];
aA(new int[]{469844309, 816248874, 724167893, -1383306021, -1806555292, 578359069, -1768124340, 889364147, 1896272239, 1912320751, 1961398352, 1473462085, -1508307576, -1930407971}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.total_vat_label).substring(0, 3).codePointAt(1) - 39, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
aB(new char[]{1488, 5139, 55510, 32058, 42500, 45579, 45498, 22285, 25108, 9526, 18524, 32133, 50972, 23158, 18868, 43277, 50527, 996}, (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)) + 17, objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
int i3 = v + 107;
y = i3 % 128;
if (i3 % 2 != 0) {
baseContext = baseContext.getApplicationContext();
int i4 = 10 / 0;
} else {
baseContext = baseContext.getApplicationContext();
}
}
if (baseContext != null) {
try {
Object obj2 = xzZ.y.get(125943855);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(493 - (SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)), 6 - (ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)), (char) (TextUtils.indexOf((CharSequence) "", '0') + 1))).getMethod("a", null);
xzZ.y.put(125943855, obj2);
}
Object invoke = ((Method) obj2).invoke(null, null);
Object[] objArr3 = {baseContext};
Object obj3 = xzZ.y.get(1378719468);
if (obj3 == null) {
obj3 = ((Class) xzZ.c(487 - TextUtils.indexOf("", ""), Gravity.getAbsoluteGravity(0, 0) + 5, (char) ((SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)) - 1))).getMethod(KtaJsonExactionHelper.OBJECT, Context.class);
xzZ.y.put(1378719468, obj3);
}
((Method) obj3).invoke(invoke, objArr3);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
super.onResume();
int i5 = y + 63;
v = i5 % 128;
int i6 = i5 % 2;
}
@Override // o.dLC, 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;
Context baseContext = getBaseContext();
Object obj = null;
if (baseContext == null) {
Object[] objArr = new Object[1];
aA(new int[]{469844309, 816248874, 724167893, -1383306021, -1806555292, 578359069, -1768124340, 889364147, 1896272239, 1912320751, 1961398352, 1473462085, -1508307576, -1930407971}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(12) - 75, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
aB(new char[]{1488, 5139, 55510, 32058, 42500, 45579, 45498, 22285, 25108, 9526, 18524, 32133, 50972, 23158, 18868, 43277, 50527, 996}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.scbs_account_detail_screen_liquidation_value).substring(0, 17).length() + 1, objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
int i2 = v + 121;
y = i2 % 128;
if (i2 % 2 != 0) {
baseContext.getApplicationContext();
throw null;
}
baseContext = baseContext.getApplicationContext();
int i3 = v + 105;
y = i3 % 128;
int i4 = i3 % 2;
}
if (baseContext != null) {
try {
Object obj2 = xzZ.y.get(125943855);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(Process.getGidForName("") + 493, 5 - View.resolveSize(0, 0), (char) (ViewConfiguration.getPressedStateDuration() >> 16))).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 - TextUtils.indexOf("", "", 0, 0), 5 - (ViewConfiguration.getScrollBarSize() >> 8), (char) View.resolveSizeAndState(0, 0, 0))).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();
int i5 = v + 119;
y = i5 % 128;
if (i5 % 2 == 0) {
return;
}
obj.hashCode();
throw null;
}
@Override // o.dLC, 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
public void attachBaseContext(Context context) {
int i = 2 % 2;
super.attachBaseContext(context);
Object[] objArr = new Object[1];
aA(new int[]{469844309, 816248874, 724167893, -1383306021, -1034013194, -1023477988, 718951432, -2055748548, 570009139, -352915996}, 18 - Drawable.resolveOpacity(0, 0), objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
aA(new int[]{2046580784, 1909859828, 51469268, 2038487269}, TextUtils.indexOf((CharSequence) "", '0', 0) + 6, objArr2);
int intValue = ((Integer) cls.getDeclaredMethod((String) objArr2[0], new Class[0]).invoke(null, new Object[0])).intValue() % 100000;
if (intValue < 99000 || intValue > 99999) {
Context applicationContext = context != null ? context.getApplicationContext() : context;
if (applicationContext != null) {
int i2 = y + 71;
v = i2 % 128;
int i3 = i2 % 2;
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(492 - TextUtils.getOffsetAfter("", 0), (Process.myPid() >> 22) + 5, (char) ((ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)) + 1))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr3 = new Object[1];
aA(new int[]{2103282745, 1257830865, 1729118395, -2017239888, 621270119, 946777082, 1516267243, -1200689471, -2122447875, -681495407, -1373502797, 1031298947, 1050538856, 1636734969, 1021335541, -463875868, -2081332123, -579324139, -638855136, -871211492, -951261746, 1900306978, 1291847207, -1204693209}, 48 - (ViewConfiguration.getWindowTouchSlop() >> 8), objArr3);
String str = (String) objArr3[0];
Object[] objArr4 = new Object[1];
aA(new int[]{1032199346, -1394781817, -788784876, -576830239, -705701012, -1326520573, -408130344, 1099303824, -398006291, 126923314, 1511078559, 1751545725, -2118090181, 360449851, 338917627, -346690347, -1760007336, 2124015121, -1412695789, 1228820837, 1418041054, 146640468, -849779498, 390349017, 949803708, 751356290, 1783123072, 1974761384, -1123983991, -1412627887, -1472474657, 1235828307}, 64 - (ViewConfiguration.getPressedStateDuration() >> 16), objArr4);
String str2 = (String) objArr4[0];
Object[] objArr5 = new Object[1];
aA(new int[]{-1551657175, 1246688561, 1906368508, 1772005204, 1391313733, 1639452246, -1111089647, -1329495899, -115921204, -2124875354, 577435959, -776601909, -1478520628, 223842041, -1446652852, 1215235171, 246190179, 192614319, -1485853169, 1444718030, 2072316512, 2092925404, -1137047309, -525363373, 1556304480, 496369325, 2086838995, 1776467320, 1206367212, 2117123691, 803841230, 1531534102}, ImageFormat.getBitsPerPixel(0) + 65, objArr5);
String str3 = (String) objArr5[0];
Object[] objArr6 = new Object[1];
aB(new char[]{3895, 42258, 20987, 45759, 52611, 23581, 42328, 26178, 19961, 1494, 37735, 7705, 45668, 57349, 26311, 54678, 63842, 55648, 49136, 18967, 39471, 4380, 32606, 60264, 34723, 1188, 51665, 54052, 1631, 5758, 59168, 32776, 54291, 2175, 32007, 5831, 9514, 3455, 41558, 11441, 33854, 33176, 24712, 19249, 12310, 39366, 33854, 33176, 26237, 4683, 45668, 57349, 49847, 28624, 3777, 56293, 56386, 41316, 9907, 15198, 18307, 20647, 58360, 45630, 5094, 54813, 7347, 16118, 541, 32368, 42500, 45579, 52719, 59877}, 74 - (ViewConfiguration.getEdgeSlop() >> 16), objArr6);
String str4 = (String) objArr6[0];
Object[] objArr7 = new Object[1];
aA(new int[]{-755098891, 1961356660, 1231015830, -172445706}, TextUtils.indexOf("", "", 0, 0) + 5, objArr7);
String str5 = (String) objArr7[0];
Object[] objArr8 = new Object[1];
aB(new char[]{59168, 32776, 16062, 58706, 12782, 17125, 41842, 54775, 37542, 42355, 21448, 62747, 50992, 39539, 54120, 53989, 16616, 42109, 27266, 21885, 64706, 62976, 27862, 38033, 35932, 55553, 43939, 24820, 56995, 43641, 49056, 28314, 28205, 64281, 2761, 64727}, 'T' - AndroidCharacter.getMirror('0'), objArr8);
Object[] objArr9 = {applicationContext, str, str2, str3, str4, true, str5, (String) objArr8[0]};
Object obj2 = xzZ.y.get(1656189573);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(487 - (ViewConfiguration.getJumpTapTimeout() >> 16), KeyEvent.getDeadChar(0, 0) + 5, (char) View.MeasureSpec.getSize(0))).getMethod("e", Context.class, String.class, String.class, String.class, String.class, Boolean.TYPE, String.class, String.class);
xzZ.y.put(1656189573, obj2);
}
((Method) obj2).invoke(invoke, objArr9);
int i4 = v + 115;
y = i4 % 128;
int i5 = i4 % 2;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
}
}
public static /* synthetic */ void d(ManageEmailInputActivity manageEmailInputActivity) {
int i = 2 % 2;
int i2 = v + 73;
y = i2 % 128;
if (i2 % 2 == 0) {
manageEmailInputActivity.finish();
return;
}
manageEmailInputActivity.finish();
Object obj = null;
obj.hashCode();
throw null;
}
private static /* synthetic */ Object d(Object[] objArr) {
ManageEmailInputActivity manageEmailInputActivity = (ManageEmailInputActivity) objArr[0];
int i = 2 % 2;
int i2 = v + 105;
y = i2 % 128;
int i3 = i2 % 2;
Object obj = null;
ManageEmailInputPresenter manageEmailInputPresenter = manageEmailInputActivity.presenter;
if (i3 == 0) {
manageEmailInputPresenter.j();
return null;
}
manageEmailInputPresenter.j();
obj.hashCode();
throw null;
}
public static /* synthetic */ void e(ManageEmailInputActivity manageEmailInputActivity) {
int i = 2 % 2;
int i2 = v + 105;
y = i2 % 128;
int i3 = i2 % 2;
manageEmailInputActivity.etEmail.setBackgroundResource(R.drawable.shape_gray_rounded_rectangle);
manageEmailInputActivity.tvEmailError.setVisibility(8);
int i4 = y + 91;
v = i4 % 128;
if (i4 % 2 == 0) {
int i5 = 3 / 0;
}
}
static void f() {
s = new int[]{2124055242, 1727471557, 54590706, 27132103, -1507750927, 505574844, 1722848698, 1299653160, -1000401104, 1528800091, -1364305749, 257367698, -1883556846, 1699380156, -158241664, 124298976, 1304831411, -1957067489};
t = (char) 35859;
r = (char) 29253;
p = (char) 20664;
q = (char) 42722;
}
static {
v = 1;
f();
m = (byte) 6;
int i = y + 71;
v = i % 128;
int i2 = i % 2;
}
@Override // o.dLC, 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 = y + 27;
v = i2 % 128;
int i3 = i2 % 2;
super.onStart();
int i4 = y + 103;
v = i4 % 128;
int i5 = i4 % 2;
}
@Override // o.cZP
public final void e(String str, boolean z) {
c(new Object[]{this, str, Boolean.valueOf(z)}, 401820857, -401820857, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 540496662);
}
@Override // o.cZP
public final void d() {
c(new Object[]{this}, 973989079, -973989078, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.security_block_enable_accessibility_description).substring(121, 122).codePointAt(0) - 264760350);
}
}