178 lines
6.0 KiB
Java
178 lines
6.0 KiB
Java
package o;
|
|
|
|
import android.content.Context;
|
|
import android.os.Bundle;
|
|
import android.util.Base64;
|
|
import androidx.fragment.app.Fragment;
|
|
import com.scb.phone.view.fragment.transferandpay.transfer.TransferToMeAccountFragment;
|
|
import com.scb.phone.view.fragment.transferandpay.transfer.TransferToOthersStep1Fragment;
|
|
import com.scb.phone.view.fragment.transferandpay.transfer.TransferToPromptPayStep1Fragment;
|
|
import java.nio.charset.StandardCharsets;
|
|
|
|
/* renamed from: o.ezn, reason: case insensitive filesystem */
|
|
/* loaded from: classes5.dex */
|
|
public final class C12523ezn extends MoT {
|
|
private static int g = 0;
|
|
private static byte h = 0;
|
|
private static int i = 1;
|
|
private final Context a;
|
|
private TransferToPromptPayStep1Fragment b;
|
|
private TransferToOthersStep1Fragment c;
|
|
private TransferToMeAccountFragment d;
|
|
private final int[] e;
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public C12523ezn(Context context, yRS yrs, String str) {
|
|
super(yrs);
|
|
C14957gcv.e(context, "");
|
|
C14957gcv.e(yrs, "");
|
|
C14957gcv.e(str, "");
|
|
this.a = context;
|
|
this.e = new int[]{com.scb.phone.R.string.tab_transfer_to_me, com.scb.phone.R.string.tab_transfer_to_others, com.scb.phone.R.string.tab_transfer_to_prompt_pay};
|
|
TransferToMeAccountFragment.HBt hBt = TransferToMeAccountFragment.c;
|
|
C14957gcv.e(str, "");
|
|
TransferToMeAccountFragment transferToMeAccountFragment = new TransferToMeAccountFragment();
|
|
Bundle bundle = new Bundle();
|
|
bundle.putString("account_source", str);
|
|
transferToMeAccountFragment.setArguments(bundle);
|
|
this.d = transferToMeAccountFragment;
|
|
this.c = TransferToOthersStep1Fragment.g();
|
|
this.b = TransferToPromptPayStep1Fragment.j();
|
|
}
|
|
|
|
private void k(String str, Object[] objArr) {
|
|
byte[] decode = Base64.decode(str, 0);
|
|
byte[] bArr = new byte[decode.length];
|
|
for (int i2 = 0; i2 < decode.length; i2++) {
|
|
bArr[i2] = (byte) (decode[(decode.length - i2) - 1] ^ h);
|
|
}
|
|
objArr[0] = new String(bArr, StandardCharsets.UTF_8);
|
|
}
|
|
|
|
@Override // o.MoT
|
|
public final Fragment b(int i2) {
|
|
if (i2 == 0) {
|
|
TransferToMeAccountFragment transferToMeAccountFragment = this.d;
|
|
C14957gcv.d(transferToMeAccountFragment, "");
|
|
return transferToMeAccountFragment;
|
|
}
|
|
if (i2 == 1) {
|
|
TransferToOthersStep1Fragment transferToOthersStep1Fragment = this.c;
|
|
C14957gcv.d(transferToOthersStep1Fragment, "");
|
|
return transferToOthersStep1Fragment;
|
|
}
|
|
TransferToPromptPayStep1Fragment transferToPromptPayStep1Fragment = this.b;
|
|
C14957gcv.d(transferToPromptPayStep1Fragment, "");
|
|
return transferToPromptPayStep1Fragment;
|
|
}
|
|
|
|
@Override // o.WYJ
|
|
public final int getCount() {
|
|
return this.e.length;
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:10:0x0034, code lost:
|
|
|
|
if (r7.startsWith(",*,)") != true) goto L11;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:4:0x0023, code lost:
|
|
|
|
if (r7.startsWith(",*,)") != false) goto L10;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:8:0x0037, code lost:
|
|
|
|
r1 = new java.lang.Object[1];
|
|
k(r7.substring(4), r1);
|
|
r7 = ((java.lang.String) r1[0]).intern();
|
|
*/
|
|
@Override // o.WYJ
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final java.lang.CharSequence getPageTitle(int r7) {
|
|
/*
|
|
r6 = this;
|
|
r0 = 2
|
|
int r1 = r0 % r0
|
|
int r1 = o.C12523ezn.g
|
|
int r1 = r1 + 51
|
|
int r2 = r1 % 128
|
|
o.C12523ezn.i = r2
|
|
int r1 = r1 % r0
|
|
r2 = 1
|
|
r3 = 0
|
|
java.lang.String r4 = ",*,)"
|
|
if (r1 != 0) goto L26
|
|
android.content.Context r1 = r6.a
|
|
int[] r5 = r6.e
|
|
r7 = r5[r7]
|
|
java.lang.String r7 = r1.getString(r7)
|
|
boolean r1 = r7.startsWith(r4)
|
|
r4 = 89
|
|
int r4 = r4 / r3
|
|
if (r1 == 0) goto L49
|
|
goto L37
|
|
L26:
|
|
android.content.Context r1 = r6.a
|
|
int[] r5 = r6.e
|
|
r7 = r5[r7]
|
|
java.lang.String r7 = r1.getString(r7)
|
|
boolean r1 = r7.startsWith(r4)
|
|
if (r1 == r2) goto L37
|
|
goto L49
|
|
L37:
|
|
r1 = 4
|
|
java.lang.String r7 = r7.substring(r1)
|
|
java.lang.Object[] r1 = new java.lang.Object[r2]
|
|
r6.k(r7, r1)
|
|
r7 = r1[r3]
|
|
java.lang.String r7 = (java.lang.String) r7
|
|
java.lang.String r7 = r7.intern()
|
|
L49:
|
|
java.lang.CharSequence r7 = (java.lang.CharSequence) r7
|
|
int r1 = o.C12523ezn.i
|
|
int r1 = r1 + 45
|
|
int r2 = r1 % 128
|
|
o.C12523ezn.g = r2
|
|
int r1 = r1 % r0
|
|
return r7
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: o.C12523ezn.getPageTitle(int):java.lang.CharSequence");
|
|
}
|
|
|
|
public final void a(String str) {
|
|
C14957gcv.e(str, "");
|
|
TransferToMeAccountFragment transferToMeAccountFragment = this.d;
|
|
if (transferToMeAccountFragment == null || transferToMeAccountFragment.isDetached() || str == null) {
|
|
return;
|
|
}
|
|
cWC cwc = transferToMeAccountFragment.presenter;
|
|
if (cwc == null) {
|
|
C14957gcv.a("");
|
|
cwc = null;
|
|
}
|
|
cwc.e(str);
|
|
}
|
|
|
|
/* renamed from: o.ezn$IeS */
|
|
/* loaded from: classes5.dex */
|
|
public static final class IeS {
|
|
private IeS() {
|
|
}
|
|
|
|
public /* synthetic */ IeS(byte b) {
|
|
this();
|
|
}
|
|
}
|
|
|
|
static void e() {
|
|
h = (byte) 6;
|
|
}
|
|
|
|
static {
|
|
e();
|
|
new IeS((byte) 0);
|
|
}
|
|
}
|