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

74 lines
2.1 KiB
Java

package o;
import android.content.Context;
import android.util.Base64;
import androidx.fragment.app.Fragment;
import com.scb.phone.view.fragment.investment.AwaitingTransactionsTabFragment;
import com.scb.phone.view.fragment.investment.TodayTransactionsTabFragment;
import java.nio.charset.StandardCharsets;
/* renamed from: o.eve, reason: case insensitive filesystem */
/* loaded from: classes5.dex */
public final class C12302eve extends MoT {
private static int a = 0;
private static byte c = 6;
private static int d = 1;
private Context b;
private int[] e;
public C12302eve(yRS yrs, Context context) {
super(yrs);
this.e = new int[]{com.scb.phone.R.string.today, com.scb.phone.R.string.scheduled};
this.b = 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 TodayTransactionsTabFragment.d();
}
if (i != 1) {
return null;
}
return AwaitingTransactionsTabFragment.d();
}
@Override // o.WYJ
public final int getCount() {
return this.e.length;
}
@Override // o.WYJ
public final CharSequence getPageTitle(int i) {
int i2 = 2 % 2;
int i3 = d + 51;
a = i3 % 128;
if (i3 % 2 != 0) {
this.b.getString(this.e[i]).startsWith(",*,)");
throw null;
}
String string = this.b.getString(this.e[i]);
if (string.startsWith(",*,)")) {
Object[] objArr = new Object[1];
g(string.substring(4), objArr);
string = ((String) objArr[0]).intern();
int i4 = d + 89;
a = i4 % 128;
int i5 = i4 % 2;
}
int i6 = a + 47;
d = i6 % 128;
int i7 = i6 % 2;
return string;
}
}