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

72 lines
2.0 KiB
Java

package o;
import android.content.Context;
import android.util.Base64;
import androidx.fragment.app.Fragment;
import com.scb.phone.view.fragment.sme.gifting.ReceiveFragment;
import com.scb.phone.view.fragment.sme.gifting.SentFragment;
import java.nio.charset.StandardCharsets;
/* renamed from: o.eza, reason: case insensitive filesystem */
/* loaded from: classes5.dex */
public final class C12510eza extends rgb {
private static int a = 0;
private static int d = 1;
private static byte e = 6;
private final Context c;
public C12510eza(yRS yrs, Context context) {
super(yrs);
this.c = context;
}
@Override // o.rgb
public final Fragment e(int i) {
return i == 1 ? new SentFragment() : new ReceiveFragment();
}
@Override // o.WYJ
public final int getCount() {
return WQ.values().length;
}
private void f(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] ^ e);
}
objArr[0] = new String(bArr, StandardCharsets.UTF_8);
}
@Override // o.WYJ
public final CharSequence getPageTitle(int i) {
Context context;
WQ wq;
int i2 = 2 % 2;
if (i == 1) {
int i3 = d + 105;
a = i3 % 128;
int i4 = i3 % 2;
context = this.c;
wq = WQ.SENT;
int i5 = a + 71;
d = i5 % 128;
int i6 = i5 % 2;
} else {
context = this.c;
wq = WQ.RECEIVED;
}
String string = context.getString(wq.tabResourceId);
if (!string.startsWith(",*,)")) {
return string;
}
int i7 = a + 11;
d = i7 % 128;
int i8 = i7 % 2;
Object[] objArr = new Object[1];
f(string.substring(4), objArr);
return ((String) objArr[0]).intern();
}
}