what-the-bank/sources/com/scb/phone/view/custom/profilemanagement/AddedAccountManagementSucce...

179 lines
6.8 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.custom.profilemanagement;
import android.content.Context;
import android.util.AttributeSet;
import android.util.Base64;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.RelativeLayout;
import butterknife.BindView;
import butterknife.ButterKnife;
import com.scb.phone.R;
import com.scb.phone.view.custom.profilemanagement.AddedAccountManagementSuccessFooterCustomView;
import java.nio.charset.StandardCharsets;
import o.C12399exV;
/* loaded from: classes5.dex */
public class AddedAccountManagementSuccessFooterCustomView extends RelativeLayout {
private static int a = 0;
private static byte b = 6;
private static int d = 1;
@BindView
Button doneButton;
private C12399exV.RVV e;
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] ^ b);
}
objArr[0] = new String(bArr, StandardCharsets.UTF_8);
}
/* JADX WARN: Code restructure failed: missing block: B:10:0x0050, code lost:
r0 = new android.text.SpannableString(r5);
r13 = (android.text.SpannableString) r0;
android.text.TextUtils.copySpansFrom((android.text.SpannedString) r13, 0, r5.length(), java.lang.Object.class, r0, 0);
r5 = r0;
*/
/* JADX WARN: Code restructure failed: missing block: B:11:0x0069, code lost:
r13 = com.scb.phone.view.custom.profilemanagement.AddedAccountManagementSuccessFooterCustomView.a + 117;
com.scb.phone.view.custom.profilemanagement.AddedAccountManagementSuccessFooterCustomView.d = r13 % 128;
r13 = r13 % 2;
*/
/* JADX WARN: Code restructure failed: missing block: B:13:0x0033, code lost:
if (r5.startsWith(",*,)") != false) goto L9;
*/
/* JADX WARN: Code restructure failed: missing block: B:4:0x0022, code lost:
if (r5.startsWith(",*,)") != false) goto L9;
*/
/* JADX WARN: Code restructure failed: missing block: B:8:0x0035, code lost:
r3 = r5.substring(4);
r5 = new java.lang.Object[1];
f(r3, r5);
r5 = ((java.lang.String) r5[0]).intern();
r13 = r4.getText(r13);
*/
/* JADX WARN: Code restructure failed: missing block: B:9:0x004e, code lost:
if ((r13 instanceof android.text.Spanned) == false) goto L12;
*/
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Type inference failed for: r0v1, types: [android.text.SpannableString, android.text.Spannable] */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public void setButtonLabel(int r13) {
/*
r12 = this;
r0 = 2
int r1 = r0 % r0
int r1 = com.scb.phone.view.custom.profilemanagement.AddedAccountManagementSuccessFooterCustomView.d
int r1 = r1 + 63
int r2 = r1 % 128
com.scb.phone.view.custom.profilemanagement.AddedAccountManagementSuccessFooterCustomView.a = r2
int r1 = r1 % r0
r2 = 0
java.lang.String r3 = ",*,)"
if (r1 == 0) goto L25
android.widget.Button r1 = r12.doneButton
android.content.Context r4 = r1.getContext()
java.lang.String r5 = r4.getString(r13)
boolean r3 = r5.startsWith(r3)
r6 = 26
int r6 = r6 / r2
if (r3 == 0) goto L72
goto L35
L25:
android.widget.Button r1 = r12.doneButton
android.content.Context r4 = r1.getContext()
java.lang.String r5 = r4.getString(r13)
boolean r3 = r5.startsWith(r3)
if (r3 == 0) goto L72
L35:
r3 = 4
java.lang.String r3 = r5.substring(r3)
r5 = 1
java.lang.Object[] r5 = new java.lang.Object[r5]
r12.f(r3, r5)
r2 = r5[r2]
java.lang.String r2 = (java.lang.String) r2
java.lang.String r5 = r2.intern()
java.lang.CharSequence r13 = r4.getText(r13)
boolean r2 = r13 instanceof android.text.Spanned
if (r2 == 0) goto L69
android.text.SpannableString r0 = new android.text.SpannableString
r0.<init>(r5)
r6 = r13
android.text.SpannedString r6 = (android.text.SpannedString) r6
r7 = 0
int r8 = r5.length()
java.lang.Class<java.lang.Object> r9 = java.lang.Object.class
r13 = r0
android.text.SpannableString r13 = (android.text.SpannableString) r13
r11 = 0
r10 = r0
android.text.TextUtils.copySpansFrom(r6, r7, r8, r9, r10, r11)
r5 = r0
goto L72
L69:
int r13 = com.scb.phone.view.custom.profilemanagement.AddedAccountManagementSuccessFooterCustomView.a
int r13 = r13 + 117
int r2 = r13 % 128
com.scb.phone.view.custom.profilemanagement.AddedAccountManagementSuccessFooterCustomView.d = r2
int r13 = r13 % r0
L72:
r1.setText(r5)
return
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.custom.profilemanagement.AddedAccountManagementSuccessFooterCustomView.setButtonLabel(int):void");
}
public AddedAccountManagementSuccessFooterCustomView(Context context) {
this(context, null);
}
public AddedAccountManagementSuccessFooterCustomView(Context context, AttributeSet attributeSet) {
this(context, attributeSet, 0);
}
public AddedAccountManagementSuccessFooterCustomView(Context context, AttributeSet attributeSet, int i) {
super(context, attributeSet, i);
((LayoutInflater) context.getSystemService("layout_inflater")).inflate(R.layout.2131558895, (ViewGroup) this, true);
ButterKnife.c(this);
this.doneButton.setOnClickListener(new View.OnClickListener(this) { // from class: o.eDX
private AddedAccountManagementSuccessFooterCustomView b;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
AddedAccountManagementSuccessFooterCustomView.c(this.b);
}
{
this.b = this;
}
});
}
public static /* synthetic */ void c(AddedAccountManagementSuccessFooterCustomView addedAccountManagementSuccessFooterCustomView) {
C12399exV.RVV rvv = addedAccountManagementSuccessFooterCustomView.e;
if (rvv != null) {
rvv.d();
}
}
public void setListener(C12399exV.RVV rvv) {
this.e = rvv;
}
}