what-the-bank/sources/o/C12195etd.java

80 lines
2.7 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.content.Context;
import android.util.Base64;
import androidx.fragment.app.Fragment;
import com.scb.phone.view.fragment.dji.DeejungInstallmentTransactionFragment;
import java.nio.charset.StandardCharsets;
/* renamed from: o.etd, reason: case insensitive filesystem */
/* loaded from: classes5.dex */
public final class C12195etd extends MoT {
private static byte b = 6;
private static int g = 1;
private static int j;
private final int[] a;
private final DeejungInstallmentTransactionFragment c;
private final DeejungInstallmentTransactionFragment d;
private final Context e;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public C12195etd(yRS yrs, Context context, DeejungInstallmentTransactionFragment deejungInstallmentTransactionFragment, DeejungInstallmentTransactionFragment deejungInstallmentTransactionFragment2) {
super(yrs);
C14957gcv.e(yrs, "");
C14957gcv.e(context, "");
C14957gcv.e(deejungInstallmentTransactionFragment, "");
C14957gcv.e(deejungInstallmentTransactionFragment2, "");
this.e = context;
this.d = deejungInstallmentTransactionFragment;
this.c = deejungInstallmentTransactionFragment2;
this.a = new int[]{com.scb.phone.R.string.unbilled, com.scb.phone.R.string.billed};
}
@Override // o.MoT
public final Fragment b(int i) {
if (i == 0) {
return this.c;
}
return this.d;
}
@Override // o.WYJ
public final int getCount() {
return this.a.length;
}
private void h(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);
}
@Override // o.WYJ
public final CharSequence getPageTitle(int i) {
int i2 = 2 % 2;
String string = this.e.getString(this.a[i]);
if (string.startsWith(",*,)")) {
int i3 = g + 101;
j = i3 % 128;
int i4 = i3 % 2;
String substring = string.substring(4);
if (i4 != 0) {
Object[] objArr = new Object[1];
h(substring, objArr);
((String) objArr[0]).intern();
throw null;
}
Object[] objArr2 = new Object[1];
h(substring, objArr2);
string = ((String) objArr2[0]).intern();
int i5 = j + 33;
g = i5 % 128;
int i6 = i5 % 2;
}
return string;
}
}