what-the-bank/sources/com/scb/phone/view/custom/hml/HmlCommonCustomDialog.java

425 lines
14 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.custom.hml;
import android.app.Dialog;
import android.content.Context;
import android.text.TextUtils;
import android.util.Base64;
import android.view.View;
import android.view.Window;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.TextView;
import butterknife.BindView;
import butterknife.ButterKnife;
import com.scb.phone.R;
import com.scb.phone.view.custom.hml.HmlCommonCustomDialog;
import java.nio.charset.StandardCharsets;
import o.C14866gag;
import o.C14957gcv;
import o.InterfaceC14890gbN;
/* loaded from: classes5.dex */
public class HmlCommonCustomDialog extends Dialog {
private static int a = 0;
private static int c = 1;
private static byte e;
@BindView
public TextView messageText;
@BindView
public TextView negativeButton;
@BindView
public Button positiveButton;
@BindView
public LinearLayout rootView;
@BindView
public TextView titleText;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public HmlCommonCustomDialog(Context context) {
super(context);
C14957gcv.e(context, "");
requestWindowFeature(1);
setContentView(R.layout.2131558995);
Window window = getWindow();
if (window != null) {
window.setLayout(-1, -1);
}
Window window2 = getWindow();
if (window2 != null) {
window2.setBackgroundDrawableResource(android.R.color.transparent);
}
ButterKnife.Dh_(this);
}
private void f(String str, Object[] objArr) {
byte[] decode = Base64.decode(str, 0);
byte[] bArr = new byte[decode.length];
for (int i = 0; i < decode.length; i++) {
bArr[i] = (byte) (decode[(decode.length - i) - 1] ^ e);
}
objArr[0] = new String(bArr, StandardCharsets.UTF_8);
}
/* loaded from: classes5.dex */
public static final class HBt {
private HBt() {
}
public /* synthetic */ HBt(byte b) {
this();
}
}
/* JADX WARN: Code restructure failed: missing block: B:18:0x0034, code lost:
r2 = new java.lang.Object[1];
f(r1.substring(4), r2);
r1 = ((java.lang.String) r2[0]).intern();
r2 = com.scb.phone.view.custom.hml.HmlCommonCustomDialog.a + 11;
com.scb.phone.view.custom.hml.HmlCommonCustomDialog.c = r2 % 128;
r2 = r2 % 2;
*/
/* JADX WARN: Code restructure failed: missing block: B:20:0x0032, code lost:
if (r1.startsWith(",*,)") != false) goto L9;
*/
/* JADX WARN: Code restructure failed: missing block: B:4:0x0023, code lost:
if (r1.startsWith(",*,)") != false) goto L9;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final com.scb.phone.view.custom.hml.HmlCommonCustomDialog c() {
/*
r8 = this;
r0 = 2
int r1 = r0 % r0
int r1 = com.scb.phone.view.custom.hml.HmlCommonCustomDialog.a
int r1 = r1 + 25
int r2 = r1 % 128
com.scb.phone.view.custom.hml.HmlCommonCustomDialog.c = r2
int r1 = r1 % r0
java.lang.String r2 = ",*,)"
r3 = 2131952979(0x7f130553, float:1.9542416E38)
r4 = 0
if (r1 != 0) goto L26
android.content.Context r1 = r8.getContext()
java.lang.String r1 = r1.getString(r3)
boolean r2 = r1.startsWith(r2)
r3 = 55
int r3 = r3 / r4
if (r2 == 0) goto L50
goto L34
L26:
android.content.Context r1 = r8.getContext()
java.lang.String r1 = r1.getString(r3)
boolean r2 = r1.startsWith(r2)
if (r2 == 0) goto L50
L34:
r2 = 4
java.lang.String r1 = r1.substring(r2)
r2 = 1
java.lang.Object[] r2 = new java.lang.Object[r2]
r8.f(r1, r2)
r1 = r2[r4]
java.lang.String r1 = (java.lang.String) r1
java.lang.String r1 = r1.intern()
int r2 = com.scb.phone.view.custom.hml.HmlCommonCustomDialog.a
int r2 = r2 + 11
int r3 = r2 % 128
com.scb.phone.view.custom.hml.HmlCommonCustomDialog.c = r3
int r2 = r2 % r0
L50:
java.lang.CharSequence r1 = (java.lang.CharSequence) r1
boolean r2 = android.text.TextUtils.isEmpty(r1)
if (r2 != 0) goto L8c
int r2 = com.scb.phone.view.custom.hml.HmlCommonCustomDialog.c
int r3 = r2 + 85
int r5 = r3 % 128
com.scb.phone.view.custom.hml.HmlCommonCustomDialog.a = r5
int r3 = r3 % r0
android.widget.TextView r3 = r8.titleText
r5 = 0
java.lang.String r6 = ""
if (r3 == 0) goto L70
int r2 = r2 + 29
int r7 = r2 % 128
com.scb.phone.view.custom.hml.HmlCommonCustomDialog.a = r7
int r2 = r2 % r0
goto L74
L70:
o.C14957gcv.a(r6)
r3 = r5
L74:
r3.setVisibility(r4)
android.widget.TextView r2 = r8.titleText
if (r2 == 0) goto L86
int r3 = com.scb.phone.view.custom.hml.HmlCommonCustomDialog.a
int r3 = r3 + 15
int r4 = r3 % 128
com.scb.phone.view.custom.hml.HmlCommonCustomDialog.c = r4
int r3 = r3 % r0
r5 = r2
goto L89
L86:
o.C14957gcv.a(r6)
L89:
r5.setText(r1)
L8c:
return r8
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.custom.hml.HmlCommonCustomDialog.c():com.scb.phone.view.custom.hml.HmlCommonCustomDialog");
}
/* JADX WARN: Code restructure failed: missing block: B:21:0x0034, code lost:
r2 = com.scb.phone.view.custom.hml.HmlCommonCustomDialog.a + 49;
com.scb.phone.view.custom.hml.HmlCommonCustomDialog.c = r2 % 128;
r2 = r2 % 2;
r2 = new java.lang.Object[1];
f(r1.substring(4), r2);
r1 = ((java.lang.String) r2[0]).intern();
*/
/* JADX WARN: Code restructure failed: missing block: B:23:0x0032, code lost:
if (r1.startsWith(",*,)") != false) goto L9;
*/
/* JADX WARN: Code restructure failed: missing block: B:4:0x0023, code lost:
if (r1.startsWith(",*,)") != false) goto L9;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final com.scb.phone.view.custom.hml.HmlCommonCustomDialog d() {
/*
r6 = this;
r0 = 2
int r1 = r0 % r0
int r1 = com.scb.phone.view.custom.hml.HmlCommonCustomDialog.c
int r1 = r1 + 29
int r2 = r1 % 128
com.scb.phone.view.custom.hml.HmlCommonCustomDialog.a = r2
int r1 = r1 % r0
java.lang.String r2 = ",*,)"
r3 = 2131952977(0x7f130551, float:1.9542412E38)
r4 = 0
if (r1 == 0) goto L26
android.content.Context r1 = r6.getContext()
java.lang.String r1 = r1.getString(r3)
boolean r2 = r1.startsWith(r2)
r3 = 60
int r3 = r3 / r4
if (r2 == 0) goto L50
goto L34
L26:
android.content.Context r1 = r6.getContext()
java.lang.String r1 = r1.getString(r3)
boolean r2 = r1.startsWith(r2)
if (r2 == 0) goto L50
L34:
int r2 = com.scb.phone.view.custom.hml.HmlCommonCustomDialog.a
int r2 = r2 + 49
int r3 = r2 % 128
com.scb.phone.view.custom.hml.HmlCommonCustomDialog.c = r3
int r2 = r2 % r0
r2 = 4
java.lang.String r1 = r1.substring(r2)
r2 = 1
java.lang.Object[] r2 = new java.lang.Object[r2]
r6.f(r1, r2)
r1 = r2[r4]
java.lang.String r1 = (java.lang.String) r1
java.lang.String r1 = r1.intern()
L50:
java.lang.CharSequence r1 = (java.lang.CharSequence) r1
boolean r2 = android.text.TextUtils.isEmpty(r1)
if (r2 != 0) goto L82
android.widget.TextView r2 = r6.messageText
java.lang.String r3 = ""
r5 = 0
if (r2 == 0) goto L60
goto L64
L60:
o.C14957gcv.a(r3)
r2 = r5
L64:
r2.setVisibility(r4)
android.widget.TextView r2 = r6.messageText
if (r2 == 0) goto L7c
int r3 = com.scb.phone.view.custom.hml.HmlCommonCustomDialog.a
int r3 = r3 + 83
int r4 = r3 % 128
com.scb.phone.view.custom.hml.HmlCommonCustomDialog.c = r4
int r3 = r3 % r0
if (r3 == 0) goto L78
r5 = r2
goto L7f
L78:
r5.hashCode()
throw r5
L7c:
o.C14957gcv.a(r3)
L7f:
r5.setText(r1)
L82:
return r6
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.custom.hml.HmlCommonCustomDialog.d():com.scb.phone.view.custom.hml.HmlCommonCustomDialog");
}
public final HmlCommonCustomDialog d(InterfaceC14890gbN<C14866gag> interfaceC14890gbN) {
int i = 2 % 2;
String string = getContext().getString(R.string.auto_quick_analysis_error_retake);
if (string.startsWith(",*,)")) {
int i2 = a + 9;
c = i2 % 128;
int i3 = i2 % 2;
Object[] objArr = new Object[1];
f(string.substring(4), objArr);
string = ((String) objArr[0]).intern();
}
HmlCommonCustomDialog d = d(string, interfaceC14890gbN);
int i4 = a + 43;
c = i4 % 128;
if (i4 % 2 != 0) {
return d;
}
throw null;
}
public final HmlCommonCustomDialog d(String str, final InterfaceC14890gbN<C14866gag> interfaceC14890gbN) {
String str2 = str;
if (!TextUtils.isEmpty(str2)) {
Button button = this.positiveButton;
Button button2 = null;
if (button == null) {
C14957gcv.a("");
button = null;
}
button.setVisibility(0);
Button button3 = this.positiveButton;
if (button3 == null) {
C14957gcv.a("");
button3 = null;
}
button3.setText(str2);
Button button4 = this.positiveButton;
if (button4 != null) {
button2 = button4;
} else {
C14957gcv.a("");
}
button2.setOnClickListener(new View.OnClickListener(interfaceC14890gbN, this) { // from class: o.eDh
private InterfaceC14890gbN a;
private HmlCommonCustomDialog e;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
HmlCommonCustomDialog.e(this.a, this.e);
}
{
this.a = interfaceC14890gbN;
this.e = this;
}
});
}
return this;
}
public final HmlCommonCustomDialog e(InterfaceC14890gbN<C14866gag> interfaceC14890gbN) {
int i = 2 % 2;
int i2 = a + 27;
c = i2 % 128;
int i3 = i2 % 2;
String string = getContext().getString(R.string.auto_quick_analysis_error_proceed);
if (string.startsWith(",*,)")) {
int i4 = c + 19;
a = i4 % 128;
int i5 = i4 % 2;
Object[] objArr = new Object[1];
f(string.substring(4), objArr);
string = ((String) objArr[0]).intern();
}
HmlCommonCustomDialog e2 = e(string, interfaceC14890gbN);
int i6 = a + 113;
c = i6 % 128;
int i7 = i6 % 2;
return e2;
}
public final HmlCommonCustomDialog e(String str, final InterfaceC14890gbN<C14866gag> interfaceC14890gbN) {
String str2 = str;
if (!TextUtils.isEmpty(str2)) {
TextView textView = this.negativeButton;
TextView textView2 = null;
if (textView == null) {
C14957gcv.a("");
textView = null;
}
textView.setVisibility(0);
TextView textView3 = this.negativeButton;
if (textView3 == null) {
C14957gcv.a("");
textView3 = null;
}
textView3.setText(str2);
TextView textView4 = this.negativeButton;
if (textView4 != null) {
textView2 = textView4;
} else {
C14957gcv.a("");
}
textView2.setOnClickListener(new View.OnClickListener(interfaceC14890gbN, this) { // from class: o.eDg
private HmlCommonCustomDialog a;
private InterfaceC14890gbN d;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
HmlCommonCustomDialog.b(this.d, this.a);
}
{
this.d = interfaceC14890gbN;
this.a = this;
}
});
}
return this;
}
public static /* synthetic */ void e(InterfaceC14890gbN interfaceC14890gbN, HmlCommonCustomDialog hmlCommonCustomDialog) {
C14957gcv.e(hmlCommonCustomDialog, "");
if (interfaceC14890gbN != null) {
interfaceC14890gbN.invoke();
}
hmlCommonCustomDialog.dismiss();
}
public static /* synthetic */ void b(InterfaceC14890gbN interfaceC14890gbN, HmlCommonCustomDialog hmlCommonCustomDialog) {
C14957gcv.e(hmlCommonCustomDialog, "");
if (interfaceC14890gbN != null) {
interfaceC14890gbN.invoke();
}
hmlCommonCustomDialog.dismiss();
}
static void e() {
e = (byte) 6;
}
static {
e();
new HBt((byte) 0);
}
}