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

104 lines
2.9 KiB
Java
Raw 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.transferandpay.billpayment.BillPaymentHistoryFragment;
import com.scb.phone.view.fragment.transferandpay.billpaymenttab.BillPaymentBillerListFragment;
import java.nio.charset.StandardCharsets;
/* renamed from: o.ezq, reason: case insensitive filesystem */
/* loaded from: classes5.dex */
public final class C12526ezq extends MoT {
private static byte c = 0;
private static int d = 1;
private static int e;
private final Context a;
private final int[] b;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public C12526ezq(yRS yrs, Context context) {
super(yrs);
C14957gcv.e(yrs, "");
this.a = context;
this.b = new int[]{com.scb.phone.R.string.new_payment, com.scb.phone.R.string.auto_regen_repeat_top_up_history};
}
@Override // o.MoT
public final Fragment b(int i) {
if (i != 0) {
if (i == 1) {
return new BillPaymentHistoryFragment();
}
return new Fragment();
}
BillPaymentBillerListFragment b = BillPaymentBillerListFragment.b(true);
C14957gcv.c(b, "");
return b;
}
@Override // o.WYJ
public final int getCount() {
return this.b.length;
}
private void g(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] ^ c);
}
objArr[0] = new String(bArr, StandardCharsets.UTF_8);
}
@Override // o.WYJ
public final CharSequence getPageTitle(int i) {
int i2 = 2 % 2;
Context context = this.a;
String str = null;
if (context != null) {
int i3 = d + 1;
e = i3 % 128;
if (i3 % 2 != 0) {
context.getString(this.b[i]).startsWith(",*,)");
str.hashCode();
throw null;
}
String string = context.getString(this.b[i]);
if (string.startsWith(",*,)")) {
Object[] objArr = new Object[1];
g(string.substring(4), objArr);
string = ((String) objArr[0]).intern();
}
str = string;
} else {
int i4 = d + 83;
e = i4 % 128;
if (i4 % 2 != 0) {
int i5 = 2 % 4;
}
}
return str;
}
/* renamed from: o.ezq$LWm */
/* loaded from: classes5.dex */
public static final class LWm {
private LWm() {
}
public /* synthetic */ LWm(byte b) {
this();
}
}
static void a() {
c = (byte) 6;
}
static {
a();
new LWm((byte) 0);
}
}