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

74 lines
2.2 KiB
Java

package o;
import android.content.Context;
import android.util.Base64;
import androidx.fragment.app.Fragment;
import com.scb.phone.view.fragment.chequemanagement.chequestatus.ChequeStatusFragment;
import java.nio.charset.StandardCharsets;
/* renamed from: o.esd, reason: case insensitive filesystem */
/* loaded from: classes5.dex */
public final class C12142esd extends MoT {
private static byte a = 6;
private static int g = 0;
private static int j = 1;
private ChequeStatusFragment b;
private ChequeStatusFragment c;
private Context d;
private int[] e;
public C12142esd(yRS yrs, Context context, int i, int i2) {
super(yrs);
this.e = new int[]{com.scb.phone.R.string.cheque_status_tab_received, com.scb.phone.R.string.cheque_status_tab_issued};
this.d = context;
this.b = ChequeStatusFragment.c(true, i);
this.c = ChequeStatusFragment.c(false, i2);
}
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] ^ a);
}
objArr[0] = new String(bArr, StandardCharsets.UTF_8);
}
@Override // o.WYJ
public final int getCount() {
return this.e.length;
}
@Override // o.WYJ
public final CharSequence getPageTitle(int i) {
String string;
int i2 = 2 % 2;
int i3 = g + 29;
j = i3 % 128;
if (i3 % 2 == 0) {
string = this.d.getString(this.e[i]);
int i4 = 61 / 0;
if (!string.startsWith(",*,)")) {
return string;
}
} else {
string = this.d.getString(this.e[i]);
if (!string.startsWith(",*,)")) {
return string;
}
}
Object[] objArr = new Object[1];
h(string.substring(4), objArr);
String intern = ((String) objArr[0]).intern();
int i5 = j + 59;
g = i5 % 128;
int i6 = i5 % 2;
return intern;
}
@Override // o.MoT
public final /* bridge */ /* synthetic */ Fragment b(int i) {
return i == 0 ? this.b : this.c;
}
}