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

77 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.scheduledtransaction.ScheduleMonthlyFragment;
import com.scb.phone.view.fragment.scheduledtransaction.ScheduleOnceFragment;
import java.nio.charset.StandardCharsets;
/* renamed from: o.eyC, reason: case insensitive filesystem */
/* loaded from: classes5.dex */
public final class C12433eyC extends MoT {
private static byte c = 6;
private static int d = 0;
private static int g = 1;
private Context a;
private boolean b;
private int[] e;
public C12433eyC(yRS yrs, Context context, boolean z) {
super(yrs);
this.e = new int[]{com.scb.phone.R.string.schedule_setup_002, com.scb.phone.R.string.schedule_setup_003};
this.a = context;
this.b = z;
}
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] ^ c);
}
objArr[0] = new String(bArr, StandardCharsets.UTF_8);
}
@Override // o.MoT
public final Fragment b(int i) {
if (i == 0) {
return new ScheduleOnceFragment();
}
if (i != 1) {
return null;
}
return new ScheduleMonthlyFragment();
}
@Override // o.WYJ
public final int getCount() {
if (this.b) {
return 1;
}
return this.e.length;
}
@Override // o.WYJ
public final CharSequence getPageTitle(int i) {
int i2 = 2 % 2;
int i3 = g + 75;
d = i3 % 128;
int i4 = i3 % 2;
String string = this.a.getString(this.e[i]);
if (string.startsWith(",*,)")) {
Object[] objArr = new Object[1];
h(string.substring(4), objArr);
string = ((String) objArr[0]).intern();
}
int i5 = g + 75;
d = i5 % 128;
if (i5 % 2 == 0) {
return string;
}
Object obj = null;
obj.hashCode();
throw null;
}
}