what-the-bank/sources/com/scb/phone/view/activity/promptpay/PromptPayQRActivity.java

912 lines
40 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.activity.promptpay;
import android.content.Context;
import android.graphics.Color;
import android.graphics.ImageFormat;
import android.graphics.PointF;
import android.media.AudioTrack;
import android.os.Process;
import android.os.SystemClock;
import android.text.AndroidCharacter;
import android.text.TextUtils;
import android.util.TypedValue;
import android.view.Gravity;
import android.view.KeyEvent;
import android.view.MenuItem;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import androidx.appcompat.widget.Toolbar;
import androidx.fragment.app.Fragment;
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.fragment.promptpay.PromptPayQRSuccessFragment;
import com.scb.phone.view.fragment.requesttopay.RequirePromptPayFragment;
import java.lang.reflect.Method;
import net.sf.scuba.smartcards.ISO7816;
import o.AbstractActivityC11646ejK;
import o.AbstractC13482fbE;
import o.C4403bZM;
import o.C7882cwi;
import o.InterfaceC13391fZD;
import o.InterfaceC8975daw;
import o.dCK;
import o.fSJ;
import o.guQ;
import o.jTb;
import o.xit;
import o.xzZ;
/* loaded from: classes5.dex */
public class PromptPayQRActivity extends AbstractActivityC11646ejK implements InterfaceC8975daw.Sts {
/* renamed from: o, reason: collision with root package name */
private fSJ f7834o;
@InterfaceC13391fZD
public C7882cwi promptPayQRPresenter;
private static final byte[] $$p = {ISO7816.INS_DECREASE_STAMPED, 125, -39, -65};
private static final int $$q = 220;
private static int $10 = 0;
private static int $11 = 1;
private static int s = 0;
private static int t = 1;
private static char k = 58726;
private static char m = 44537;
private static char l = 14918;
private static char p = 777;
private static int[] r = {-1703732495, -1366816619, 2113358806, 1927298702, 627948989, 1218459139, -1181778131, -2073352554, -970584104, -690328284, 1305895876, -898697994, 1486664945, -1843766265, -933774097, -127484054, 189779980, 1740593938};
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Removed duplicated region for block: B:10:0x0027 */
/* JADX WARN: Removed duplicated region for block: B:7:0x001f */
/* JADX WARN: Type inference failed for: r9v1, types: [int] */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0027 -> 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 aC(byte r7, byte r8, byte r9, java.lang.Object[] r10) {
/*
int r7 = r7 * 3
int r7 = 3 - r7
int r9 = r9 + 66
int r8 = r8 * 4
int r8 = 1 - r8
byte[] r0 = com.scb.phone.view.activity.promptpay.PromptPayQRActivity.$$p
byte[] r1 = new byte[r8]
r2 = 0
if (r0 != 0) goto L15
r3 = r9
r5 = r2
r9 = r7
goto L2c
L15:
r3 = r2
L16:
int r7 = r7 + 1
byte r4 = (byte) r9
int r5 = r3 + 1
r1[r3] = r4
if (r5 != r8) goto L27
java.lang.String r7 = new java.lang.String
r7.<init>(r1, r2)
r10[r2] = r7
return
L27:
r3 = r0[r7]
r6 = r9
r9 = r7
r7 = r6
L2c:
int r3 = -r3
int r7 = r7 + r3
r3 = r5
r6 = r9
r9 = r7
r7 = r6
goto L16
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.promptpay.PromptPayQRActivity.aC(byte, byte, byte, java.lang.Object[]):void");
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: com.scb.phone.view.activity.promptpay.PromptPayQRActivity$4, reason: invalid class name */
/* loaded from: classes5.dex */
public static /* synthetic */ class AnonymousClass4 {
static final int[] e;
static {
int[] iArr = new int[xit.values().length];
e = iArr;
try {
iArr[xit.NO_PROMPTPAY.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
e[xit.PROMPT_PAY_QR_EDIT.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
e[xit.PROMPT_PAY_QR_SUCCESS.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
try {
e[xit.NO_RTP.ordinal()] = 4;
} catch (NoSuchFieldError unused4) {
}
try {
e[xit.HAVE_PROMPTPAY_WITH_RTP.ordinal()] = 5;
} catch (NoSuchFieldError unused5) {
}
}
}
private static void aA(char[] cArr, int i, Object[] objArr) {
int i2 = 2;
int i3 = 2 % 2;
jTb jtb = new jTb();
char[] cArr2 = new char[cArr.length];
int i4 = 0;
jtb.b = 0;
char[] cArr3 = new char[2];
int i5 = $10 + 95;
$11 = i5 % 128;
int i6 = i5 % 2;
while (jtb.b < cArr.length) {
cArr3[i4] = cArr[jtb.b];
cArr3[1] = cArr[jtb.b + 1];
int i7 = 58224;
int i8 = i4;
while (i8 < 16) {
int i9 = $11 + 93;
$10 = i9 % 128;
int i10 = i9 % i2;
char c = cArr3[1];
char c2 = cArr3[i4];
int i11 = (c2 + i7) ^ ((c2 << 4) + ((char) (l ^ 41718355337583039L)));
int i12 = c2 >>> 5;
try {
Object[] objArr2 = new Object[4];
objArr2[3] = Integer.valueOf(p);
objArr2[i2] = Integer.valueOf(i12);
objArr2[1] = Integer.valueOf(i11);
objArr2[i4] = Integer.valueOf(c);
Object obj = xzZ.y.get(597144044);
if (obj == null) {
Class cls = (Class) xzZ.c(TextUtils.indexOf("", "") + 412, 5 - TextUtils.indexOf("", ""), (char) (ViewConfiguration.getFadingEdgeLength() >> 16));
byte b = (byte) i4;
byte b2 = b;
Object[] objArr3 = new Object[1];
aC(b, b2, b2, objArr3);
String str = (String) objArr3[i4];
Class<?>[] clsArr = new Class[4];
clsArr[i4] = Integer.TYPE;
clsArr[1] = Integer.TYPE;
clsArr[2] = Integer.TYPE;
clsArr[3] = Integer.TYPE;
obj = cls.getMethod(str, clsArr);
xzZ.y.put(597144044, obj);
}
char charValue = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
cArr3[1] = charValue;
char[] cArr4 = cArr3;
Object[] objArr4 = {Integer.valueOf(cArr3[i4]), Integer.valueOf((charValue + i7) ^ ((charValue << 4) + ((char) (k ^ 41718355337583039L)))), Integer.valueOf(charValue >>> 5), Integer.valueOf(m)};
Object obj2 = xzZ.y.get(597144044);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(412 - (ViewConfiguration.getScrollBarSize() >> 8), 5 - (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (char) TextUtils.getCapsMode("", 0, 0));
byte b3 = (byte) 0;
byte b4 = b3;
Object[] objArr5 = new Object[1];
aC(b3, b4, b4, objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE, Integer.TYPE, Integer.TYPE, Integer.TYPE);
xzZ.y.put(597144044, obj2);
}
cArr4[0] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue();
i7 -= 40503;
i8++;
cArr3 = cArr4;
i2 = 2;
i4 = 0;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
char[] cArr5 = cArr3;
cArr2[jtb.b] = cArr5[0];
cArr2[jtb.b + 1] = cArr5[1];
Object[] objArr6 = {jtb, jtb};
Object obj3 = xzZ.y.get(943004485);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c(Gravity.getAbsoluteGravity(0, 0) + 98, TextUtils.getOffsetAfter("", 0) + 5, (char) View.combineMeasuredStates(0, 0));
byte b5 = (byte) 0;
byte b6 = b5;
Object[] objArr7 = new Object[1];
aC(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);
cArr3 = cArr5;
i2 = 2;
i4 = 0;
}
String str2 = new String(cArr2, 0, i);
int i13 = $11 + 49;
$10 = i13 % 128;
int i14 = i13 % 2;
objArr[0] = str2;
}
private static void aB(int[] iArr, int i, Object[] objArr) {
int i2;
int i3;
int i4 = 2 % 2;
C4403bZM c4403bZM = new C4403bZM();
char[] cArr = new char[4];
char[] cArr2 = new char[iArr.length * 2];
int[] iArr2 = r;
float f = BitmapDescriptorFactory.HUE_RED;
int i5 = 729798706;
int i6 = 1;
char c = 0;
if (iArr2 != null) {
int length = iArr2.length;
int[] iArr3 = new int[length];
int i7 = 0;
while (i7 < length) {
try {
Object[] objArr2 = new Object[i6];
objArr2[c] = Integer.valueOf(iArr2[i7]);
Object obj = xzZ.y.get(729798706);
if (obj == null) {
obj = ((Class) xzZ.c(14 - TextUtils.lastIndexOf("", '0'), 5 - (PointF.length(f, f) > f ? 1 : (PointF.length(f, f) == f ? 0 : -1)), (char) (58133 - TextUtils.indexOf((CharSequence) "", '0')))).getMethod("i", Integer.TYPE);
xzZ.y.put(729798706, obj);
}
iArr3[i7] = ((Integer) ((Method) obj).invoke(null, objArr2)).intValue();
i7++;
f = BitmapDescriptorFactory.HUE_RED;
i6 = 1;
c = 0;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
int i8 = $10 + 79;
$11 = i8 % 128;
int i9 = i8 % 2;
iArr2 = iArr3;
}
int length2 = iArr2.length;
int[] iArr4 = new int[length2];
int[] iArr5 = r;
if (iArr5 != null) {
int length3 = iArr5.length;
int[] iArr6 = new int[length3];
int i10 = 0;
while (i10 < length3) {
int i11 = $11 + 61;
$10 = i11 % 128;
if (i11 % 2 != 0) {
try {
Object[] objArr3 = {Integer.valueOf(iArr5[i10])};
Object obj2 = xzZ.y.get(Integer.valueOf(i5));
if (obj2 != null) {
i2 = length3;
} else {
obj2 = ((Class) xzZ.c(Color.alpha(0) + 15, '5' - AndroidCharacter.getMirror('0'), (char) ((ViewConfiguration.getMaximumFlingVelocity() >> 16) + 58134))).getMethod("i", Integer.TYPE);
i2 = length3;
xzZ.y.put(729798706, obj2);
}
iArr6[i10] = ((Integer) ((Method) obj2).invoke(null, objArr3)).intValue();
i10 <<= 1;
length3 = i2;
i5 = 729798706;
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 == null) {
throw th2;
}
throw cause2;
}
} else {
int i12 = length3;
Object[] objArr4 = {Integer.valueOf(iArr5[i10])};
Object obj3 = xzZ.y.get(729798706);
if (obj3 != null) {
i3 = 729798706;
} else {
obj3 = ((Class) xzZ.c((ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)) + 14, 5 - (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (char) (TextUtils.indexOf("", "") + 58134))).getMethod("i", Integer.TYPE);
i3 = 729798706;
xzZ.y.put(729798706, obj3);
}
iArr6[i10] = ((Integer) ((Method) obj3).invoke(null, objArr4)).intValue();
i10++;
i5 = i3;
length3 = i12;
}
}
iArr5 = iArr6;
}
char c2 = 0;
System.arraycopy(iArr5, 0, iArr4, 0, length2);
c4403bZM.b = 0;
while (c4403bZM.b < iArr.length) {
cArr[c2] = (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(iArr4);
int i13 = $10 + 25;
$11 = i13 % 128;
int i14 = 2;
int i15 = i13 % 2;
int i16 = 0;
while (i16 < 16) {
int i17 = $11 + 123;
$10 = i17 % 128;
int i18 = i17 % i14;
c4403bZM.e ^= iArr4[i16];
Object[] objArr5 = {c4403bZM, Integer.valueOf(C4403bZM.d(c4403bZM.e)), c4403bZM, c4403bZM};
Object obj4 = xzZ.y.get(-1196964548);
if (obj4 == null) {
Class cls = (Class) xzZ.c(TextUtils.indexOf((CharSequence) "", '0', 0) + 119, MotionEvent.axisFromString("") + 6, (char) (ViewConfiguration.getScrollDefaultDelay() >> 16));
byte b = (byte) 0;
byte b2 = b;
Object[] objArr6 = new Object[1];
aC(b, b2, (byte) (b2 | 38), objArr6);
obj4 = cls.getMethod((String) objArr6[0], Object.class, Integer.TYPE, Object.class, Object.class);
xzZ.y.put(-1196964548, obj4);
}
int intValue = ((Integer) ((Method) obj4).invoke(null, objArr5)).intValue();
c4403bZM.e = c4403bZM.a;
c4403bZM.a = intValue;
i16++;
i14 = 2;
}
int i19 = c4403bZM.e;
c4403bZM.e = c4403bZM.a;
c4403bZM.a = i19;
c4403bZM.a ^= iArr4[16];
c4403bZM.e ^= iArr4[17];
int i20 = c4403bZM.e;
int i21 = 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(iArr4);
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[] objArr7 = {c4403bZM, c4403bZM};
Object obj5 = xzZ.y.get(1914371176);
if (obj5 == null) {
Class cls2 = (Class) xzZ.c(98 - View.resolveSize(0, 0), TextUtils.indexOf("", "", 0, 0) + 5, (char) (Process.myTid() >> 22));
byte b3 = (byte) 0;
byte b4 = b3;
Object[] objArr8 = new Object[1];
aC(b3, b4, (byte) (b4 | ISO7816.INS_CHANGE_CHV), objArr8);
obj5 = cls2.getMethod((String) objArr8[0], Object.class, Object.class);
xzZ.y.put(1914371176, obj5);
}
((Method) obj5).invoke(null, objArr7);
c2 = 0;
}
objArr[0] = new String(cArr2, 0, i);
}
/* JADX WARN: Code restructure failed: missing block: B:4:0x0067, code lost:
if (r3 > 99999) goto L6;
*/
/* JADX WARN: Removed duplicated region for block: B:12:0x0312 */
/* JADX WARN: Removed duplicated region for block: B:15:0x032e A[RETURN] */
/* JADX WARN: Removed duplicated region for block: B:17:0x032f */
@Override // o.AbstractActivityC11646ejK, 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: 1208
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.promptpay.PromptPayQRActivity.onCreate(android.os.Bundle):void");
}
@Override // com.scb.phone.view.activity.BaseActivity
public final void Z() {
int i = 2 % 2;
int i2 = s + 17;
t = i2 % 128;
int i3 = i2 % 2;
super.Z();
ac();
p(getString(R.string.create_promptpay_qr));
this.i.d(this.i.c() | 16);
this.i.f();
int i4 = s + 113;
t = i4 % 128;
int i5 = i4 % 2;
}
private void c(xit xitVar) {
int i;
int i2 = 2 % 2;
int i3 = s + 25;
t = i3 % 128;
if (i3 % 2 != 0 ? (i = AnonymousClass4.e[xitVar.ordinal()]) == 1 : (i = AnonymousClass4.e[xitVar.ordinal()]) == 1) {
if (this.mToolbar != null) {
int i4 = t + 91;
s = i4 % 128;
int i5 = i4 % 2;
this.mToolbar.setVisibility(0);
}
p(getString(R.string.qr_code_generation_create));
AbstractC13482fbE a = getSupportFragmentManager().a();
a.b(R.id.fragment_container, RequirePromptPayFragment.e(false, dCK.PROMPTPAY_QR), null, 2);
a.b();
return;
}
if (i != 2) {
if (i == 3) {
g();
}
} else {
f();
int i6 = s + 47;
t = i6 % 128;
int i7 = i6 % 2;
}
}
@Override // com.scb.phone.view.activity.BaseActivity, com.scb.phone.view.activity.PreLoadCheckActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, android.app.Activity
public void onDestroy() {
int i = 2 % 2;
int i2 = s + 49;
int i3 = i2 % 128;
t = i3;
int i4 = i2 % 2;
fSJ fsj = this.f7834o;
if (fsj != null) {
int i5 = i3 + 19;
s = i5 % 128;
if (i5 % 2 != 0) {
fsj.isDisposed();
Object obj = null;
obj.hashCode();
throw null;
}
if (!fsj.isDisposed()) {
int i6 = s + 61;
t = i6 % 128;
int i7 = i6 % 2;
this.f7834o.dispose();
}
}
setResult(-1);
this.n.w_();
super.onDestroy();
}
@Override // o.InterfaceC8975daw.Sts
public final void a(xit xitVar) {
int i = 2 % 2;
int i2 = t + 115;
s = i2 % 128;
int i3 = i2 % 2;
c(xitVar);
if (i3 != 0) {
int i4 = 98 / 0;
}
}
public final void g() {
int i = 2 % 2;
y();
if (this.mToolbar != null) {
int i2 = s + 9;
t = i2 % 128;
int i3 = i2 % 2;
this.mToolbar.setVisibility(8);
}
AbstractC13482fbE a = getSupportFragmentManager().a();
if (!a.d) {
throw new IllegalStateException("This FragmentTransaction is not allowed to be added to the back stack.");
}
int i4 = t + 25;
s = i4 % 128;
if (i4 % 2 != 0) {
a.a = false;
a.m = "PROPMTPAY_QR_SUCCESS_FRAGMENT_TAG";
} else {
a.a = true;
a.m = "PROPMTPAY_QR_SUCCESS_FRAGMENT_TAG";
}
int i5 = s + 71;
t = i5 % 128;
int i6 = i5 % 2;
a.b(R.id.fragment_container, PromptPayQRSuccessFragment.d(), "PROPMTPAY_QR_SUCCESS_FRAGMENT_TAG", 2);
a.b();
}
/* JADX WARN: Code restructure failed: missing block: B:16:0x0021, code lost:
r1 = com.scb.phone.view.activity.promptpay.PromptPayQRActivity.s + 33;
com.scb.phone.view.activity.promptpay.PromptPayQRActivity.t = r1 % 128;
r1 = r1 % 2;
r6.mToolbar.setVisibility(0);
*/
/* JADX WARN: Code restructure failed: missing block: B:18:0x001f, code lost:
if (r6.mToolbar != null) goto L9;
*/
/* JADX WARN: Code restructure failed: missing block: B:4:0x0017, code lost:
if (r6.mToolbar != null) goto L9;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void f() {
/*
r6 = this;
r0 = 2
int r1 = r0 % r0
int r1 = com.scb.phone.view.activity.promptpay.PromptPayQRActivity.s
int r1 = r1 + 9
int r2 = r1 % 128
com.scb.phone.view.activity.promptpay.PromptPayQRActivity.t = r2
int r1 = r1 % r0
r2 = 0
if (r1 != 0) goto L1a
r6.y()
androidx.appcompat.widget.Toolbar r1 = r6.mToolbar
r3 = 27
int r3 = r3 / r2
if (r1 == 0) goto L2f
goto L21
L1a:
r6.y()
androidx.appcompat.widget.Toolbar r1 = r6.mToolbar
if (r1 == 0) goto L2f
L21:
int r1 = com.scb.phone.view.activity.promptpay.PromptPayQRActivity.s
int r1 = r1 + 33
int r3 = r1 % 128
com.scb.phone.view.activity.promptpay.PromptPayQRActivity.t = r3
int r1 = r1 % r0
androidx.appcompat.widget.Toolbar r1 = r6.mToolbar
r1.setVisibility(r2)
L2f:
r1 = 2131958212(0x7f1319c4, float:1.955303E38)
java.lang.String r1 = r6.getString(r1)
r6.p(r1)
o.yRS r1 = r6.getSupportFragmentManager()
o.fbE r1 = r1.a()
boolean r3 = r1.d
r4 = 1
if (r3 != r4) goto L73
int r3 = com.scb.phone.view.activity.promptpay.PromptPayQRActivity.s
int r3 = r3 + 11
int r5 = r3 % 128
com.scb.phone.view.activity.promptpay.PromptPayQRActivity.t = r5
int r3 = r3 % r0
java.lang.String r5 = "PROPMTPAY_QR_INPUT_FRAGMENT_TAG"
if (r3 != 0) goto L58
r1.a = r2
r1.m = r5
goto L5c
L58:
r1.a = r4
r1.m = r5
L5c:
int r2 = com.scb.phone.view.activity.promptpay.PromptPayQRActivity.t
int r2 = r2 + 3
int r3 = r2 % 128
com.scb.phone.view.activity.promptpay.PromptPayQRActivity.s = r3
int r2 = r2 % r0
com.scb.phone.view.fragment.promptpay.PromptPayQRInputFragment r2 = com.scb.phone.view.fragment.promptpay.PromptPayQRInputFragment.f()
r3 = 2131363657(0x7f0a0749, float:1.834713E38)
r1.b(r3, r2, r5, r0)
r1.b()
return
L73:
java.lang.IllegalStateException r0 = new java.lang.IllegalStateException
java.lang.String r1 = "This FragmentTransaction is not allowed to be added to the back stack."
r0.<init>(r1)
throw r0
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.promptpay.PromptPayQRActivity.f():void");
}
@Override // com.scb.phone.view.activity.BaseActivity, android.app.Activity
public boolean onOptionsItemSelected(MenuItem menuItem) {
int i = 2 % 2;
int i2 = s + 75;
t = i2 % 128;
int i3 = i2 % 2;
if (menuItem.getItemId() == 16908332) {
onBackPressed();
return true;
}
int i4 = s + 65;
t = i4 % 128;
int i5 = i4 % 2;
return false;
}
@Override // androidx.activity.ComponentActivity, android.app.Activity
public void onBackPressed() {
int i = 2 % 2;
int i2 = t + 35;
s = i2 % 128;
Object obj = null;
if (i2 % 2 != 0) {
getSupportFragmentManager().findFragmentByTag("PROPMTPAY_QR_SUCCESS_FRAGMENT_TAG");
getSupportFragmentManager().findFragmentByTag("PROPMTPAY_QR_INPUT_FRAGMENT_TAG");
obj.hashCode();
throw null;
}
Fragment findFragmentByTag = getSupportFragmentManager().findFragmentByTag("PROPMTPAY_QR_SUCCESS_FRAGMENT_TAG");
Fragment findFragmentByTag2 = getSupportFragmentManager().findFragmentByTag("PROPMTPAY_QR_INPUT_FRAGMENT_TAG");
if (findFragmentByTag == null || !findFragmentByTag.isVisible()) {
if (findFragmentByTag2 != null && findFragmentByTag2.isVisible()) {
int i3 = t + 91;
s = i3 % 128;
if (i3 % 2 != 0) {
Toolbar toolbar = this.mToolbar;
obj.hashCode();
throw null;
}
if (this.mToolbar != null) {
this.mToolbar.setVisibility(8);
}
getSupportFragmentManager().H();
getSupportFragmentManager().n();
if (getSupportFragmentManager().t() != 0) {
return;
}
}
super.onBackPressed();
int i4 = t + 27;
s = i4 % 128;
int i5 = i4 % 2;
}
}
@Override // o.AbstractActivityC11646ejK, 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 = s + 81;
t = i2 % 128;
if (i2 % 2 == 0) {
getBaseContext();
throw null;
}
Context baseContext = getBaseContext();
if (baseContext == null) {
Object[] objArr = new Object[1];
aB(new int[]{-751532781, 550452966, -266685845, -1150363608, -156787639, -1515939435, -698226084, 1145050826, 131430814, 1731499530, -1516097221, 609194687, -1406483996, -170766866}, (ViewConfiguration.getMaximumDrawingCacheSize() >> 24) + 26, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
aA(new char[]{15278, 24883, 19555, 28196, 58847, 51353, 55053, 63689, 30154, 18768, 16580, 17143, 9020, 46733, 27164, 60966, 23938, 49622}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.banking_deposits_generate_qr_title).substring(8, 9).codePointAt(0) - 14, objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
int i3 = t + 69;
s = i3 % 128;
int i4 = i3 % 2;
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(492 - (ViewConfiguration.getPressedStateDuration() >> 16), (-16777211) - Color.rgb(0, 0, 0), (char) (ViewConfiguration.getWindowTouchSlop() >> 8))).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 - TextUtils.getOffsetAfter("", 0), 5 - View.MeasureSpec.makeMeasureSpec(0, 0), (char) (ViewConfiguration.getMaximumDrawingCacheSize() >> 24))).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 i5 = t + 67;
s = i5 % 128;
if (i5 % 2 != 0) {
throw null;
}
}
@Override // o.AbstractActivityC11646ejK, 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];
aB(new int[]{-751532781, 550452966, -266685845, -1150363608, -156787639, -1515939435, -698226084, 1145050826, 131430814, 1731499530, -1516097221, 609194687, -1406483996, -170766866}, ((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];
aA(new char[]{15278, 24883, 19555, 28196, 58847, 51353, 55053, 63689, 30154, 18768, 16580, 17143, 9020, 46733, 27164, 60966, 23938, 49622}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() + 5, objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
int i2 = s + 25;
t = i2 % 128;
if (i2 % 2 == 0) {
baseContext.getApplicationContext();
obj.hashCode();
throw null;
}
baseContext = baseContext.getApplicationContext();
int i3 = t + 91;
s = i3 % 128;
int i4 = i3 % 2;
}
if (baseContext != null) {
int i5 = s + 29;
t = i5 % 128;
int i6 = i5 % 2;
try {
Object obj2 = xzZ.y.get(125943855);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(492 - (Process.myTid() >> 22), 5 - (ViewConfiguration.getScrollBarFadeDuration() >> 16), (char) (ViewConfiguration.getWindowTouchSlop() >> 8))).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(486 - ExpandableListView.getPackedPositionChild(0L), (ViewConfiguration.getKeyRepeatTimeout() >> 16) + 5, (char) View.getDefaultSize(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();
}
@Override // o.AbstractActivityC11646ejK, 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 char[]{21826, 7298, 41922, 22087, 10461, 22662, 54336, 25481, 28099, 33143, 33595, 56790, 50844, 20092, 35809, 48088, 7939, 51181}, (SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)) + 17, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
aA(new char[]{25388, 55109, 37896, 47455, 19805, 34419}, (ViewConfiguration.getPressedStateDuration() >> 16) + 5, objArr2);
int intValue = ((Integer) cls.getDeclaredMethod((String) objArr2[0], new Class[0]).invoke(null, new Object[0])).intValue() % 100000;
if (intValue >= 99000) {
int i2 = s + 3;
t = i2 % 128;
if (i2 % 2 == 0) {
throw null;
}
if (intValue <= 99999) {
return;
}
}
Context applicationContext = context != null ? context.getApplicationContext() : context;
if (applicationContext != null) {
int i3 = t + 33;
s = i3 % 128;
int i4 = i3 % 2;
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(View.resolveSizeAndState(0, 0, 0) + 492, 5 - View.MeasureSpec.getSize(0), (char) Color.argb(0, 0, 0, 0))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr3 = new Object[1];
aB(new int[]{635171165, 2032807388, -1504017923, 2003284999, 2078482330, 813616464, 864147050, -222241892, 918286780, -372767828, -905042228, 1313088552, 642516299, -1009636041, -1916644975, -918038670, -846666738, 1129004650, -155822869, -292095956, -1909157625, -1990645961, -1397704887, -267894628}, 48 - KeyEvent.keyCodeFromString(""), objArr3);
String str = (String) objArr3[0];
Object[] objArr4 = new Object[1];
aB(new int[]{232673833, -787655263, 541931550, -1970178849, -711477428, -1867115848, 350673021, -1508313882, 465996759, -1341832532, 1230399023, 761460008, -223415976, -878158233, -1611479743, -123071246, -1315895420, -1980926079, 684262674, 1635772426, -1963345540, -1451866166, -13852389, 1152319867, -233273719, 1830456047, 1763233236, 114788173, 1129187625, 464601299, -838193889, 248907967}, (ViewConfiguration.getKeyRepeatDelay() >> 16) + 64, objArr4);
String str2 = (String) objArr4[0];
Object[] objArr5 = new Object[1];
aA(new char[]{58104, 18795, 26367, 61364, 57388, 53046, 9636, 34807, 59662, 10587, 52319, 50833, 57601, 20392, 11484, 39685, 51584, 55275, 21522, 45348, 32871, 59436, 15316, 20609, 21175, 25235, 2130, 6122, 41001, 33407, 22954, 38256, 52231, 36527, 60065, 9146, 53551, 26033, 9598, 18064, 57378, 30610, 37237, 16376, 51394, 21524, 48953, 1039, 34781, 20180, 51591, 56333, 57308, 2924, 30457, 48447, 62535, 45182, 49670, 52847, 11168, 18480, 15288, 19807}, (ViewConfiguration.getPressedStateDuration() >> 16) + 64, objArr5);
String str3 = (String) objArr5[0];
Object[] objArr6 = new Object[1];
aA(new char[]{57798, 31258, 6273, 15131, 6026, 64303, 25409, 20451, 22177, 8804, 45284, 53936, 34596, 7595, 28037, 29781, 42958, 26320, 39097, 7735, 17081, 14948, 12717, 40323, 39728, 39555, 10685, 2085, 522, 39605, 36101, 53682, 1347, 48126, 63934, 34488, 53905, 38040, 17136, 37650, 32703, 40660, 2771, 57280, 35939, 21860, 32703, 40660, 49107, 28408, 34596, 7595, 20939, 46558, 3542, 4354, 26211, 34428, 4284, 64723, 30037, 47102, 64760, 47864, 48999, 50014, 47119, 39605, 8108, 40262, 58847, 51353, 32549, 20210}, 75 - (SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)), objArr6);
String str4 = (String) objArr6[0];
Object[] objArr7 = new Object[1];
aB(new int[]{2062922440, -1083107854, -412404790, 76909717}, 5 - View.getDefaultSize(0, 0), objArr7);
String str5 = (String) objArr7[0];
Object[] objArr8 = new Object[1];
aA(new char[]{36101, 53682, 7505, 57685, 33974, 53256, 16137, 42840, 28455, 7370, 7333, 51071, 51724, 44852, 13735, 55315, 9598, 18064, 45099, 9879, 34781, 20180, 58481, 45695, 56560, 11427, 36676, 6231, 57216, 49807, 4073, 41921, 26676, 20443, 63028, 33286}, (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)) + 35, 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.getPressedStateDuration() >> 16), Color.alpha(0) + 5, (char) (ImageFormat.getBitsPerPixel(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);
int i5 = s + 95;
t = i5 % 128;
int i6 = i5 % 2;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
}
/* JADX INFO: Access modifiers changed from: private */
public static /* synthetic */ Object a(Object[] objArr) {
int i = 2 % 2;
int i2 = s + 117;
t = i2 % 128;
int i3 = i2 % 2;
return null;
}
@Override // o.AbstractActivityC11646ejK, 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 + 99;
s = i2 % 128;
int i3 = i2 % 2;
super.onStart();
if (i3 != 0) {
throw null;
}
int i4 = s + 25;
t = i4 % 128;
int i5 = i4 % 2;
}
static /* synthetic */ void h() throws Throwable {
a(new Object[0]);
}
public static /* synthetic */ void b(Throwable th) {
int i = 2 % 2;
int i2 = s + 31;
t = i2 % 128;
int i3 = i2 % 2;
guQ.a(th);
if (i3 == 0) {
throw null;
}
}
}