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

102 lines
2.8 KiB
Java

package o;
import android.content.Context;
import android.util.Base64;
import androidx.fragment.app.Fragment;
import com.scb.phone.view.fragment.investment.funddetails.DividendTabFragment;
import com.scb.phone.view.fragment.investment.funddetails.FundSummaryTabFragment;
import java.nio.charset.StandardCharsets;
import java.util.List;
/* renamed from: o.evw, reason: case insensitive filesystem */
/* loaded from: classes5.dex */
public final class C12320evw extends MoT {
private static int g = 0;
private static int h = 1;
private static byte i;
private final String a;
private final List<C0851Pz> b;
private final Context c;
private int[] d;
private final List<C0849Px> e;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
/* JADX WARN: Multi-variable type inference failed */
public C12320evw(yRS yrs, Context context, List<C0849Px> list, List<? extends C0851Pz> list2, String str, int[] iArr) {
super(yrs);
C14957gcv.e(yrs, "");
C14957gcv.e(context, "");
C14957gcv.e(str, "");
C14957gcv.e(iArr, "");
this.c = context;
this.e = list;
this.b = list2;
this.a = str;
this.d = iArr;
}
@Override // o.MoT
public final Fragment b(int i2) {
if (i2 == 0) {
FundSummaryTabFragment a = FundSummaryTabFragment.a(this.e, this.a);
C14957gcv.c(a, "");
return a;
}
DividendTabFragment a2 = DividendTabFragment.a(this.b);
C14957gcv.c(a2, "");
return a2;
}
@Override // o.WYJ
public final int getCount() {
return this.d.length;
}
private void k(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] ^ i);
}
objArr[0] = new String(bArr, StandardCharsets.UTF_8);
}
@Override // o.WYJ
public final CharSequence getPageTitle(int i2) {
int i3 = 2 % 2;
int i4 = h + 9;
g = i4 % 128;
int i5 = i4 % 2;
String string = this.c.getString(this.d[i2]);
if (string.startsWith(",*,)")) {
int i6 = h + 11;
g = i6 % 128;
int i7 = i6 % 2;
Object[] objArr = new Object[1];
k(string.substring(4), objArr);
string = ((String) objArr[0]).intern();
}
return string;
}
/* renamed from: o.evw$RVV */
/* loaded from: classes5.dex */
public static final class RVV {
private RVV() {
}
public /* synthetic */ RVV(byte b) {
this();
}
}
static void e() {
i = (byte) 6;
}
static {
e();
new RVV((byte) 0);
}
}