what-the-bank/sources/com/scb/phone/view/activity/ntb/BaseNtbInstructionActivity....

1045 lines
47 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.activity.ntb;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.ImageFormat;
import android.graphics.PointF;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.os.Process;
import android.os.SystemClock;
import android.telephony.cdma.CdmaCellLocation;
import android.text.AndroidCharacter;
import android.text.TextUtils;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import androidx.fragment.app.Fragment;
import butterknife.BindView;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.common.base.Ascii;
import com.kofax.mobile.sdk._internal.impl.extraction.kta.KtaJsonExactionHelper;
import com.scb.phone.R;
import com.scb.phone.view.activity.BaseActivity;
import com.scb.phone.view.custom.common.CustomDialog;
import com.scb.phone.view.custom.common.ProgressStateBar;
import com.scb.phone.view.fragment.ndid.NdidInstructionFragment;
import com.scb.phone.view.fragment.ntb.address.BaseAddressFragment;
import com.scb.phone.view.fragment.ntb.ekyc.EkycFragment;
import com.scb.phone.view.fragment.ntb.fatca.FatcaLandingQuestionFragment;
import com.scb.phone.view.fragment.ntb.fatca.FatcaQuestionnaireFragment;
import com.scb.phone.view.fragment.ntb.fillinformation.ContactInfoFragment;
import com.scb.phone.view.fragment.ntb.fillinformation.FillInformationFragment;
import com.scb.phone.view.fragment.ntb.fillinformation.OccupationInfoFragment;
import com.scb.phone.view.fragment.ntb.fillinformation.OccupationSearchFragment;
import com.scb.phone.view.fragment.ntb.fillinformation.ReviewInfoFragment;
import com.scb.phone.view.fragment.ntb.selectaccount.SelectAccountFragment;
import java.lang.reflect.Method;
import net.sf.scuba.smartcards.ISO7816;
import o.AbstractC13482fbE;
import o.C4414bZh;
import o.C4593bdB;
import o.C6927cee;
import o.InterfaceC12818fIA;
import o.InterfaceC8954dab;
import o.SV;
import o.TVH;
import o.ZI;
import o.fIY;
import o.xzZ;
import o.yRS;
import org.bouncycastle.crypto.tls.CipherSuite;
/* loaded from: classes5.dex */
public abstract class BaseNtbInstructionActivity extends BaseActivity implements InterfaceC8954dab.jbe, InterfaceC12818fIA, fIY.Sts, fIY.HBt, fIY.IeS {
private String b;
@BindView
public ProgressStateBar progressStateBar;
private static final byte[] $$H = {69, ISO7816.INS_CHANGE_CHV, 67, Ascii.CAN};
private static final int $$I = 97;
private static int $10 = 0;
private static int $11 = 1;
private static int l = 0;
private static int k = 1;
private static char[] m = {40076, 40088, 40093, 40063, 40025, 40092, 40088, 40025, 40067, 40070, 40088, 40093, 40067, 40089, 40078, 40092, 40092, 40066, 39996, 40037, 40039, 40037, 40033, 40041, 40045, 40033, 40037, 40059, 40019, 40017, 40058, 40034, 40032, 40057, 40056, 40039, 39953, 39997, 39996, 39996, 39999, 39999, 39998, 40001, 40002, 39992, 39999, 39992, 40001, 40000, 40007, 40001, 39994, 39993, 39998, 39992, 39999, 39997, 39999, 39999, 39999, 39992, 40006, 40004, 39997, 40000, 40007, 40006, 40006, 40007, 40040, 40046, 40040, 40042, 40007, 39996, 39999, 40001, 40006, 40006, 40000, 39997, 40006, 40006, 40005, 40004, 40005, 40040, 40007, 39992, 39992, 39998, 40000, 40042, 40007, 40007, 40041, 40006, 39997, 40000, 39973, 40062, 40071, 40063, 40016, 40022, 40062, 40065, 40070, 40063, 40018, 40018, 40023, 40022, 40056, 40061, 40051, 40069, 40060, 40043, 40043, 40060, 40062, 40063, 40065, 40063, 40021, 40023, 40017, 40017, 40023, 40016, 40016, 40022, 40062, 40070, 40062, 40061, 40071, 40071, 40063, 40021, 40043, 40043, 40022, 40063, 40063, 40058, 40071, 40071, 40063, 40020, 40061, 40061, 40062, 40062, 40022, 40017, 40056, 40056, 40062, 40069, 40063, 40021, 39990, 40052, 40074, 40083, 40122, 40094, 40053, 40074, 40052, 40052, 40054, 40094, 40100, 40122, 40121, 40093, 40054, 40083, 40083, 40092, 40081, 40087, 40121, 40081, 40073, 40073, 40074, 40082, 40120, 40122, 40092, 40074, 40081, 40087, 40079, 40075};
/* renamed from: o, reason: collision with root package name */
private static long f7644o = -1047082840479531681L;
/* JADX WARN: Removed duplicated region for block: B:10:0x0028 */
/* JADX WARN: Removed duplicated region for block: B:7:0x0020 */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0028 -> B:4:0x002c). 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 aO(int r6, int r7, short r8, java.lang.Object[] r9) {
/*
int r7 = r7 * 3
int r0 = 1 - r7
int r8 = r8 * 3
int r8 = r8 + 4
byte[] r1 = com.scb.phone.view.activity.ntb.BaseNtbInstructionActivity.$$H
int r6 = 78 - r6
byte[] r0 = new byte[r0]
r2 = 0
int r7 = 0 - r7
if (r1 != 0) goto L17
r4 = r7
r6 = r8
r3 = r2
goto L2c
L17:
r3 = r2
r5 = r8
r8 = r6
r6 = r5
L1b:
byte r4 = (byte) r8
r0[r3] = r4
if (r3 != r7) goto L28
java.lang.String r6 = new java.lang.String
r6.<init>(r0, r2)
r9[r2] = r6
return
L28:
int r3 = r3 + 1
r4 = r1[r6]
L2c:
int r8 = r8 + r4
int r6 = r6 + 1
goto L1b
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.ntb.BaseNtbInstructionActivity.aO(int, int, short, java.lang.Object[]):void");
}
public static /* synthetic */ Object d(Object[] objArr, int i, int i2, int i3) {
int i4 = ~((~i) | (~i2));
int i5 = ~i3;
int i6 = (i * 221) + (i2 * (-219)) + ((i4 | (~(i5 | i | i2))) * 220) + (((~(i5 | i2)) | i) * (-440)) + ((i | i2 | i3) * 220);
return i6 != 1 ? i6 != 2 ? b(objArr) : d(objArr) : e(objArr);
}
protected abstract void b(SV sv);
private static void aN(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 = $10 + 37;
$11 = i3 % 128;
if (i3 % 2 == 0) {
int i4 = 2 / 5;
}
while (c4593bdB.e < cArr.length) {
int i5 = $11 + 17;
$10 = i5 % 128;
int i6 = i5 % 2;
int i7 = 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 - (ViewConfiguration.getEdgeSlop() >> 16), 5 - (ViewConfiguration.getScrollBarSize() >> 8), (char) (21608 - (ViewConfiguration.getScrollBarFadeDuration() >> 16)));
byte b = (byte) ($$I & 7);
byte b2 = (byte) (b - 1);
Object[] objArr3 = new Object[1];
aO(b, b2, b2, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Object.class, Object.class);
xzZ.y.put(-1229953068, obj);
}
jArr[i7] = ((Long) ((Method) obj).invoke(null, objArr2)).longValue() ^ (f7644o ^ (-6958928035870403642L));
Object[] objArr4 = {c4593bdB, c4593bdB};
Object obj2 = xzZ.y.get(-1143917229);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(ExpandableListView.getPackedPositionGroup(0L) + 238, 4 - ExpandableListView.getPackedPositionChild(0L), (char) (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)));
byte b3 = (byte) 0;
byte b4 = b3;
Object[] objArr5 = new Object[1];
aO(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) {
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(View.MeasureSpec.getMode(0) + 238, (ViewConfiguration.getScrollDefaultDelay() >> 16) + 5, (char) (TextUtils.lastIndexOf("", '0') + 1));
byte b5 = (byte) 0;
byte b6 = b5;
Object[] objArr7 = new Object[1];
aO(b5, b6, b6, objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class);
xzZ.y.put(-1143917229, obj3);
}
((Method) obj3).invoke(null, objArr6);
int i8 = $10 + 13;
$11 = i8 % 128;
int i9 = i8 % 2;
}
objArr[0] = new String(cArr2);
}
/* JADX WARN: Code restructure failed: missing block: B:4:0x0089, code lost:
if (r2 > 99999) goto L6;
*/
@Override // 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: 1068
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.ntb.BaseNtbInstructionActivity.onCreate(android.os.Bundle):void");
}
@Override // o.fIY.Sts
public final void l() {
int i = 2 % 2;
int i2 = k + 107;
l = i2 % 128;
int i3 = i2 % 2;
this.progressStateBar.setVisibility(8);
int i4 = k + 93;
l = i4 % 128;
if (i4 % 2 == 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
@Override // o.fIY.Sts
public final void av_() {
int i = 2 % 2;
int i2 = k + 25;
l = i2 % 128;
int i3 = i2 % 2;
this.progressStateBar.setVisibility(0);
int i4 = k + 21;
l = i4 % 128;
if (i4 % 2 != 0) {
throw null;
}
}
@Override // com.scb.phone.view.activity.BaseActivity
public final void Z() {
int i = 2 % 2;
int i2 = k + 33;
l = i2 % 128;
int i3 = i2 % 2;
super.Z();
ac();
this.i.d(this.i.c() | 16);
this.i.f();
int i4 = k + 73;
l = i4 % 128;
if (i4 % 2 != 0) {
int i5 = 90 / 0;
}
}
private static /* synthetic */ Object b(Object[] objArr) {
AbstractC13482fbE a;
BaseNtbInstructionActivity baseNtbInstructionActivity = (BaseNtbInstructionActivity) objArr[0];
Fragment fragment = (Fragment) objArr[1];
int i = 2 % 2;
int i2 = k + 95;
l = i2 % 128;
if (i2 % 2 != 0) {
a = baseNtbInstructionActivity.getSupportFragmentManager().a();
a.b(R.id.container, fragment, fragment.getClass().getName(), 5);
} else {
a = baseNtbInstructionActivity.getSupportFragmentManager().a();
a.b(R.id.container, fragment, fragment.getClass().getName(), 2);
}
a.b();
int i3 = l + 73;
k = i3 % 128;
if (i3 % 2 != 0) {
return null;
}
throw null;
}
private static /* synthetic */ Object d(Object[] objArr) {
BaseNtbInstructionActivity baseNtbInstructionActivity = (BaseNtbInstructionActivity) objArr[0];
int i = 2 % 2;
int i2 = l + 117;
k = i2 % 128;
int i3 = i2 % 2;
baseNtbInstructionActivity.progressStateBar.setCurrentState(1);
baseNtbInstructionActivity.progressStateBar.requestLayout();
baseNtbInstructionActivity.setTitle(R.string.fatca_question_title);
int i4 = k + 51;
l = i4 % 128;
if (i4 % 2 != 0) {
int i5 = 67 / 0;
}
return null;
}
@Override // o.fIY.Sts
public final void r() {
int i = 2 % 2;
int i2 = l + 65;
k = i2 % 128;
if (i2 % 2 == 0) {
this.progressStateBar.setCurrentState(4);
} else {
this.progressStateBar.setCurrentState(2);
}
this.progressStateBar.requestLayout();
}
@Override // o.fIY.HBt
public final void au_() {
int i = 2 % 2;
int i2 = l + 61;
k = i2 % 128;
int i3 = i2 % 2;
this.progressStateBar.setCurrentState(3);
this.progressStateBar.requestLayout();
int i4 = l + 49;
k = i4 % 128;
if (i4 % 2 == 0) {
int i5 = 95 / 0;
}
}
@Override // o.fIY.HBt
public final void c(Fragment fragment) {
int i = 2 % 2;
AbstractC13482fbE a = getSupportFragmentManager().a();
a.b(R.id.container, fragment, fragment.getClass().getName(), 1);
String name = fragment.getClass().getName();
if (a.d) {
int i2 = l + 93;
k = i2 % 128;
if (i2 % 2 == 0) {
a.a = true;
a.m = name;
} else {
a.a = true;
a.m = name;
}
a.b();
int i3 = k + 23;
l = i3 % 128;
int i4 = i3 % 2;
return;
}
throw new IllegalStateException("This FragmentTransaction is not allowed to be added to the back stack.");
}
@Override // o.InterfaceC12818fIA
public final void h() {
int i = 2 % 2;
SelectAccountFragment selectAccountFragment = new SelectAccountFragment();
AbstractC13482fbE a = getSupportFragmentManager().a();
a.b(R.id.container, selectAccountFragment, selectAccountFragment.getClass().getName(), 2);
a.b();
int i2 = k + 105;
l = i2 % 128;
int i3 = i2 % 2;
}
private static void aL(int[] iArr, boolean z, byte[] bArr, Object[] objArr) {
int i;
char[] cArr;
int i2 = 2;
int i3 = 2 % 2;
TVH tvh = new TVH();
int i4 = 0;
int i5 = iArr[0];
int i6 = iArr[1];
int i7 = iArr[2];
int i8 = iArr[3];
char[] cArr2 = m;
if (cArr2 != null) {
int i9 = $11 + 107;
$10 = i9 % 128;
int i10 = i9 % 2;
int length = cArr2.length;
char[] cArr3 = new char[length];
int i11 = 0;
while (i11 < length) {
int i12 = $11 + 45;
$10 = i12 % 128;
int i13 = i12 % i2;
try {
Object[] objArr2 = new Object[1];
objArr2[i4] = Integer.valueOf(cArr2[i11]);
Object obj = xzZ.y.get(1645349359);
if (obj != null) {
cArr = cArr2;
} else {
Class cls = (Class) xzZ.c(223 - TextUtils.indexOf("", "", i4), 5 - (Process.myTid() >> 22), (char) (42025 - AndroidCharacter.getMirror('0')));
byte b = (byte) i4;
cArr = cArr2;
Object[] objArr3 = new Object[1];
aO((byte) 7, b, b, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(1645349359, obj);
}
cArr3[i11] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
i11++;
cArr2 = cArr;
i2 = 2;
i4 = 0;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
cArr2 = cArr3;
}
char[] cArr4 = new char[i6];
System.arraycopy(cArr2, i5, cArr4, 0, i6);
if (bArr != null) {
int i14 = $11 + 29;
$10 = i14 % 128;
int i15 = i14 % 2;
char[] cArr5 = new char[i6];
tvh.c = 0;
char c = 0;
while (tvh.c < i6) {
int i16 = $10 + 81;
$11 = i16 % 128;
int i17 = i16 % 2;
if (bArr[tvh.c] == 1) {
int i18 = tvh.c;
Object[] objArr4 = {Integer.valueOf(cArr4[tvh.c]), Integer.valueOf(c)};
Object obj2 = xzZ.y.get(850398076);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(TextUtils.getOffsetAfter("", 0) + 502, (Process.myTid() >> 22) + 5, (char) (Color.blue(0) + 54))).getMethod("F", Integer.TYPE, Integer.TYPE);
xzZ.y.put(850398076, obj2);
}
cArr5[i18] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue();
} else {
int i19 = tvh.c;
Object[] objArr5 = {Integer.valueOf(cArr4[tvh.c]), Integer.valueOf(c)};
Object obj3 = xzZ.y.get(1084521042);
if (obj3 == null) {
obj3 = ((Class) xzZ.c(15 - (Process.myPid() >> 22), 5 - (ViewConfiguration.getMaximumFlingVelocity() >> 16), (char) (58134 - (ViewConfiguration.getEdgeSlop() >> 16)))).getMethod("H", Integer.TYPE, Integer.TYPE);
xzZ.y.put(1084521042, obj3);
}
cArr5[i19] = ((Character) ((Method) obj3).invoke(null, objArr5)).charValue();
}
c = cArr5[tvh.c];
Object[] objArr6 = {tvh, tvh};
Object obj4 = xzZ.y.get(1698744941);
if (obj4 == null) {
Class cls2 = (Class) xzZ.c(TextUtils.lastIndexOf("", '0') + 403, 5 - (ViewConfiguration.getTapTimeout() >> 16), (char) (21609 - (SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1))));
byte b2 = (byte) 5;
byte b3 = (byte) (b2 - 5);
Object[] objArr7 = new Object[1];
aO(b2, b3, b3, objArr7);
obj4 = cls2.getMethod((String) objArr7[0], Object.class, Object.class);
xzZ.y.put(1698744941, obj4);
}
((Method) obj4).invoke(null, objArr6);
}
cArr4 = cArr5;
}
if (i8 > 0) {
char[] cArr6 = new char[i6];
i = 0;
System.arraycopy(cArr4, 0, cArr6, 0, i6);
int i20 = i6 - i8;
System.arraycopy(cArr6, 0, cArr4, i20, i8);
System.arraycopy(cArr6, i8, cArr4, 0, i20);
} else {
i = 0;
}
if (z) {
char[] cArr7 = new char[i6];
while (true) {
tvh.c = i;
if (tvh.c >= i6) {
break;
}
cArr7[tvh.c] = cArr4[(i6 - tvh.c) - 1];
i = tvh.c + 1;
}
int i21 = $10 + 5;
$11 = i21 % 128;
int i22 = i21 % 2;
cArr4 = cArr7;
}
if (i7 > 0) {
int i23 = 0;
while (true) {
tvh.c = i23;
if (tvh.c >= i6) {
break;
}
cArr4[tvh.c] = (char) (cArr4[tvh.c] - iArr[2]);
i23 = tvh.c + 1;
}
}
objArr[0] = new String(cArr4);
}
private static /* synthetic */ Object e(Object[] objArr) {
BaseNtbInstructionActivity baseNtbInstructionActivity = (BaseNtbInstructionActivity) objArr[0];
String str = (String) objArr[1];
int i = 2 % 2;
int i2 = k + 95;
l = i2 % 128;
int i3 = i2 % 2;
baseNtbInstructionActivity.b = str;
baseNtbInstructionActivity.j();
int i4 = l + 83;
k = i4 % 128;
if (i4 % 2 != 0) {
return null;
}
throw null;
}
@Override // o.fIY.Sts
public final void o(String str) {
int i = 2 % 2;
int i2 = l + 43;
k = i2 % 128;
int i3 = i2 % 2;
p(str);
if (i3 == 0) {
Object obj = null;
obj.hashCode();
throw null;
}
int i4 = l + 1;
k = i4 % 128;
int i5 = i4 % 2;
}
@Override // o.fIY.HBt
public final void e(String str) {
int i = 2 % 2;
int i2 = l + 13;
k = i2 % 128;
int i3 = i2 % 2;
p(str);
int i4 = l + 39;
k = i4 % 128;
int i5 = i4 % 2;
}
@Override // o.fIY.IeS
public final void s() {
int i = 2 % 2;
Fragment findFragmentById = getSupportFragmentManager().findFragmentById(R.id.container);
if (findFragmentById instanceof FillInformationFragment) {
int i2 = k + 125;
l = i2 % 128;
int i3 = i2 % 2;
p(getString(R.string.ntb_fillinformation_personal_info_page));
return;
}
if (findFragmentById instanceof ContactInfoFragment) {
p(getString(R.string.ntb_fillinformation_contact_info_page));
return;
}
if (findFragmentById instanceof OccupationInfoFragment) {
int i4 = l + 113;
k = i4 % 128;
int i5 = i4 % 2;
String string = getString(R.string.ntb_fillinformation_occupation_info_page);
if (i5 != 0) {
p(string);
return;
}
p(string);
Object obj = null;
obj.hashCode();
throw null;
}
}
/* JADX WARN: Code restructure failed: missing block: B:10:0x0030, code lost:
return true;
*/
/* JADX WARN: Code restructure failed: missing block: B:11:0x0032, code lost:
r5 = null;
r5.hashCode();
*/
/* JADX WARN: Code restructure failed: missing block: B:12:0x0036, code lost:
throw null;
*/
/* JADX WARN: Code restructure failed: missing block: B:14:0x0020, code lost:
if (16908332 == r5.getItemId()) goto L9;
*/
/* JADX WARN: Code restructure failed: missing block: B:4:0x0019, code lost:
if (16908332 == r5.getItemId()) goto L9;
*/
/* JADX WARN: Code restructure failed: missing block: B:6:0x003b, code lost:
return super.onOptionsItemSelected(r5);
*/
/* JADX WARN: Code restructure failed: missing block: B:8:0x0022, code lost:
g();
r5 = com.scb.phone.view.activity.ntb.BaseNtbInstructionActivity.k + 25;
com.scb.phone.view.activity.ntb.BaseNtbInstructionActivity.l = r5 % 128;
*/
/* JADX WARN: Code restructure failed: missing block: B:9:0x002e, code lost:
if ((r5 % 2) != 0) goto L13;
*/
@Override // com.scb.phone.view.activity.BaseActivity, android.app.Activity
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public boolean onOptionsItemSelected(android.view.MenuItem r5) {
/*
r4 = this;
r0 = 2
int r1 = r0 % r0
int r1 = com.scb.phone.view.activity.ntb.BaseNtbInstructionActivity.l
int r1 = r1 + 81
int r2 = r1 % 128
com.scb.phone.view.activity.ntb.BaseNtbInstructionActivity.k = r2
int r1 = r1 % r0
r2 = 16908332(0x102002c, float:2.3877352E-38)
if (r1 != 0) goto L1c
int r1 = r5.getItemId()
r3 = 64
int r3 = r3 / 0
if (r2 != r1) goto L37
goto L22
L1c:
int r1 = r5.getItemId()
if (r2 != r1) goto L37
L22:
r4.g()
int r5 = com.scb.phone.view.activity.ntb.BaseNtbInstructionActivity.k
int r5 = r5 + 25
int r1 = r5 % 128
com.scb.phone.view.activity.ntb.BaseNtbInstructionActivity.l = r1
int r5 = r5 % r0
if (r5 != 0) goto L32
r5 = 1
return r5
L32:
r5 = 0
r5.hashCode()
throw r5
L37:
boolean r5 = super.onOptionsItemSelected(r5)
return r5
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.ntb.BaseNtbInstructionActivity.onOptionsItemSelected(android.view.MenuItem):boolean");
}
@Override // androidx.activity.ComponentActivity, android.app.Activity
public void onBackPressed() {
int i = 2 % 2;
int i2 = l + 85;
k = i2 % 128;
int i3 = i2 % 2;
g();
int i4 = l + 105;
k = i4 % 128;
int i5 = i4 % 2;
}
private void g() {
int i = 2 % 2;
int i2 = k + 105;
l = i2 % 128;
int i3 = i2 % 2;
Fragment findFragmentById = getSupportFragmentManager().findFragmentById(R.id.container);
if (findFragmentById instanceof FatcaLandingQuestionFragment) {
int i4 = k + 31;
l = i4 % 128;
if (i4 % 2 != 0) {
boolean z = ((FatcaLandingQuestionFragment) findFragmentById).getChildFragmentManager().findFragmentById(R.id.fatca_containner) instanceof FatcaQuestionnaireFragment;
throw null;
}
FatcaLandingQuestionFragment fatcaLandingQuestionFragment = (FatcaLandingQuestionFragment) findFragmentById;
if (!(fatcaLandingQuestionFragment.getChildFragmentManager().findFragmentById(R.id.fatca_containner) instanceof FatcaQuestionnaireFragment)) {
fatcaLandingQuestionFragment.h();
return;
} else {
yRS childFragmentManager = fatcaLandingQuestionFragment.getChildFragmentManager();
((Boolean) yRS.c(new Object[]{childFragmentManager}, 1273581602, -1273581599, System.identityHashCode(childFragmentManager))).booleanValue();
return;
}
}
if (findFragmentById instanceof SelectAccountFragment) {
int i5 = k + 95;
l = i5 % 128;
if (i5 % 2 == 0) {
((SelectAccountFragment) findFragmentById).h();
p(getString(R.string.select_account_title));
return;
} else {
((SelectAccountFragment) findFragmentById).h();
p(getString(R.string.select_account_title));
int i6 = 81 / 0;
return;
}
}
if (findFragmentById instanceof FillInformationFragment) {
final FillInformationFragment fillInformationFragment = (FillInformationFragment) findFragmentById;
if (fillInformationFragment.getFragmentManager().t() == 0) {
((CustomDialog) CustomDialog.e(new Object[]{CustomDialog.b(fillInformationFragment.getContext()).c(R.string.ntb_pop_up_title_exit).d(R.string.ntb_pop_up_message_exit), Integer.valueOf(R.string.cancel), new DialogInterface.OnClickListener() { // from class: o.fqL
@Override // android.content.DialogInterface.OnClickListener
public final void onClick(DialogInterface dialogInterface, int i7) {
dialogInterface.dismiss();
}
}})).aoT_(R.string.ok, new DialogInterface.OnClickListener(fillInformationFragment) { // from class: o.fqH
private FillInformationFragment b;
@Override // android.content.DialogInterface.OnClickListener
public final void onClick(DialogInterface dialogInterface, int i7) {
FillInformationFragment.awp_(this.b, dialogInterface);
}
{
this.b = fillInformationFragment;
}
}).show();
return;
}
fillInformationFragment.getFragmentManager().H();
fIY.HBt hBt = fillInformationFragment.c;
if (hBt != null) {
hBt.e(fillInformationFragment.getString(R.string.ntb_fillinformation_personal_info_page));
}
int i7 = l + 71;
k = i7 % 128;
int i8 = i7 % 2;
return;
}
if (!(findFragmentById instanceof ContactInfoFragment) && !(findFragmentById instanceof OccupationInfoFragment) && !(findFragmentById instanceof BaseAddressFragment)) {
int i9 = k + 91;
l = i9 % 128;
int i10 = i9 % 2;
if (!(findFragmentById instanceof OccupationSearchFragment) && !(findFragmentById instanceof ReviewInfoFragment)) {
if (findFragmentById instanceof EkycFragment) {
((EkycFragment) findFragmentById).f();
return;
}
if (!(findFragmentById instanceof NdidInstructionFragment)) {
super.onBackPressed();
return;
}
final C4414bZh c4414bZh = ((NdidInstructionFragment) findFragmentById).presenter;
ZI.IeS ieS = new ZI.IeS(c4414bZh) { // from class: o.bZj
private C4414bZh b;
@Override // o.ZI.IeS
public final void e(Object obj) {
C4414bZh.a(this.b, (InterfaceC9486dke) obj);
}
{
this.b = c4414bZh;
}
};
if (c4414bZh.f != 0) {
int i11 = k + 75;
l = i11 % 128;
int i12 = i11 % 2;
ieS.e(c4414bZh.f);
return;
}
return;
}
}
if (findFragmentById instanceof BaseAddressFragment) {
if (findFragmentById.getTargetFragment() instanceof ContactInfoFragment) {
ContactInfoFragment contactInfoFragment = (ContactInfoFragment) findFragmentById.getTargetFragment();
ContactInfoFragment.a(new Object[]{contactInfoFragment}, -759940571, 759940574, System.identityHashCode(contactInfoFragment));
p(getString(R.string.ntb_fillinformation_contact_info_page));
int i13 = l + 51;
k = i13 % 128;
int i14 = i13 % 2;
} else if (findFragmentById.getTargetFragment() instanceof OccupationInfoFragment) {
OccupationInfoFragment occupationInfoFragment = (OccupationInfoFragment) findFragmentById.getTargetFragment();
C6927cee c6927cee = occupationInfoFragment.occupationInformationPresenter;
String obj = occupationInfoFragment.textCompanyName.mEditText.getText().toString();
int selectedItemPosition = occupationInfoFragment.spinnerSourceOfIncome.getSelectedItemPosition();
C6927cee.c(new Object[]{c6927cee, obj, Integer.valueOf(selectedItemPosition)}, -1611645137, 1611645142, selectedItemPosition);
p(getString(R.string.ntb_fillinformation_occupation_info_page));
}
}
getSupportFragmentManager().H();
}
@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;
int i4 = k + 25;
l = i4 % 128;
int i5 = i4 % 2;
super.onActivityResult(i, i2, intent);
if (i == 27) {
int i6 = l + 99;
k = i6 % 128;
int i7 = i6 % 2;
j();
if (i7 == 0) {
int i8 = 98 / 0;
}
int i9 = k + 115;
l = i9 % 128;
int i10 = i9 % 2;
}
int i11 = l + 115;
k = i11 % 128;
if (i11 % 2 != 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
private void j() {
int i = 2 % 2;
FillInformationFragment fillInformationFragment = new FillInformationFragment();
Bundle bundle = new Bundle();
bundle.putString("BUNDLE_STAGE", this.b);
fillInformationFragment.setArguments(bundle);
AbstractC13482fbE a = getSupportFragmentManager().a();
a.b(R.id.container, fillInformationFragment, fillInformationFragment.getClass().getName(), 2);
a.b();
int i2 = l + 33;
k = i2 % 128;
int i3 = i2 % 2;
}
@Override // 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 = k + 87;
l = i2 % 128;
int i3 = i2 % 2;
Object[] objArr = new Object[1];
aN(new char[]{28408, 24614, 29535, 17048, 21938, 9445, 13851, 2304, 6256, 60336, 64195, 52300, 57108, 44647, 41347, 45263, 33791, 38161, 25695, 30563, 18073, 22996, 11037, 14907, 3424, 7316}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.hml_external_authentication_intro).substring(109, 110).length() + 3792, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
aL(new int[]{18, 18, 0, 0}, true, new byte[]{0, 1, 0, 1, 1, 0, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1, 0}, objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
int i4 = k + 1;
l = i4 % 128;
int i5 = i4 % 2;
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
int i6 = k + 5;
l = i6 % 128;
int i7 = i6 % 2;
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(492 - KeyEvent.keyCodeFromString(""), 5 - Color.argb(0, 0, 0, 0), (char) TextUtils.indexOf("", ""))).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(487 - Drawable.resolveOpacity(0, 0), (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)) + 5, (char) (TextUtils.indexOf((CharSequence) "", '0') + 1))).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();
}
@Override // 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();
if (baseContext == null) {
Object[] objArr = new Object[1];
aN(new char[]{28408, 24614, 29535, 17048, 21938, 9445, 13851, 2304, 6256, 60336, 64195, 52300, 57108, 44647, 41347, 45263, 33791, 38161, 25695, 30563, 18073, 22996, 11037, 14907, 3424, 7316}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.taking_photo_bank_statement_description_details).substring(64, 65).codePointAt(0) + 3761, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
aL(new int[]{18, 18, 0, 0}, true, new byte[]{0, 1, 0, 1, 1, 0, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1, 0}, objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
int i2 = l + 61;
k = i2 % 128;
int i3 = i2 % 2;
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c((ViewConfiguration.getMinimumFlingVelocity() >> 16) + 492, 4 - ImageFormat.getBitsPerPixel(0), (char) ((ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)) - 1))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr3 = {baseContext};
Object obj2 = xzZ.y.get(1633456013);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(487 - (ViewConfiguration.getJumpTapTimeout() >> 16), (ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)) + 4, (char) (1 - (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1))))).getMethod("c", Context.class);
xzZ.y.put(1633456013, obj2);
}
((Method) obj2).invoke(invoke, objArr3);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
super.onPause();
int i4 = l + 93;
k = i4 % 128;
int i5 = i4 % 2;
}
@Override // 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) {
Context context2;
int i = 2 % 2;
int i2 = k + 99;
l = i2 % 128;
int i3 = i2 % 2;
super.attachBaseContext(context);
Object[] objArr = new Object[1];
aL(new int[]{0, 18, 36, 15}, true, null, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
aN(new char[]{28404, 51977, 9502, 40779, 63833}, 42473 - (ViewConfiguration.getFadingEdgeLength() >> 16), objArr2);
int intValue = ((Integer) cls.getDeclaredMethod((String) objArr2[0], new Class[0]).invoke(null, new Object[0])).intValue() % 100000;
if (intValue < 99000 || intValue > 99999) {
if (context != null) {
int i4 = l + 77;
k = i4 % 128;
int i5 = i4 % 2;
context2 = context.getApplicationContext();
} else {
context2 = context;
}
if (context2 != null) {
int i6 = k + 115;
l = i6 % 128;
int i7 = i6 % 2;
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(493 - (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)), ExpandableListView.getPackedPositionChild(0L) + 6, (char) View.resolveSize(0, 0))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr3 = new Object[1];
aN(new char[]{28328, 8803, 63287, 34972, 23966, 61179, 41521, 30563, 2195, 56725, 28329, 8759, 63286, 34962, 23964, 61090, 41515, 30519, 2241, 56726, 28334, 8828, 63334, 35019, 24007, 61098, 41512, 30515, 2198, 56729, 28411, 8827, 63240, 35009, 23963, 61103, 41515, 30557, 2197, 56768, 28323, 8824, 63234, 35011, 24006, 61096, 41514, 30478}, (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)) + 19660, objArr3);
String str = (String) objArr3[0];
Object[] objArr4 = new Object[1];
aL(new int[]{36, 64, 0, 35}, true, new byte[]{1, 0, 0, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 0, 1, 0}, objArr4);
String str2 = (String) objArr4[0];
Object[] objArr5 = new Object[1];
aL(new int[]{100, 64, 41, 54}, false, new byte[]{0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 1}, objArr5);
String str3 = (String) objArr5[0];
Object[] objArr6 = new Object[1];
aN(new char[]{28401, 22188, 7791, 50730, 36846, 30694, 16176, 59249, 44258, 38073, 23666, 1087, 52726, 46523, 32122, 9531, 60140, 53946, 39528, 16931, 3052, 62368, 47981, 25391, 10479, 4267, 55341, 32822, 18925, 12726, 63842, 41255, 26317, 11931, 5722, 56841, 34761, 20434, 14168, 65291, 42192, 27778, 21591, 7169, 50628, 36225, 30038, 15620, 58060, 43718, 37448, 23045, 960, 52163, 45902, 31518, 8392, 59599, 53322, 38924, 16834, 2433, 61780, 47378, 32502, 9838, 61033, 55221, 40888, 18282, 3898, 62704, 48293, 25699}, View.getDefaultSize(0, 0) + 14401, objArr6);
String str4 = (String) objArr6[0];
Object[] objArr7 = new Object[1];
aN(new char[]{28320, 32336, 20335, 23554, 11573}, TextUtils.indexOf((CharSequence) "", '0', 0) + 4328, objArr7);
String str5 = (String) objArr7[0];
Object[] objArr8 = new Object[1];
aL(new int[]{CipherSuite.TLS_DH_DSS_WITH_AES_128_GCM_SHA256, 36, 78, 28}, false, new byte[]{1, 1, 0, 1, 1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0}, objArr8);
Object[] objArr9 = {context2, str, str2, str3, str4, true, str5, (String) objArr8[0]};
Object obj2 = xzZ.y.get(1656189573);
if (obj2 == null) {
obj2 = ((Class) xzZ.c((ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)) + 488, 5 - ExpandableListView.getPackedPositionGroup(0L), (char) (CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)))).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);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
}
}
@Override // 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 = l + 89;
k = i2 % 128;
int i3 = i2 % 2;
super.onStart();
if (i3 == 0) {
throw null;
}
int i4 = l + 13;
k = i4 % 128;
int i5 = i4 % 2;
}
public final void b(Fragment fragment) {
d(new Object[]{this, fragment}, -249637643, 249637643, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 555180430);
}
@Override // o.fIY.Sts
public final void d(String str) {
d(new Object[]{this, str}, 149843351, -149843350, ((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) - 1925334114);
}
@Override // o.InterfaceC12818fIA
public final void f() {
d(new Object[]{this}, 1217531969, -1217531967, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(8) + 1104387584);
}
}