84 lines
2.6 KiB
Java
84 lines
2.6 KiB
Java
|
package o;
|
||
|
|
||
|
import android.content.Context;
|
||
|
import android.util.Base64;
|
||
|
import androidx.fragment.app.Fragment;
|
||
|
import com.scb.phone.view.fragment.sme.gifting.GiftRecipientFragment;
|
||
|
import com.scb.phone.view.fragment.sme.gifting.GiftRecipientFromFavouriteFragment;
|
||
|
import com.scb.phone.view.fragment.sme.gifting.GiftRecipientFromOthersFragment;
|
||
|
import java.nio.charset.StandardCharsets;
|
||
|
|
||
|
/* renamed from: o.eyZ, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class C12456eyZ extends rgb {
|
||
|
private static byte b = 6;
|
||
|
private static int d = 0;
|
||
|
private static int h = 1;
|
||
|
private Context a;
|
||
|
private int[] c;
|
||
|
private final String e;
|
||
|
|
||
|
public C12456eyZ(String str, yRS yrs, Context context) {
|
||
|
super(yrs);
|
||
|
this.c = new int[]{com.scb.phone.R.string.favorite_empty, com.scb.phone.R.string.tab_transfer_to_others, com.scb.phone.R.string.tab_transfer_to_prompt_pay};
|
||
|
this.a = context;
|
||
|
this.e = str;
|
||
|
}
|
||
|
|
||
|
private void f(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] ^ b);
|
||
|
}
|
||
|
objArr[0] = new String(bArr, StandardCharsets.UTF_8);
|
||
|
}
|
||
|
|
||
|
@Override // o.rgb
|
||
|
public final Fragment e(int i) {
|
||
|
if (i == 0) {
|
||
|
return GiftRecipientFromFavouriteFragment.d();
|
||
|
}
|
||
|
if (i == 1) {
|
||
|
return GiftRecipientFromOthersFragment.d();
|
||
|
}
|
||
|
if (i == 2) {
|
||
|
return GiftRecipientFragment.c(this.e);
|
||
|
}
|
||
|
return GiftRecipientFromFavouriteFragment.d();
|
||
|
}
|
||
|
|
||
|
@Override // o.WYJ
|
||
|
public final int getCount() {
|
||
|
return this.c.length;
|
||
|
}
|
||
|
|
||
|
@Override // o.WYJ
|
||
|
public final CharSequence getPageTitle(int i) {
|
||
|
int i2 = 2 % 2;
|
||
|
String string = this.a.getString(this.c[i]);
|
||
|
if (!(!string.startsWith(",*,)"))) {
|
||
|
int i3 = d + 113;
|
||
|
h = i3 % 128;
|
||
|
int i4 = i3 % 2;
|
||
|
String substring = string.substring(4);
|
||
|
if (i4 == 0) {
|
||
|
Object[] objArr = new Object[1];
|
||
|
f(substring, objArr);
|
||
|
string = ((String) objArr[0]).intern();
|
||
|
int i5 = 71 / 0;
|
||
|
} else {
|
||
|
Object[] objArr2 = new Object[1];
|
||
|
f(substring, objArr2);
|
||
|
string = ((String) objArr2[0]).intern();
|
||
|
}
|
||
|
}
|
||
|
int i6 = d + 57;
|
||
|
h = i6 % 128;
|
||
|
if (i6 % 2 != 0) {
|
||
|
return string;
|
||
|
}
|
||
|
throw null;
|
||
|
}
|
||
|
}
|