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

121 lines
3.7 KiB
Java

package o;
import android.content.Context;
import android.os.Bundle;
import android.util.Base64;
import androidx.fragment.app.Fragment;
import com.scb.phone.view.fragment.insurance.PolicyDetailFragment;
import com.scb.phone.view.fragment.insurance.PolicyServiceFragment;
import java.nio.charset.StandardCharsets;
import java.util.Arrays;
import java.util.List;
/* renamed from: o.euZ, reason: case insensitive filesystem */
/* loaded from: classes5.dex */
public final class C12244euZ extends MoT {
private static byte c = 0;
private static int h = 1;
private static int j;
private final Context a;
private final List<Integer> b;
private final C0804Oy d;
private final yRS e;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public C12244euZ(Context context, yRS yrs, C0804Oy c0804Oy) {
super(yrs);
C14957gcv.e(context, "");
C14957gcv.e(yrs, "");
C14957gcv.e(c0804Oy, "");
this.a = context;
this.e = yrs;
this.d = c0804Oy;
Integer[] numArr = {Integer.valueOf(com.scb.phone.R.string.auto_insurance_details_tab), Integer.valueOf(com.scb.phone.R.string.auto_insurance_services_tab)};
C14957gcv.e(numArr, "");
C14957gcv.e(numArr, "");
List<Integer> asList = Arrays.asList(numArr);
C14957gcv.c(asList, "");
this.b = asList;
}
@Override // o.MoT
public final Fragment b(int i) {
if (i == 0) {
PolicyDetailFragment.Sts sts = PolicyDetailFragment.c;
C0804Oy c0804Oy = this.d;
C14957gcv.e(c0804Oy, "");
PolicyDetailFragment policyDetailFragment = new PolicyDetailFragment();
Bundle bundle = new Bundle();
bundle.putParcelable("EXTRA_POLICY_INFO_DISPLAY", c0804Oy);
policyDetailFragment.setArguments(bundle);
return policyDetailFragment;
}
PolicyServiceFragment.LWm lWm = PolicyServiceFragment.d;
C0804Oy c0804Oy2 = this.d;
C14957gcv.e(c0804Oy2, "");
PolicyServiceFragment policyServiceFragment = new PolicyServiceFragment();
Bundle bundle2 = new Bundle();
bundle2.putParcelable("EXTRA_POLICY_INFO_DISPLAY", c0804Oy2);
policyServiceFragment.setArguments(bundle2);
return policyServiceFragment;
}
private void g(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] ^ c);
}
objArr[0] = new String(bArr, StandardCharsets.UTF_8);
}
@Override // o.WYJ
public final int getCount() {
return this.b.size();
}
@Override // o.WYJ
public final CharSequence getPageTitle(int i) {
int i2 = 2 % 2;
String string = this.a.getString(this.b.get(i).intValue());
if (string.startsWith(",*,)")) {
int i3 = j + 125;
h = i3 % 128;
int i4 = i3 % 2;
Object[] objArr = new Object[1];
g(string.substring(4), objArr);
string = ((String) objArr[0]).intern();
}
C14957gcv.c((Object) string, "");
String str = string;
int i5 = h + 49;
j = i5 % 128;
if (i5 % 2 == 0) {
return str;
}
Object obj = null;
obj.hashCode();
throw null;
}
/* renamed from: o.euZ$RVV */
/* loaded from: classes5.dex */
public static final class RVV {
private RVV() {
}
public /* synthetic */ RVV(byte b) {
this();
}
}
static void d() {
c = (byte) 6;
}
static {
d();
new RVV((byte) 0);
}
}