73 lines
2.1 KiB
Java
73 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.creditcard.BilledTabFragment;
|
|
import com.scb.phone.view.fragment.creditcard.UnbilledTabFragment;
|
|
import java.nio.charset.StandardCharsets;
|
|
|
|
/* renamed from: o.esp, reason: case insensitive filesystem */
|
|
/* loaded from: classes5.dex */
|
|
public final class C12154esp extends MoT {
|
|
private static byte d = 6;
|
|
private static int h = 1;
|
|
private static int i;
|
|
private String a;
|
|
private int[] b;
|
|
private Context c;
|
|
private String e;
|
|
|
|
public C12154esp(yRS yrs, Context context, String str, String str2) {
|
|
super(yrs);
|
|
this.b = new int[]{com.scb.phone.R.string.unbilled, com.scb.phone.R.string.billed};
|
|
this.c = context;
|
|
this.e = str;
|
|
this.a = str2;
|
|
}
|
|
|
|
private void g(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] ^ d);
|
|
}
|
|
objArr[0] = new String(bArr, StandardCharsets.UTF_8);
|
|
}
|
|
|
|
@Override // o.MoT
|
|
public final Fragment b(int i2) {
|
|
if (i2 == 0) {
|
|
return UnbilledTabFragment.c(this.e);
|
|
}
|
|
if (i2 != 1) {
|
|
return null;
|
|
}
|
|
return BilledTabFragment.a(this.e, this.a);
|
|
}
|
|
|
|
@Override // o.WYJ
|
|
public final int getCount() {
|
|
return this.b.length;
|
|
}
|
|
|
|
@Override // o.WYJ
|
|
public final CharSequence getPageTitle(int i2) {
|
|
int i3 = 2 % 2;
|
|
int i4 = i + 61;
|
|
h = i4 % 128;
|
|
int i5 = i4 % 2;
|
|
String string = this.c.getString(this.b[i2]);
|
|
if (!string.startsWith(",*,)")) {
|
|
return string;
|
|
}
|
|
Object[] objArr = new Object[1];
|
|
g(string.substring(4), objArr);
|
|
String intern = ((String) objArr[0]).intern();
|
|
int i6 = h + 79;
|
|
i = i6 % 128;
|
|
int i7 = i6 % 2;
|
|
return intern;
|
|
}
|
|
}
|