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

111 lines
3.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.ecoupon.MyECouponFragment;
import java.nio.charset.StandardCharsets;
import java.util.List;
/* renamed from: o.erO, reason: case insensitive filesystem */
/* loaded from: classes5.dex */
public final class C12074erO extends MoT {
private static byte b = 0;
private static int g = 1;
private static int j;
private final List<Integer> a;
private final String c;
private final boolean d;
private final Context e;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public C12074erO(yRS yrs, Context context, List<Integer> list, String str, boolean z) {
super(yrs);
C14957gcv.e(yrs, "");
C14957gcv.e(context, "");
C14957gcv.e(list, "");
C14957gcv.e(str, "");
this.e = context;
this.a = list;
this.c = str;
this.d = z;
}
/* renamed from: o.erO$RVV */
/* loaded from: classes5.dex */
public static final class RVV {
private RVV() {
}
public /* synthetic */ RVV(byte b) {
this();
}
}
@Override // o.MoT
public final Fragment b(int i) {
if (i == 0) {
MyECouponFragment.IeS ieS = MyECouponFragment.d;
return MyECouponFragment.IeS.e(this.c, true, this.d);
}
MyECouponFragment.IeS ieS2 = MyECouponFragment.d;
return MyECouponFragment.IeS.e(this.c, false, this.d);
}
@Override // o.WYJ
public final int getCount() {
return this.a.size();
}
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] ^ b);
}
objArr[0] = new String(bArr, StandardCharsets.UTF_8);
}
@Override // o.WYJ
public final CharSequence getPageTitle(int i) {
int i2 = 2 % 2;
int i3 = j + 89;
g = i3 % 128;
int i4 = i3 % 2;
String string = this.e.getString(this.a.get(i).intValue());
Object obj = null;
if (string.startsWith(",*,)")) {
int i5 = j + 47;
g = i5 % 128;
int i6 = i5 % 2;
String substring = string.substring(4);
if (i6 == 0) {
Object[] objArr = new Object[1];
h(substring, objArr);
((String) objArr[0]).intern();
obj.hashCode();
throw null;
}
Object[] objArr2 = new Object[1];
h(substring, objArr2);
string = ((String) objArr2[0]).intern();
}
String str = string;
int i7 = j + 13;
g = i7 % 128;
if (i7 % 2 != 0) {
return str;
}
throw null;
}
static void a() {
b = (byte) 6;
}
static {
a();
new RVV((byte) 0);
}
}