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

1617 lines
64 KiB
Java

package com.scb.phone.view.activity.transferandpay;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.Point;
import android.graphics.PointF;
import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.os.Build;
import android.os.Process;
import android.os.SystemClock;
import android.text.TextUtils;
import android.util.DisplayMetrics;
import android.util.TypedValue;
import android.view.Display;
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 android.widget.ImageView;
import android.widget.RelativeLayout;
import butterknife.BindView;
import butterknife.OnClick;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.gson.Gson;
import com.huawei.hms.api.ConnectionResult;
import com.huawei.hms.support.api.entity.common.CommonConstant;
import com.kofax.mobile.sdk._internal.impl.extraction.kta.KtaJsonExactionHelper;
import com.pingan.ai.p;
import com.scb.phone.R;
import com.scb.phone.view.activity.HomeActivity;
import com.scb.phone.view.activity.directdebit.DirectDebitInputActivity;
import com.scb.phone.view.activity.fastpay.FastPayInputActivity;
import com.scb.phone.view.activity.partner.SCBUniversalWebViewActivity;
import com.scb.phone.view.activity.transferandpay.ScanPaymentActivity;
import com.scb.phone.view.activity.transferandpay.billpayment.BillPaymentActivity;
import com.scb.phone.view.camera.CameraSource;
import com.scb.phone.view.camera.CameraSourcePreview;
import java.io.IOException;
import java.lang.reflect.Method;
import java.util.Objects;
import o.AbstractActivityC11980epa;
import o.C0930Rt;
import o.C11560ehe;
import o.C1193Xr;
import o.C11993epn;
import o.C1203Xy;
import o.C12913fKy;
import o.C14957gcv;
import o.C17437wka;
import o.C6432cSo;
import o.EnumC1264Zf;
import o.InterfaceC0834Plv;
import o.InterfaceC13391fZD;
import o.InterfaceC15577gud;
import o.InterfaceC9010dbe;
import o.MBB;
import o.Nhs;
import o.XO;
import o.ZI;
import o.dQY;
import o.gjJ;
import o.guQ;
import o.huo;
import o.xzZ;
import o.zJl;
import org.bouncycastle.crypto.tls.CipherSuite;
/* loaded from: classes5.dex */
public class ScanPaymentActivity extends AbstractActivityC11980epa implements InterfaceC9010dbe.XOs, View.OnTouchListener {
private static long k;
private static int m;
private static char p;
private static int q;
private static long r;
private static char[] t;
@InterfaceC13391fZD
public Gson gson;
@BindView
ImageView ivAlbum;
private huo<zJl> l = registerForActivityResult(new C11560ehe.IeS(), new InterfaceC0834Plv(this) { // from class: o.epj
private ScanPaymentActivity e;
@Override // o.InterfaceC0834Plv
public final void d(Object obj) {
ScanPaymentActivity.amv_(this.e, (Uri) obj);
}
{
this.e = this;
}
});
@BindView
RelativeLayout layoutCamera;
@BindView
CameraSourcePreview mPreview;
/* renamed from: o, reason: collision with root package name */
private CameraSource f7977o;
@InterfaceC13391fZD
public C6432cSo presenter;
private static final byte[] $$p = {17, 69, 17, -70};
private static final int $$q = CipherSuite.TLS_PSK_WITH_AES_128_GCM_SHA256;
private static int $10 = 0;
private static int $11 = 1;
private static int s = 1;
private static void aC(short s2, short s3, int i, Object[] objArr) {
byte[] bArr = $$p;
int i2 = 4 - (s2 * 4);
int i3 = s3 + 98;
int i4 = i * 4;
byte[] bArr2 = new byte[1 - i4];
int i5 = 0 - i4;
int i6 = -1;
if (bArr == null) {
i3 = i5 + i3;
i2++;
}
while (true) {
i6++;
bArr2[i6] = (byte) i3;
if (i6 == i5) {
objArr[0] = new String(bArr2, 0);
return;
} else {
i3 += bArr[i2];
i2++;
}
}
}
public static /* synthetic */ Object c(Object[] objArr, int i, int i2, int i3) {
int i4 = ~i;
int i5 = ~i2;
int i6 = ~(i4 | i5);
int i7 = (~i3) | i4;
int i8 = (i * 483) + (i2 * 242) + (((~i7) | i6) * (-241)) + ((i | i2) * (-482)) + (((~(i | i5)) | (~(i2 | i7))) * 241);
if (i8 == 1) {
return b(objArr);
}
if (i8 == 2) {
return a(objArr);
}
if (i8 != 3) {
return i8 != 4 ? i8 != 5 ? c(objArr) : d(objArr) : e(objArr);
}
int i9 = 2 % 2;
Intent intent = new Intent((Context) objArr[0], (Class<?>) ScanPaymentActivity.class);
int i10 = s + 11;
q = i10 % 128;
int i11 = i10 % 2;
return intent;
}
static {
q = 0;
k();
System.loadLibrary("n8d0f");
int i = s + 109;
q = i % 128;
int i2 = i % 2;
}
private static void aB(int i, int i2, char c, Object[] objArr) {
int i3 = 2 % 2;
dQY dqy = new dQY();
long[] jArr = new long[i2];
dqy.a = 0;
while (dqy.a < i2) {
int i4 = dqy.a;
try {
Object[] objArr2 = {Integer.valueOf(t[i + dqy.a])};
Object obj = xzZ.y.get(1095064095);
if (obj == null) {
Class cls = (Class) xzZ.c(308 - KeyEvent.getDeadChar(0, 0), (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)) + 5, (char) (32796 - TextUtils.indexOf((CharSequence) "", '0')));
byte b = (byte) 0;
byte b2 = b;
Object[] objArr3 = new Object[1];
aC(b, b2, b2, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(1095064095, obj);
}
try {
Object[] objArr4 = {Long.valueOf(((Long) ((Method) obj).invoke(null, objArr2)).longValue()), Long.valueOf(dqy.a), Long.valueOf(r), Integer.valueOf(c)};
Object obj2 = xzZ.y.get(-548438098);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(View.MeasureSpec.makeMeasureSpec(0, 0) + 412, 6 - (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)), (char) (ViewConfiguration.getKeyRepeatTimeout() >> 16));
byte b3 = (byte) 0;
byte b4 = (byte) (b3 + 1);
Object[] objArr5 = new Object[1];
aC(b3, b4, (byte) (b4 - 1), objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Long.TYPE, Long.TYPE, Long.TYPE, Integer.TYPE);
xzZ.y.put(-548438098, obj2);
}
jArr[i4] = ((Long) ((Method) obj2).invoke(null, objArr4)).longValue();
try {
Object[] objArr6 = {dqy, dqy};
Object obj3 = xzZ.y.get(1071125919);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c(407 - (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 - Color.alpha(0), (char) (29233 - TextUtils.indexOf((CharSequence) "", '0')));
byte b5 = (byte) 0;
Object[] objArr7 = new Object[1];
aC(b5, (byte) (b5 | 8), b5, objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class);
xzZ.y.put(1071125919, obj3);
}
((Method) obj3).invoke(null, objArr6);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 == null) {
throw th2;
}
throw cause2;
}
} catch (Throwable th3) {
Throwable cause3 = th3.getCause();
if (cause3 == null) {
throw th3;
}
throw cause3;
}
}
char[] cArr = new char[i2];
dqy.a = 0;
int i5 = $10 + 17;
$11 = i5 % 128;
if (i5 % 2 == 0) {
int i6 = 4 / 4;
}
while (dqy.a < i2) {
cArr[dqy.a] = (char) jArr[dqy.a];
try {
Object[] objArr8 = {dqy, dqy};
Object obj4 = xzZ.y.get(1071125919);
if (obj4 == null) {
Class cls4 = (Class) xzZ.c(407 - (ViewConfiguration.getEdgeSlop() >> 16), (ViewConfiguration.getLongPressTimeout() >> 16) + 5, (char) ((-16747982) - Color.rgb(0, 0, 0)));
byte b6 = (byte) 0;
Object[] objArr9 = new Object[1];
aC(b6, (byte) (b6 | 8), b6, objArr9);
obj4 = cls4.getMethod((String) objArr9[0], Object.class, Object.class);
xzZ.y.put(1071125919, obj4);
}
((Method) obj4).invoke(null, objArr8);
} catch (Throwable th4) {
Throwable cause4 = th4.getCause();
if (cause4 == null) {
throw th4;
}
throw cause4;
}
}
String str = new String(cArr);
int i7 = $11 + 15;
$10 = i7 % 128;
int i8 = i7 % 2;
objArr[0] = str;
}
public static Intent amx_(Context context, EnumC1264Zf enumC1264Zf) {
int i = 2 % 2;
Intent intent = new Intent(context, (Class<?>) ScanPaymentActivity.class);
intent.putExtra("EXTRA_FLOW_TYPE", enumC1264Zf);
int i2 = s + 13;
q = i2 % 128;
if (i2 % 2 != 0) {
int i3 = 91 / 0;
}
return intent;
}
private static void aA(char c, char[] cArr, char[] cArr2, char[] cArr3, int i, Object[] objArr) {
int i2 = 2;
int i3 = 2 % 2;
Nhs nhs = new Nhs();
int length = cArr2.length;
char[] cArr4 = new char[length];
int length2 = cArr3.length;
char[] cArr5 = new char[length2];
System.arraycopy(cArr2, 0, cArr4, 0, length);
System.arraycopy(cArr3, 0, cArr5, 0, length2);
cArr4[0] = (char) (cArr4[0] ^ c);
cArr5[2] = (char) (cArr5[2] + ((char) i));
int length3 = cArr.length;
char[] cArr6 = new char[length3];
nhs.a = 0;
while (nhs.a < length3) {
int i4 = $10 + 55;
$11 = i4 % 128;
int i5 = i4 % i2;
try {
Object[] objArr2 = {nhs};
Object obj = xzZ.y.get(263693715);
if (obj == null) {
obj = ((Class) xzZ.c((ViewConfiguration.getTapTimeout() >> 16) + 45, 4 - ExpandableListView.getPackedPositionChild(0L), (char) Color.alpha(0))).getMethod("t", Object.class);
xzZ.y.put(263693715, obj);
}
int intValue = ((Integer) ((Method) obj).invoke(null, objArr2)).intValue();
Object[] objArr3 = {nhs};
Object obj2 = xzZ.y.get(-484664112);
if (obj2 == null) {
Class cls = (Class) xzZ.c((SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)) + 351, MotionEvent.axisFromString("") + 6, (char) (Drawable.resolveOpacity(0, 0) + 52128));
byte b = (byte) 0;
Object[] objArr4 = new Object[1];
aC(b, $$p[0], b, objArr4);
obj2 = cls.getMethod((String) objArr4[0], Object.class);
xzZ.y.put(-484664112, obj2);
}
int intValue2 = ((Integer) ((Method) obj2).invoke(null, objArr3)).intValue();
Object[] objArr5 = {nhs, Integer.valueOf(cArr4[nhs.a % 4] * 32718), Integer.valueOf(cArr5[intValue])};
Object obj3 = xzZ.y.get(430099516);
if (obj3 == null) {
obj3 = ((Class) xzZ.c(Drawable.resolveOpacity(0, 0) + 748, (ViewConfiguration.getDoubleTapTimeout() >> 16) + 5, (char) (ViewConfiguration.getLongPressTimeout() >> 16))).getMethod(p.a, Object.class, Integer.TYPE, Integer.TYPE);
xzZ.y.put(430099516, obj3);
}
((Method) obj3).invoke(null, objArr5);
Object[] objArr6 = {Integer.valueOf(cArr4[intValue2] * 32718), Integer.valueOf(cArr5[intValue])};
Object obj4 = xzZ.y.get(1019894806);
if (obj4 == null) {
Class cls2 = (Class) xzZ.c(View.resolveSizeAndState(0, 0, 0) + 402, TextUtils.indexOf((CharSequence) "", '0', 0, 0) + 6, (char) (Process.getGidForName("") + 21609));
byte b2 = (byte) 0;
Object[] objArr7 = new Object[1];
aC(b2, (byte) (b2 | 16), b2, objArr7);
obj4 = cls2.getMethod((String) objArr7[0], Integer.TYPE, Integer.TYPE);
xzZ.y.put(1019894806, obj4);
}
cArr5[intValue2] = ((Character) ((Method) obj4).invoke(null, objArr6)).charValue();
cArr4[intValue2] = nhs.c;
cArr6[nhs.a] = (char) ((((cArr4[intValue2] ^ cArr[nhs.a]) ^ (k ^ 9051040786702654117L)) ^ ((int) (m ^ 9051040786702654117L))) ^ ((char) (p ^ 9051040786702654117L)));
nhs.a++;
int i6 = $10 + 87;
$11 = i6 % 128;
int i7 = i6 % 2;
i2 = 2;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
objArr[0] = new String(cArr6);
}
/* JADX WARN: Code restructure failed: missing block: B:6:0x00fa, code lost:
if (r5 > 99999) goto L11;
*/
@Override // o.AbstractActivityC11980epa, 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 r24) {
/*
Method dump skipped, instructions count: 1904
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.transferandpay.ScanPaymentActivity.onCreate(android.os.Bundle):void");
}
@Override // o.AbstractActivityC11980epa, 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() {
CameraSource cameraSource;
Context baseContext = getBaseContext();
if (baseContext == null) {
Object[] objArr = new Object[1];
aA((char) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.auto_biller_search_bnpl_initial_state).substring(0, 2).length() + 5846), new char[]{53308, 23791, 7285, 62226, 27110, 36471, 64203, 29834, 62219, 13622, 19254, 10663, 29722, 2954, 47128, 37721, 39444, 19359, 54147, 58012, 5577, 19626, 40540, 15260, 63431, 17846}, new char[]{22029, 6608, 55470, 61462}, new char[]{0, 0, 0, 0}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.mf_onboarding_slip).substring(0, 20).codePointAt(7) - 79, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
aA((char) (Color.blue(0) + 32739), new char[]{32855, 13950, 29414, 10000, 39478, 13766, 32998, 3827, 27878, 25633, 25599, 9404, 36359, 27675, 2355, 20726, 41201, 46381}, new char[]{54171, 30756, 58264, 38783}, new char[]{0, 0, 0, 0}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.taking_photo_details_hml_pdf_accepted_formats).substring(18, 19).length() - 1, objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(KeyEvent.normalizeMetaState(0) + 492, TextUtils.indexOf("", "") + 5, (char) (1 - (SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1))))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr3 = {baseContext};
Object obj2 = xzZ.y.get(1378719468);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(Color.rgb(0, 0, 0) + 16777703, KeyEvent.getDeadChar(0, 0) + 5, (char) ((ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)) - 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();
CameraSource cameraSource2 = this.f7977o;
if (cameraSource2 != null) {
try {
CameraSourcePreview cameraSourcePreview = this.mPreview;
if (cameraSource2 == null && (cameraSource = cameraSourcePreview.a) != null) {
cameraSource.d();
}
cameraSourcePreview.a = cameraSource2;
if (cameraSource2 != null) {
cameraSourcePreview.d = true;
cameraSourcePreview.a();
}
} catch (IOException unused) {
CameraSource cameraSource3 = this.f7977o;
synchronized (cameraSource3.d) {
cameraSource3.d();
CameraSource.Sts sts = cameraSource3.j;
this.f7977o = null;
}
}
}
}
@Override // o.AbstractActivityC11980epa, com.scb.phone.view.activity.BaseActivity, com.scb.phone.view.activity.PreLoadCheckActivity, com.akexorcist.localizationactivity.LocalizationActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity
public void onPause() {
int i = 2 % 2;
int i2 = q + 69;
s = i2 % 128;
int i3 = i2 % 2;
Context baseContext = getBaseContext();
if (baseContext == null) {
int i4 = q + 9;
s = i4 % 128;
int i5 = i4 % 2;
Object[] objArr = new Object[1];
aA((char) (5848 - Color.argb(0, 0, 0, 0)), new char[]{53308, 23791, 7285, 62226, 27110, 36471, 64203, 29834, 62219, 13622, 19254, 10663, 29722, 2954, 47128, 37721, 39444, 19359, 54147, 58012, 5577, 19626, 40540, 15260, 63431, 17846}, new char[]{22029, 6608, 55470, 61462}, new char[]{0, 0, 0, 0}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 34, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
aA((char) ((ViewConfiguration.getPressedStateDuration() >> 16) + 32739), new char[]{32855, 13950, 29414, 10000, 39478, 13766, 32998, 3827, 27878, 25633, 25599, 9404, 36359, 27675, 2355, 20726, 41201, 46381}, new char[]{54171, 30756, 58264, 38783}, new char[]{0, 0, 0, 0}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.auto_p2p_introduction_feature_supports_cardx).substring(26, 27).codePointAt(0) - 32, objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(View.MeasureSpec.getSize(0) + 492, ExpandableListView.getPackedPositionChild(0L) + 6, (char) (1 - (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1))))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr3 = {baseContext};
Object obj2 = xzZ.y.get(1633456013);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(487 - KeyEvent.normalizeMetaState(0), Color.alpha(0) + 5, (char) ((Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)) - 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();
CameraSourcePreview cameraSourcePreview = this.mPreview;
if (cameraSourcePreview != null) {
int i6 = q + 45;
s = i6 % 128;
if (i6 % 2 == 0) {
CameraSource cameraSource = cameraSourcePreview.a;
throw null;
}
CameraSource cameraSource2 = cameraSourcePreview.a;
if (cameraSource2 != null) {
int i7 = s + 43;
q = i7 % 128;
if (i7 % 2 == 0) {
cameraSource2.d();
} else {
cameraSource2.d();
int i8 = 1 / 0;
}
}
}
}
@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 + 75;
q = i2 % 128;
if (i2 % 2 != 0) {
this.presenter.w_();
throw null;
}
this.presenter.w_();
CameraSourcePreview cameraSourcePreview = this.mPreview;
if (cameraSourcePreview != null) {
int i3 = q + 43;
s = i3 % 128;
if (i3 % 2 == 0) {
cameraSourcePreview.setOnTouchListener(null);
int i4 = 47 / 0;
} else {
cameraSourcePreview.setOnTouchListener(null);
}
}
super.onDestroy();
}
private static /* synthetic */ Object b(Object[] objArr) {
ScanPaymentActivity scanPaymentActivity = (ScanPaymentActivity) objArr[0];
int i = 2 % 2;
int i2 = q + 53;
s = i2 % 128;
if (i2 % 2 != 0) {
super.Z();
scanPaymentActivity.setTitle(R.string.scan_bill);
scanPaymentActivity.ac();
return null;
}
super.Z();
scanPaymentActivity.setTitle(R.string.scan_bill);
scanPaymentActivity.ac();
throw null;
}
public final void h() {
int i = 2 % 2;
CameraSource.LWm lWm = new CameraSource.LWm(this) { // from class: o.epk
private ScanPaymentActivity b;
@Override // com.scb.phone.view.camera.CameraSource.LWm
public final void b(int i2, int i3, byte[] bArr) {
ScanPaymentActivity.c(new Object[]{this.b, Integer.valueOf(i2), Integer.valueOf(i3), bArr}, -932299492, 932299497, i2);
}
{
this.b = this;
}
};
Display defaultDisplay = getWindowManager().getDefaultDisplay();
Point point = new Point();
defaultDisplay.getSize(point);
CameraSource.IeS ieS = new CameraSource.IeS(getApplicationContext(), lWm);
ieS.a.h = 0;
int max = Math.max(1600, point.x);
int max2 = Math.max(1024, point.y);
if (max > 0) {
int i2 = q;
int i3 = i2 + 57;
s = i3 % 128;
int i4 = i3 % 2;
if (max <= 1000000 && max2 > 0) {
int i5 = i2 + 17;
int i6 = i5 % 128;
s = i6;
int i7 = i5 % 2;
if (max2 <= 1000000) {
int i8 = i6 + 67;
q = i8 % 128;
int i9 = i8 % 2;
ieS.a.n = max;
ieS.a.f8013o = max2;
ieS.a.k = 15.0f;
ieS.a.f = "continuous-picture";
CameraSource cameraSource = ieS.a;
CameraSource cameraSource2 = ieS.a;
Objects.requireNonNull(cameraSource2);
cameraSource.j = new CameraSource.Sts(cameraSource2, ieS.b);
this.f7977o = ieS.a;
return;
}
}
}
StringBuilder sb = new StringBuilder("Invalid preview size: ");
sb.append(max);
sb.append("x");
sb.append(max2);
throw new IllegalArgumentException(sb.toString());
}
@Override // androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, android.app.Activity
public void onRequestPermissionsResult(int i, String[] strArr, int[] iArr) {
int i2 = 2 % 2;
int i3 = s + 69;
q = i3 % 128;
Object obj = null;
if (i3 % 2 == 0) {
super.onRequestPermissionsResult(i, strArr, iArr);
C11993epn.d(this, i, iArr);
int i4 = s + 77;
q = i4 % 128;
if (i4 % 2 == 0) {
return;
}
obj.hashCode();
throw null;
}
super.onRequestPermissionsResult(i, strArr, iArr);
C11993epn.d(this, i, iArr);
obj.hashCode();
throw null;
}
public static void f() {
int i = 2 % 2;
int i2 = q + 45;
s = i2 % 128;
int i3 = i2 % 2;
guQ.b("onPermissionDenied", new Object[0]);
int i4 = s + 31;
q = i4 % 128;
if (i4 % 2 != 0) {
int i5 = 89 / 0;
}
}
public static void g() {
int i = 2 % 2;
int i2 = s + 119;
q = i2 % 128;
int i3 = i2 % 2;
guQ.b("onNeverAskAgain", new Object[0]);
int i4 = s + 69;
q = i4 % 128;
if (i4 % 2 != 0) {
int i5 = 3 / 0;
}
}
public static /* synthetic */ void c(InterfaceC15577gud interfaceC15577gud) {
int i = 2 % 2;
int i2 = s + 109;
q = i2 % 128;
int i3 = i2 % 2;
interfaceC15577gud.c();
if (i3 != 0) {
Object obj = null;
obj.hashCode();
throw null;
}
int i4 = q + 59;
s = i4 % 128;
int i5 = i4 % 2;
}
public static /* synthetic */ void e(InterfaceC15577gud interfaceC15577gud) {
int i = 2 % 2;
int i2 = q + 41;
s = i2 % 128;
int i3 = i2 % 2;
interfaceC15577gud.e();
int i4 = s + 97;
q = i4 % 128;
if (i4 % 2 != 0) {
throw null;
}
}
@Override // o.InterfaceC9010dbe.AcL
public final void d(String str, boolean z) {
int i = 2 % 2;
startActivity(FavouriteSelectedActivity.amt_(this, z, str));
if (!(!X())) {
int i2 = s + 67;
q = i2 % 128;
int i3 = i2 % 2;
if (z_()) {
return;
}
int i4 = s + 65;
q = i4 % 128;
int i5 = i4 % 2;
finish();
int i6 = s + 109;
q = i6 % 128;
int i7 = i6 % 2;
}
}
@Override // o.InterfaceC9010dbe.AcL
public final void c(C1193Xr c1193Xr, String str) {
int i = 2 % 2;
startActivity(new Intent(this, (Class<?>) EDonationConsentActivity.class).putExtra("com.scb.phone.EXTRA_BILL_PAYMENT_DISPLAY", c1193Xr).putExtra("source", str));
if (!X()) {
return;
}
int i2 = q + 65;
s = i2 % 128;
int i3 = i2 % 2;
if (!(!z_())) {
return;
}
int i4 = q + 17;
s = i4 % 128;
int i5 = i4 % 2;
finish();
int i6 = q + 79;
s = i6 % 128;
int i7 = i6 % 2;
}
@Override // o.InterfaceC9010dbe.AcL
public final void e(C1193Xr c1193Xr, String str) {
int i = 2 % 2;
int i2 = q + 1;
s = i2 % 128;
int i3 = i2 % 2;
BillPaymentActivity.d(this, MBB.SCAN, c1193Xr, str, (c1193Xr == null || c1193Xr.s == null) ? true : c1193Xr.s.a);
if (X() && !z_()) {
finish();
}
int i4 = q + 107;
s = i4 % 128;
if (i4 % 2 != 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
@Override // o.InterfaceC9010dbe.AcL
public final void b(C1203Xy c1203Xy, boolean z) {
int i = 2 % 2;
int i2 = s + 87;
q = i2 % 128;
if (i2 % 2 != 0) {
guQ.c("navigateToFastPay %s", this.gson.toJson(c1203Xy));
} else {
guQ.c("navigateToFastPay %s", this.gson.toJson(c1203Xy));
}
FastPayInputActivity.c(this, c1203Xy, z);
finish();
}
@Override // o.InterfaceC9010dbe.AcL
public final void e(C1203Xy c1203Xy, XO xo) {
int i = 2 % 2;
int i2 = s + 59;
q = i2 % 128;
int i3 = i2 % 2;
startActivity(PullSlipActivity.amu_(this, c1203Xy, xo));
finish();
int i4 = s + 29;
q = i4 % 128;
if (i4 % 2 == 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
@Override // o.InterfaceC9010dbe.AcL
public final void e(String str) {
int i = 2 % 2;
Intent intent = new Intent(CommonConstant.ACTION.HWID_SCHEME_URL);
intent.setData(Uri.parse(str));
intent.putExtra("IS_NEED_HISTORY_STACK", true);
intent.putExtra("NSIP_TRACKER_FROM", C17437wka.b.c);
startActivity(intent);
finish();
int i2 = q + 47;
s = i2 % 128;
int i3 = i2 % 2;
}
private static /* synthetic */ Object e(Object[] objArr) {
ScanPaymentActivity scanPaymentActivity = (ScanPaymentActivity) objArr[0];
String str = (String) objArr[1];
int i = 2 % 2;
int i2 = s + 83;
q = i2 % 128;
int i3 = i2 % 2;
scanPaymentActivity.startActivity(SCBUniversalWebViewActivity.akg_(scanPaymentActivity, str).putExtra("IS_NEED_HISTORY_STACK", true));
scanPaymentActivity.finish();
int i4 = q + 63;
s = i4 % 128;
Object obj = null;
if (i4 % 2 != 0) {
return null;
}
obj.hashCode();
throw null;
}
private static /* synthetic */ Object a(Object[] objArr) {
ScanPaymentActivity scanPaymentActivity = (ScanPaymentActivity) objArr[0];
String str = (String) objArr[1];
int i = 2 % 2;
Intent intent = new Intent(CommonConstant.ACTION.HWID_SCHEME_URL);
intent.setData(Uri.parse(str));
intent.putExtra("IS_NEED_HISTORY_STACK", true);
scanPaymentActivity.startActivity(intent);
scanPaymentActivity.finish();
int i2 = s + 125;
q = i2 % 128;
if (i2 % 2 != 0) {
int i3 = 89 / 0;
}
return null;
}
@Override // o.InterfaceC9010dbe.XOs
public final void c(byte[] bArr) {
int i = 2 % 2;
C6432cSo c6432cSo = this.presenter;
String e = C12913fKy.e(bArr);
if (c6432cSo.f != 0) {
int i2 = q + 41;
s = i2 % 128;
if (i2 % 2 != 0) {
c6432cSo.f.ar_();
}
} else {
int i3 = s + 15;
q = i3 % 128;
int i4 = i3 % 2;
}
if (gjJ.b((CharSequence) e)) {
c6432cSo.b();
} else {
c6432cSo.g.d(c6432cSo.a).d(e);
}
}
@Override // o.InterfaceC9010dbe.XOs
public final void c(int i, int i2, byte[] bArr) {
int i3 = 2 % 2;
int i4 = q + 9;
s = i4 % 128;
int i5 = i4 % 2;
C6432cSo c6432cSo = this.presenter;
c6432cSo.g.d(c6432cSo.a).d(C12913fKy.e(i, i2, bArr));
int i6 = q + 33;
s = i6 % 128;
int i7 = i6 % 2;
}
@OnClick
public void onFlashButtonClick() {
CameraSource cameraSource;
int i = 2 % 2;
int i2 = q + 65;
s = i2 % 128;
if (i2 % 2 == 0) {
cameraSource = this.f7977o;
int i3 = 37 / 0;
if (cameraSource == null) {
return;
}
} else {
cameraSource = this.f7977o;
if (cameraSource == null) {
return;
}
}
if ("off".equalsIgnoreCase(cameraSource.g)) {
int i4 = q + 109;
s = i4 % 128;
int i5 = i4 % 2;
this.f7977o.b("torch");
return;
}
this.f7977o.b("off");
int i6 = s + 111;
q = i6 % 128;
int i7 = i6 % 2;
}
@Override // com.scb.phone.view.activity.PreLoadCheckActivity, o.InterfaceC6638cYp
public final void y() {
int i = 2 % 2;
runOnUiThread(new Runnable(this) { // from class: o.epi
private ScanPaymentActivity d;
@Override // java.lang.Runnable
public final void run() {
ScanPaymentActivity.e(this.d);
}
{
this.d = this;
}
});
int i2 = s + 51;
q = i2 % 128;
if (i2 % 2 == 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
@Override // com.scb.phone.view.activity.PreLoadCheckActivity, o.InterfaceC6638cYp
public final void ar_() {
int i = 2 % 2;
runOnUiThread(new Runnable(this) { // from class: o.epd
private ScanPaymentActivity c;
@Override // java.lang.Runnable
public final void run() {
ScanPaymentActivity.a(this.c);
}
{
this.c = this;
}
});
int i2 = s + 83;
q = i2 % 128;
if (i2 % 2 != 0) {
throw null;
}
}
@Override // o.InterfaceC9010dbe.XOs
public final void c() {
int i = 2 % 2;
int i2 = q + 31;
s = i2 % 128;
if (i2 % 2 != 0 ? Build.VERSION.SDK_INT >= 33 : Build.VERSION.SDK_INT >= 104) {
int i3 = q + 11;
s = i3 % 128;
int i4 = i3 % 2;
huo<zJl> huoVar = this.l;
zJl.RVV rvv = new zJl.RVV();
C11560ehe.IeS.RVV rvv2 = C11560ehe.IeS.RVV.a;
C14957gcv.e(rvv2, "");
rvv.e = rvv2;
zJl zjl = new zJl();
C11560ehe.IeS.tOB tob = rvv.e;
C14957gcv.e(tob, "");
zjl.c = tob;
huoVar.d(zjl, null);
return;
}
C11993epn.e(this);
}
/* JADX WARN: Code restructure failed: missing block: B:10:0x0042, code lost:
throw null;
*/
/* JADX WARN: Code restructure failed: missing block: B:13:0x002d, code lost:
if ((!z_()) != true) goto L17;
*/
/* JADX WARN: Code restructure failed: missing block: B:6:0x0024, code lost:
if (z_() != false) goto L17;
*/
/* JADX WARN: Code restructure failed: missing block: B:7:0x0030, code lost:
r3 = com.scb.phone.view.activity.transferandpay.ScanPaymentActivity.s + 81;
com.scb.phone.view.activity.transferandpay.ScanPaymentActivity.q = r3 % 128;
r3 = r3 % 2;
finish();
*/
/* JADX WARN: Code restructure failed: missing block: B:8:0x003c, code lost:
if (r3 != 0) goto L15;
*/
/* JADX WARN: Code restructure failed: missing block: B:9:0x003f, code lost:
r4.hashCode();
*/
@Override // o.InterfaceC9010dbe.AcL
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void a(o.C1203Xy r3, boolean r4, java.lang.String r5, java.lang.String r6, boolean r7) {
/*
r2 = this;
r0 = 2
int r1 = r0 % r0
android.content.Intent r3 = com.scb.phone.view.activity.purchase.PointXInputActivity.ald_(r2, r3, r4, r5, r6, r7)
r2.startActivity(r3)
boolean r3 = r2.X()
r4 = 0
if (r3 == 0) goto L43
int r3 = com.scb.phone.view.activity.transferandpay.ScanPaymentActivity.q
int r3 = r3 + 111
int r5 = r3 % 128
com.scb.phone.view.activity.transferandpay.ScanPaymentActivity.s = r5
int r3 = r3 % r0
if (r3 != 0) goto L27
boolean r3 = r2.z_()
r5 = 85
int r5 = r5 / 0
if (r3 == 0) goto L30
goto L43
L27:
boolean r3 = r2.z_()
r5 = 1
r3 = r3 ^ r5
if (r3 == r5) goto L30
goto L43
L30:
int r3 = com.scb.phone.view.activity.transferandpay.ScanPaymentActivity.s
int r3 = r3 + 81
int r5 = r3 % 128
com.scb.phone.view.activity.transferandpay.ScanPaymentActivity.q = r5
int r3 = r3 % r0
r2.finish()
if (r3 != 0) goto L3f
goto L43
L3f:
r4.hashCode()
throw r4
L43:
int r3 = com.scb.phone.view.activity.transferandpay.ScanPaymentActivity.s
int r3 = r3 + 67
int r5 = r3 % 128
com.scb.phone.view.activity.transferandpay.ScanPaymentActivity.q = r5
int r3 = r3 % r0
if (r3 != 0) goto L4f
return
L4f:
r4.hashCode()
throw r4
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.transferandpay.ScanPaymentActivity.a(o.Xy, boolean, java.lang.String, java.lang.String, boolean):void");
}
public final void j() {
int i = 2 % 2;
Intent intent = new Intent("android.intent.action.GET_CONTENT");
intent.setType("image/*");
if (intent.resolveActivity(getPackageManager()) != null) {
int i2 = s + 111;
q = i2 % 128;
int i3 = i2 % 2;
startActivityForResult(intent, ConnectionResult.DRIVE_EXTERNAL_STORAGE_REQUIRED);
}
int i4 = q + 85;
s = i4 % 128;
if (i4 % 2 == 0) {
int i5 = 38 / 0;
}
}
@Override // com.scb.phone.view.activity.BaseActivity, com.scb.phone.view.activity.PreLoadCheckActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, android.app.Activity
public void onActivityResult(int i, int i2, Intent intent) {
int i3 = 2 % 2;
if (Build.VERSION.SDK_INT >= 33) {
super.onActivityResult(i, i2, intent);
return;
}
Object obj = null;
if (i == 9002) {
int i4 = s;
int i5 = i4 + 95;
q = i5 % 128;
int i6 = i5 % 2;
if (i2 == -1) {
int i7 = i4 + 43;
q = i7 % 128;
if (i7 % 2 == 0) {
amy_(intent.getData());
return;
} else {
amy_(intent.getData());
obj.hashCode();
throw null;
}
}
}
if (i != 9002) {
int i8 = s + 3;
q = i8 % 128;
if (i8 % 2 == 0) {
super.onActivityResult(i, i2, intent);
finish();
} else {
super.onActivityResult(i, i2, intent);
finish();
throw null;
}
}
}
private void amy_(Uri uri) {
int i = 2 % 2;
DisplayMetrics displayMetrics = new DisplayMetrics();
getWindowManager().getDefaultDisplay().getMetrics(displayMetrics);
this.presenter.VI_(uri, displayMetrics.heightPixels, displayMetrics.widthPixels);
int i2 = s + 81;
q = i2 % 128;
int i3 = i2 % 2;
}
/* JADX WARN: Code restructure failed: missing block: B:10:0x0039, code lost:
r5.VI_(r1, r5.h, r5.i);
r5 = 69 / 0;
*/
/* JADX WARN: Code restructure failed: missing block: B:11:0x0044, code lost:
r5.VI_(r1, r5.h, r5.i);
*/
/* JADX WARN: Code restructure failed: missing block: B:13:0x002c, code lost:
if (r1 != null) goto L9;
*/
/* JADX WARN: Code restructure failed: missing block: B:4:0x0020, code lost:
if (r1 != null) goto L9;
*/
/* JADX WARN: Code restructure failed: missing block: B:8:0x002e, code lost:
r2 = com.scb.phone.view.activity.transferandpay.ScanPaymentActivity.q + 19;
com.scb.phone.view.activity.transferandpay.ScanPaymentActivity.s = r2 % 128;
*/
/* JADX WARN: Code restructure failed: missing block: B:9:0x0037, code lost:
if ((r2 % 2) != 0) goto L12;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static /* synthetic */ java.lang.Object c(java.lang.Object[] r5) {
/*
r0 = 0
r1 = r5[r0]
com.scb.phone.view.activity.transferandpay.ScanPaymentActivity r1 = (com.scb.phone.view.activity.transferandpay.ScanPaymentActivity) r1
r2 = 1
r5 = r5[r2]
o.Rt r5 = (o.C0930Rt) r5
r3 = 2
int r4 = r3 % r3
int r4 = com.scb.phone.view.activity.transferandpay.ScanPaymentActivity.q
int r4 = r4 + r2
int r2 = r4 % 128
com.scb.phone.view.activity.transferandpay.ScanPaymentActivity.s = r2
int r4 = r4 % r3
if (r4 != 0) goto L23
super.o(r5)
o.cSo r5 = r1.presenter
r5.d = r0
android.net.Uri r1 = r5.e
if (r1 == 0) goto L4b
goto L2e
L23:
super.o(r5)
o.cSo r5 = r1.presenter
r5.d = r0
android.net.Uri r1 = r5.e
if (r1 == 0) goto L4b
L2e:
int r2 = com.scb.phone.view.activity.transferandpay.ScanPaymentActivity.q
int r2 = r2 + 19
int r4 = r2 % 128
com.scb.phone.view.activity.transferandpay.ScanPaymentActivity.s = r4
int r2 = r2 % r3
if (r2 != 0) goto L44
int r2 = r5.h
int r4 = r5.i
r5.VI_(r1, r2, r4)
r5 = 69
int r5 = r5 / r0
goto L4b
L44:
int r0 = r5.h
int r2 = r5.i
r5.VI_(r1, r0, r2)
L4b:
int r5 = com.scb.phone.view.activity.transferandpay.ScanPaymentActivity.s
int r5 = r5 + 109
int r0 = r5 % 128
com.scb.phone.view.activity.transferandpay.ScanPaymentActivity.q = r0
int r5 = r5 % r3
r5 = 0
return r5
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.transferandpay.ScanPaymentActivity.c(java.lang.Object[]):java.lang.Object");
}
@Override // com.scb.phone.view.activity.BaseActivity, o.InterfaceC8962daj
public final void af_() {
int i = 2 % 2;
int i2 = s + 45;
q = i2 % 128;
int i3 = i2 % 2;
super.af_();
C6432cSo c6432cSo = this.presenter;
c6432cSo.d = false;
Uri uri = c6432cSo.e;
if (uri != null) {
int i4 = q + 31;
s = i4 % 128;
int i5 = i4 % 2;
c6432cSo.VI_(uri, c6432cSo.h, c6432cSo.i);
}
int i6 = s + 123;
q = i6 % 128;
int i7 = i6 % 2;
}
@Override // com.scb.phone.view.activity.PreLoadCheckActivity
public final void l(boolean z) {
int i = 2 % 2;
if (!"ACTION_DEEP_LINK_SCAN".equalsIgnoreCase(getIntent().getAction())) {
super.l(z);
int i2 = q + 55;
s = i2 % 128;
int i3 = i2 % 2;
}
int i4 = q + 79;
s = i4 % 128;
int i5 = i4 % 2;
}
@Override // com.scb.phone.view.activity.BaseActivity, android.app.Activity
public boolean onOptionsItemSelected(MenuItem menuItem) {
int i = 2 % 2;
int i2 = q + 23;
s = i2 % 128;
if (i2 % 2 != 0) {
if (menuItem.getItemId() == 16908332) {
int i3 = q + 89;
s = i3 % 128;
int i4 = i3 % 2;
if ("ACTION_DEEP_LINK_SCAN".equalsIgnoreCase(getIntent().getAction())) {
Intent intent = new Intent(getApplicationContext(), (Class<?>) HomeActivity.class);
intent.addFlags(268468224);
startActivity(intent);
finish();
return true;
}
}
return super.onOptionsItemSelected(menuItem);
}
menuItem.getItemId();
Object obj = null;
obj.hashCode();
throw null;
}
@Override // androidx.activity.ComponentActivity, android.app.Activity
public void onBackPressed() {
int i = 2 % 2;
int i2 = s + 13;
q = i2 % 128;
if (i2 % 2 == 0) {
if (!"ACTION_DEEP_LINK_SCAN".equalsIgnoreCase(getIntent().getAction())) {
super.onBackPressed();
return;
}
Intent intent = new Intent(getApplicationContext(), (Class<?>) HomeActivity.class);
intent.addFlags(268468224);
startActivity(intent);
finish();
int i3 = q + 45;
s = i3 % 128;
int i4 = i3 % 2;
return;
}
"ACTION_DEEP_LINK_SCAN".equalsIgnoreCase(getIntent().getAction());
throw null;
}
/* JADX WARN: Code restructure failed: missing block: B:12:0x0059, code lost:
if ((!r6.getSupportedFocusModes().contains("continuous-picture")) != false) goto L17;
*/
/* JADX WARN: Code restructure failed: missing block: B:13:0x006a, code lost:
r7 = com.scb.phone.view.activity.transferandpay.ScanPaymentActivity.q + 83;
com.scb.phone.view.activity.transferandpay.ScanPaymentActivity.s = r7 % 128;
*/
/* JADX WARN: Code restructure failed: missing block: B:14:0x0075, code lost:
if ((r7 % 2) == 0) goto L32;
*/
/* JADX WARN: Code restructure failed: missing block: B:16:0x007f, code lost:
if (r6.getSupportedFocusModes().contains("auto") == false) goto L31;
*/
/* JADX WARN: Code restructure failed: missing block: B:18:0x0085, code lost:
if (r6.getMaxNumMeteringAreas() <= 0) goto L31;
*/
/* JADX WARN: Code restructure failed: missing block: B:19:0x0087, code lost:
r0.b.cancelAutoFocus();
r3 = com.scb.phone.view.camera.CameraSource.e((int) (((r3 / r4) * 2000.0f) - 1000.0f));
r11 = com.scb.phone.view.camera.CameraSource.e((int) (((r11 / r5) * 2000.0f) - 1000.0f));
r2 = new android.graphics.Rect(r3, r11, r3 + 300, r11 + 300);
r6.setFocusMode("auto");
r10 = new java.util.ArrayList();
r10.add(new android.hardware.Camera.Area(r2, 800));
r6.setFocusAreas(r10);
*/
/* JADX WARN: Code restructure failed: missing block: B:21:0x00c0, code lost:
r0.b.setParameters(r6);
*/
/* JADX WARN: Code restructure failed: missing block: B:24:0x00c8, code lost:
r10 = move-exception;
*/
/* JADX WARN: Code restructure failed: missing block: B:25:0x00c9, code lost:
o.guQ.e(r10);
*/
/* JADX WARN: Code restructure failed: missing block: B:26:0x00c6, code lost:
r10 = move-exception;
*/
/* JADX WARN: Code restructure failed: missing block: B:27:0x00c7, code lost:
throw r10;
*/
/* JADX WARN: Code restructure failed: missing block: B:29:0x00d4, code lost:
r0.b.autoFocus(r0.e);
*/
/* JADX WARN: Code restructure failed: missing block: B:30:0x00dc, code lost:
r6.getSupportedFocusModes().contains("auto");
r2.hashCode();
*/
/* JADX WARN: Code restructure failed: missing block: B:31:0x00e6, code lost:
throw null;
*/
/* JADX WARN: Code restructure failed: missing block: B:33:0x0068, code lost:
if (r6.getSupportedFocusModes().contains("continuous-picture") == false) goto L17;
*/
@Override // android.view.View.OnTouchListener
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public boolean onTouch(android.view.View r10, android.view.MotionEvent r11) {
/*
Method dump skipped, instructions count: 236
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.transferandpay.ScanPaymentActivity.onTouch(android.view.View, android.view.MotionEvent):boolean");
}
@Override // o.InterfaceC9010dbe.zJl
public final void b(C1193Xr c1193Xr) {
int i = 2 % 2;
int i2 = s + 111;
q = i2 % 128;
int i3 = i2 % 2;
startActivity(DirectDebitInputActivity.aeb_(this, c1193Xr, ""));
finish();
int i4 = q + 95;
s = i4 % 128;
if (i4 % 2 == 0) {
int i5 = 35 / 0;
}
}
@Override // o.InterfaceC9010dbe.AcL
public final void b(C1203Xy c1203Xy) {
int i = 2 % 2;
BNPLInputActivity.c(this, c1203Xy, "scan");
if (X()) {
int i2 = s + 41;
q = i2 % 128;
if (i2 % 2 != 0) {
z_();
Object obj = null;
obj.hashCode();
throw null;
}
if (z_()) {
return;
}
finish();
int i3 = s + 33;
q = i3 % 128;
if (i3 % 2 != 0) {
int i4 = 5 % 2;
}
}
}
@Override // o.AbstractActivityC11980epa, 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;
super.attachBaseContext(context);
Object[] objArr = new Object[1];
aA((char) (49245 - ((Process.getThreadPriority(0) + 20) >> 6)), new char[]{27881, 39495, 32899, 51121, 5659, 21121, 27754, 64355, 52586, 35689, 62236, 12381, 51066, 580, 24530, 60155, 21715, 42780}, new char[]{34485, 27012, 23815, 18368}, new char[]{0, 0, 0, 0}, Process.myTid() >> 22, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
aB(KeyEvent.normalizeMetaState(0), Color.rgb(0, 0, 0) + 16777221, (char) (ViewConfiguration.getKeyRepeatTimeout() >> 16), objArr2);
int intValue = ((Integer) cls.getDeclaredMethod((String) objArr2[0], new Class[0]).invoke(null, new Object[0])).intValue() % 100000;
if (intValue >= 99000) {
int i2 = q + 61;
s = i2 % 128;
if (i2 % 2 == 0) {
throw null;
}
if (intValue <= 99999) {
return;
}
}
if (context != null) {
int i3 = s + 47;
q = i3 % 128;
if (i3 % 2 != 0) {
context2 = context.getApplicationContext();
int i4 = 17 / 0;
} else {
context2 = context.getApplicationContext();
}
int i5 = s + 81;
q = i5 % 128;
int i6 = i5 % 2;
} else {
context2 = context;
}
if (context2 != null) {
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(492 - (ViewConfiguration.getPressedStateDuration() >> 16), TextUtils.getOffsetAfter("", 0) + 5, (char) ((-1) - Process.getGidForName("")))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr3 = new Object[1];
aA((char) (ViewConfiguration.getMaximumDrawingCacheSize() >> 24), new char[]{64459, 58066, 63884, 20418, 54562, 28286, 11902, 61933, 35284, 62730, 43170, 796, 56303, 63837, 45292, 26833, 29665, 54892, 58687, 29553, 16129, 65473, 31216, 19578, 34424, 3568, 25670, '=', 62768, 52812, 47456, 35756, 44810, 44028, 42676, 5251, 42762, 42975, 46584, 14704, 1745, 62934, 'F', 42904, 3552, 11529, 51428, 7151}, new char[]{43207, 28841, 58197, 6794}, new char[]{0, 0, 0, 0}, (ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)) - 1, objArr3);
String str = (String) objArr3[0];
Object[] objArr4 = new Object[1];
aA((char) View.MeasureSpec.makeMeasureSpec(0, 0), new char[]{4933, 49036, 40611, 34361, 47825, 8812, 4178, 48377, 18578, 35764, 3664, 25766, 30173, 27893, 46597, 21667, 6488, 5856, 12567, 52713, 50282, 44922, 15593, 40402, 59794, 17266, 8792, 23762, 36208, 22338, 13317, 57832, 37256, 7952, 35211, 1714, 40068, 22589, 31515, 61903, 13223, 37450, 1104, 47838, 23735, 62218, 16353, 21043, 22641, 65525, 29300, 12814, 37476, 49324, 51355, 39041, 43413, 27982, 15143, 24788, 7495, 46928, 41037, 53504}, new char[]{1046, 2585, 36791, 6811}, new char[]{0, 0, 0, 0}, View.resolveSize(0, 0), objArr4);
String str2 = (String) objArr4[0];
Object[] objArr5 = new Object[1];
aB(MotionEvent.axisFromString("") + 6, TextUtils.getOffsetAfter("", 0) + 64, (char) Drawable.resolveOpacity(0, 0), objArr5);
String str3 = (String) objArr5[0];
Object[] objArr6 = new Object[1];
aA((char) (TextUtils.lastIndexOf("", '0', 0, 0) + 1), new char[]{26194, 11097, 28187, 37365, 7261, 41785, 14411, 60903, 9112, 14599, 55188, 42917, 7784, 62120, 11076, 8543, 38856, 54197, 51394, 26029, 13328, 57832, 21109, 27464, 34562, 9770, 64196, 53033, 23899, 38572, 27638, 8955, 18136, 61777, 47048, 43604, 26879, 48503, 37682, 35211, 33239, 42747, 17001, 11915, 13804, 17951, 34503, 9202, 25099, 10298, 5604, 56694, 5167, 59323, 49801, 25856, 3849, 51927, 6970, 30106, 19194, 34620, 29211, 39643, 18235, 61090, 19338, 26777, 34181, 13100, 25032, 49009, 55152, 11224}, new char[]{36736, 28134, 49641, 39872}, new char[]{0, 0, 0, 0}, Process.myPid() >> 22, objArr6);
String str4 = (String) objArr6[0];
Object[] objArr7 = new Object[1];
aA((char) ((Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)) + 16653), new char[]{27580, 12772, 43639, 63196, 41506}, new char[]{33391, 29332, 3748, 32321}, new char[]{0, 0, 0, 0}, KeyEvent.getDeadChar(0, 0) - 1535994750, objArr7);
String str5 = (String) objArr7[0];
Object[] objArr8 = new Object[1];
aB((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)) + 69, (ViewConfiguration.getTouchSlop() >> 8) + 36, (char) (ViewConfiguration.getMaximumFlingVelocity() >> 16), 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(View.MeasureSpec.getSize(0) + 487, (ViewConfiguration.getScrollBarSize() >> 8) + 5, (char) View.MeasureSpec.getMode(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);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
}
public static /* synthetic */ void amv_(ScanPaymentActivity scanPaymentActivity, Uri uri) {
int i = 2 % 2;
int i2 = s;
int i3 = i2 + 85;
q = i3 % 128;
int i4 = i3 % 2;
if (uri != null) {
int i5 = i2 + 87;
q = i5 % 128;
if (i5 % 2 != 0) {
guQ.c("PhotoPicker Selected URI:".concat(String.valueOf(uri)), new Object[0]);
scanPaymentActivity.presenter.d = true;
} else {
guQ.c("PhotoPicker Selected URI:".concat(String.valueOf(uri)), new Object[0]);
scanPaymentActivity.presenter.d = false;
}
scanPaymentActivity.amy_(uri);
return;
}
guQ.c("PhotoPicker No media selected", new Object[0]);
}
public static /* synthetic */ void e(ScanPaymentActivity scanPaymentActivity) {
int i = 2 % 2;
int i2 = q + 119;
s = i2 % 128;
int i3 = i2 % 2;
super.y();
int i4 = s + 95;
q = i4 % 128;
int i5 = i4 % 2;
}
private static /* synthetic */ Object d(Object[] objArr) {
ScanPaymentActivity scanPaymentActivity = (ScanPaymentActivity) objArr[0];
final int intValue = ((Number) objArr[1]).intValue();
final int intValue2 = ((Number) objArr[2]).intValue();
final byte[] bArr = (byte[]) objArr[3];
int i = 2 % 2;
C6432cSo c6432cSo = scanPaymentActivity.presenter;
if (c6432cSo.c) {
ZI.IeS ieS = new ZI.IeS(intValue, intValue2, bArr) { // from class: o.cSq
private byte[] a;
private int b;
private int e;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9010dbe.XOs) obj).c(this.e, this.b, this.a);
}
{
this.e = intValue;
this.b = intValue2;
this.a = bArr;
}
};
if (c6432cSo.f != 0) {
int i2 = s + 17;
q = i2 % 128;
int i3 = i2 % 2;
ieS.e(c6432cSo.f);
}
}
int i4 = s + 3;
q = i4 % 128;
Object obj = null;
if (i4 % 2 == 0) {
return null;
}
obj.hashCode();
throw null;
}
public static /* synthetic */ void a(ScanPaymentActivity scanPaymentActivity) {
int i = 2 % 2;
int i2 = s + 51;
q = i2 % 128;
int i3 = i2 % 2;
super.ar_();
int i4 = s + 103;
q = i4 % 128;
int i5 = i4 % 2;
}
static void k() {
k = 9051040786702654117L;
m = 452713125;
p = (char) 64571;
t = new char[]{36799, 26429, 24235, 13945, 11758, 36787, 26492, 24270, 13859, 11755, 1295, 64563, 54189, 52048, 41645, 39485, 29125, 26808, 16504, 14294, 12064, 1747, 65094, 54584, 52416, 42075, 39852, 29441, 27290, 16801, 14668, 4232, 2149, 65410, 55066, 52863, 42396, 40230, 29926, 27743, 17253, 15103, 4686, 2471, 57657, 55447, 53220, 42875, 40659, 30332, 28143, 17680, 15421, 5008, 2817, 58028, 55816, 45468, 43237, 32838, 30606, 28466, 18133, 15944, 5409, 3279, 58452, 56293, 45839, 36791, 26405, 24268, 13860, 11758, 1285, 64610, 54264, 52047, 41634, 39486, 29125, 26808, 16481, 14290, 12074, 1667, 65045, 54643, 52369, 41992, 39929, 29525, 27269, 16880, 14615, 4316, 2145, 65421, 55113, 52773, 42445, 40230, 29873, 27663, 17205};
r = 1674343454685095748L;
}
@Override // o.AbstractActivityC11980epa, 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 = s + 11;
q = i2 % 128;
int i3 = i2 % 2;
super.onStart();
int i4 = s + 59;
q = i4 % 128;
int i5 = i4 % 2;
}
@Override // com.scb.phone.view.activity.BaseActivity
public final void Z() {
c(new Object[]{this}, 1429789318, -1429789317, ((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) + 1129082082);
}
@Override // com.scb.phone.view.activity.PreLoadCheckActivity, o.InterfaceC8962daj
public final void o(C0930Rt c0930Rt) {
c(new Object[]{this, c0930Rt}, -1976486839, 1976486839, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 613900980);
}
@Override // o.InterfaceC9010dbe.AcL
public final void a(String str) {
c(new Object[]{this, str}, -1466301004, 1466301008, System.identityHashCode(this));
}
@Override // o.InterfaceC9010dbe.AcL
public final void d(String str) {
c(new Object[]{this, str}, -36491177, 36491179, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(8) + 254296591);
}
public static Intent amw_(Context context) {
return (Intent) c(new Object[]{context}, -1830479614, 1830479617, (int) System.currentTimeMillis());
}
}