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

73 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.requesttopay.IncomingFragment;
import com.scb.phone.view.fragment.requesttopay.OutgoingFragment;
import java.nio.charset.StandardCharsets;
/* renamed from: o.eyr, reason: case insensitive filesystem */
/* loaded from: classes5.dex */
public final class C12474eyr extends MoT {
private static int c = 0;
private static byte e = 6;
private static int g = 1;
private final String a;
private int[] b;
private Context d;
public C12474eyr(yRS yrs, Context context, String str) {
super(yrs);
this.b = new int[]{com.scb.phone.R.string.request_money_outgoing, com.scb.phone.R.string.request_money_incoming};
this.d = context;
this.a = str;
}
private void h(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.MoT
public final Fragment b(int i) {
if (i == 0) {
return OutgoingFragment.a(this.a);
}
if (i != 1) {
return null;
}
return IncomingFragment.d(this.a);
}
@Override // o.WYJ
public final int getCount() {
return this.b.length;
}
@Override // o.WYJ
public final CharSequence getPageTitle(int i) {
int i2 = 2 % 2;
int i3 = c + 95;
g = i3 % 128;
if (i3 % 2 == 0) {
this.d.getString(this.b[i]).startsWith(",*,)");
throw null;
}
String string = this.d.getString(this.b[i]);
if (!string.startsWith(",*,)")) {
return string;
}
int i4 = g + 79;
c = i4 % 128;
int i5 = i4 % 2;
Object[] objArr = new Object[1];
h(string.substring(4), objArr);
return ((String) objArr[0]).intern();
}
}