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

79 lines
2.5 KiB
Java

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 com.scb.phone.view.fragment.transferandpay.billpaymenttab.EBillPaymentBillerListFragment;
import java.nio.charset.StandardCharsets;
/* renamed from: o.ezw, reason: case insensitive filesystem */
/* loaded from: classes5.dex */
public final class C12532ezw extends MoT {
private static int h = 1;
private static int i = 0;
private static byte j = 6;
private int[] a;
private BillPaymentBillerListFragment b;
private EBillPaymentBillerListFragment c;
public BillPaymentHistoryFragment d;
private Context e;
private void g(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] ^ j);
}
objArr[0] = new String(bArr, StandardCharsets.UTF_8);
}
public C12532ezw(yRS yrs, Context context) {
super(yrs);
this.a = new int[]{com.scb.phone.R.string.new_payment, com.scb.phone.R.string.e_bill, com.scb.phone.R.string.auto_regen_repeat_top_up_history};
this.e = context;
this.b = BillPaymentBillerListFragment.b(false);
this.c = new EBillPaymentBillerListFragment();
this.d = new BillPaymentHistoryFragment();
}
@Override // o.WYJ
public final int getCount() {
return this.a.length;
}
@Override // o.WYJ
public final CharSequence getPageTitle(int i2) {
int i3 = 2 % 2;
String string = this.e.getString(this.a[i2]);
if (!string.startsWith(",*,)")) {
return string;
}
int i4 = i + 49;
h = i4 % 128;
int i5 = i4 % 2;
Object[] objArr = new Object[1];
g(string.substring(4), objArr);
String intern = ((String) objArr[0]).intern();
int i6 = h + 13;
i = i6 % 128;
int i7 = i6 % 2;
return intern;
}
@Override // o.MoT
public final Fragment b(int i2) {
if (i2 == 0) {
return this.b;
}
if (i2 == 1) {
return this.c;
}
if (i2 != 2) {
return null;
}
return this.d;
}
}