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

111 lines
2.9 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.content.Context;
import androidx.fragment.app.Fragment;
import com.scb.phone.view.fragment.investment.redeem.AmountFragment;
import java.util.ArrayList;
/* renamed from: o.evN, reason: case insensitive filesystem */
/* loaded from: classes5.dex */
public final class C12285evN extends MoT {
private final boolean a;
private final Context b;
public final ArrayList<String> c;
private String d;
private String e;
private String g;
private String i;
public C12285evN(yRS yrs, Context context, boolean z, boolean z2, boolean z3) {
super(yrs);
ArrayList<String> arrayList = new ArrayList<>();
this.c = arrayList;
this.b = context;
this.a = z;
if (z2) {
arrayList.add("AMOUNT_TAB");
}
if (z3) {
arrayList.add("UNITS_TAB");
}
arrayList.add("ALL_TAB");
}
@Override // o.MoT
public final Fragment b(int i) {
char c;
String str = this.c.get(i);
str.hashCode();
int hashCode = str.hashCode();
if (hashCode == -1961848187) {
if (str.equals("UNITS_TAB")) {
c = 0;
}
c = 65535;
} else if (hashCode != -938489074) {
if (hashCode == -192886857 && str.equals("ALL_TAB")) {
c = 2;
}
c = 65535;
} else {
if (str.equals("AMOUNT_TAB")) {
c = 1;
}
c = 65535;
}
if (c == 0 || c == 1 || c == 2) {
return AmountFragment.a(str, this.e, this.i, this.d, this.a, this.g);
}
return new Fragment();
}
@Override // o.WYJ
public final int getCount() {
return this.c.size();
}
@Override // o.WYJ
public final CharSequence getPageTitle(int i) {
char c;
String str = this.c.get(i);
str.hashCode();
int hashCode = str.hashCode();
if (hashCode == -1961848187) {
if (str.equals("UNITS_TAB")) {
c = 0;
}
c = 65535;
} else if (hashCode != -938489074) {
if (hashCode == -192886857 && str.equals("ALL_TAB")) {
c = 2;
}
c = 65535;
} else {
if (str.equals("AMOUNT_TAB")) {
c = 1;
}
c = 65535;
}
if (c == 0) {
return this.b.getString(com.scb.phone.R.string.units);
}
if (c != 1) {
return c != 2 ? "" : this.b.getString(com.scb.phone.R.string.all);
}
return this.b.getString(com.scb.phone.R.string.baht);
}
public final void a(String str, String str2, String str3, String str4) {
this.e = str;
this.i = str2;
if (str3 == null) {
str3 = "";
}
this.d = str3;
if (str4 == null) {
str4 = "";
}
this.g = str4;
}
}