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

72 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.ccrredemption.product.QuantityPointsFragment;
import com.scb.phone.view.fragment.ccrredemption.product.QuantityPointsPlusMoneyFragment;
import java.nio.charset.StandardCharsets;
/* renamed from: o.erK, reason: case insensitive filesystem */
/* loaded from: classes5.dex */
public final class C12070erK extends MoT {
private static byte c = 6;
private static int d = 0;
private static int i = 1;
private Context a;
private final boolean b;
private int[] e;
public C12070erK(yRS yrs, Context context, boolean z) {
super(yrs);
this.e = new int[]{com.scb.phone.R.string.points_label, com.scb.phone.R.string.point_money_label};
this.a = context;
this.b = z;
}
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] ^ c);
}
objArr[0] = new String(bArr, StandardCharsets.UTF_8);
}
@Override // o.MoT
public final Fragment b(int i2) {
if (i2 == 0) {
return QuantityPointsFragment.f();
}
if (i2 != 1) {
return null;
}
return QuantityPointsPlusMoneyFragment.i();
}
@Override // o.WYJ
public final int getCount() {
return this.b ? this.e.length : this.e.length - 1;
}
@Override // o.WYJ
public final CharSequence getPageTitle(int i2) {
int i3 = 2 % 2;
String string = this.a.getString(this.e[i2]);
if (string.startsWith(",*,)")) {
int i4 = i + 97;
d = i4 % 128;
int i5 = i4 % 2;
Object[] objArr = new Object[1];
g(string.substring(4), objArr);
string = ((String) objArr[0]).intern();
}
int i6 = i + 59;
d = i6 % 128;
if (i6 % 2 != 0) {
int i7 = 29 / 0;
}
return string;
}
}