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

73 lines
2.1 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.transferandpay.BillPaymentTabFragment;
import com.scb.phone.view.fragment.transferandpay.TopUpTabFragment;
import com.scb.phone.view.fragment.transferandpay.TransferTabFragment;
import java.nio.charset.StandardCharsets;
/* renamed from: o.ezL, reason: case insensitive filesystem */
/* loaded from: classes5.dex */
public final class C12495ezL extends MoT {
private static int a = 1;
private static int b = 0;
private static byte c = 6;
private Context d;
private int[] e;
public C12495ezL(yRS yrs, Context context) {
super(yrs);
this.e = new int[]{com.scb.phone.R.string.transfer_tab, com.scb.phone.R.string.top_up_tab, com.scb.phone.R.string.bill_payment_tab};
this.d = context;
}
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.MoT
public final Fragment b(int i) {
if (i == 0) {
return new TransferTabFragment();
}
if (i == 1) {
return new TopUpTabFragment();
}
if (i != 2) {
return null;
}
return BillPaymentTabFragment.c(MBB.PROFILE, "");
}
@Override // o.WYJ
public final int getCount() {
return this.e.length;
}
@Override // o.WYJ
public final CharSequence getPageTitle(int i) {
int i2 = 2 % 2;
String string = this.d.getString(this.e[i]);
if (!string.startsWith(",*,)")) {
return string;
}
int i3 = b + 49;
a = i3 % 128;
int i4 = i3 % 2;
Object[] objArr = new Object[1];
g(string.substring(4), objArr);
String intern = ((String) objArr[0]).intern();
int i5 = b + 121;
a = i5 % 128;
int i6 = i5 % 2;
return intern;
}
}