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

200 lines
5.7 KiB
Java

package o;
import androidx.fragment.app.Fragment;
import java.lang.reflect.Modifier;
import java.util.ArrayList;
import o.wdQ;
/* renamed from: o.fbE, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public abstract class AbstractC13482fbE {
public boolean a;
private final ClassLoader c;
public boolean d;
private final iAz e;
CharSequence f;
int g;
int h;
CharSequence i;
ArrayList<Runnable> j;
ArrayList<RVV> k;
public int l;
public String m;
public int n;
/* renamed from: o, reason: collision with root package name */
public int f9128o;
ArrayList<String> p;
int q;
public boolean r;
ArrayList<String> s;
public int t;
public abstract int a();
public abstract int b();
public abstract void d();
public abstract void e();
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: o.fbE$RVV */
/* loaded from: classes.dex */
public static final class RVV {
wdQ.IeS a;
int b;
int c;
Fragment d;
int e;
boolean f;
wdQ.IeS g;
int h;
int j;
/* JADX INFO: Access modifiers changed from: package-private */
public RVV() {
}
/* JADX INFO: Access modifiers changed from: package-private */
public RVV(int i, Fragment fragment) {
this.e = i;
this.d = fragment;
this.f = false;
this.g = wdQ.IeS.RESUMED;
this.a = wdQ.IeS.RESUMED;
}
/* JADX INFO: Access modifiers changed from: package-private */
public RVV(int i, Fragment fragment, byte b) {
this.e = i;
this.d = fragment;
this.f = true;
this.g = wdQ.IeS.RESUMED;
this.a = wdQ.IeS.RESUMED;
}
RVV(Fragment fragment, wdQ.IeS ieS) {
this.e = 10;
this.d = fragment;
this.f = false;
this.g = fragment.mMaxState;
this.a = ieS;
}
}
@Deprecated
public AbstractC13482fbE() {
this.k = new ArrayList<>();
this.d = true;
this.r = false;
this.e = null;
this.c = null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public AbstractC13482fbE(iAz iaz, ClassLoader classLoader) {
this.k = new ArrayList<>();
this.d = true;
this.r = false;
this.e = iaz;
this.c = classLoader;
}
/* JADX INFO: Access modifiers changed from: package-private */
public final void b(RVV rvv) {
this.k.add(rvv);
rvv.b = this.n;
rvv.c = this.f9128o;
rvv.h = this.l;
rvv.j = this.t;
}
public final AbstractC13482fbE b(Fragment fragment, String str) {
b(0, fragment, str, 1);
return this;
}
public final AbstractC13482fbE c(int i, Fragment fragment, String str) {
b(i, fragment, str, 1);
return this;
}
public void b(int i, Fragment fragment, String str, int i2) {
if (fragment.mPreviousWho != null) {
gFT.a(fragment, fragment.mPreviousWho);
}
Class<?> cls = fragment.getClass();
int modifiers = cls.getModifiers();
if (cls.isAnonymousClass() || !Modifier.isPublic(modifiers) || (cls.isMemberClass() && !Modifier.isStatic(modifiers))) {
StringBuilder sb = new StringBuilder("Fragment ");
sb.append(cls.getCanonicalName());
sb.append(" must be a public static class to be properly recreated from instance state.");
throw new IllegalStateException(sb.toString());
}
if (str != null) {
if (fragment.mTag != null && !str.equals(fragment.mTag)) {
StringBuilder sb2 = new StringBuilder("Can't change tag of fragment ");
sb2.append(fragment);
sb2.append(": was ");
sb2.append(fragment.mTag);
sb2.append(" now ");
sb2.append(str);
throw new IllegalStateException(sb2.toString());
}
fragment.mTag = str;
}
if (i != 0) {
if (i == -1) {
StringBuilder sb3 = new StringBuilder("Can't add fragment ");
sb3.append(fragment);
sb3.append(" with tag ");
sb3.append(str);
sb3.append(" to container view with no id");
throw new IllegalArgumentException(sb3.toString());
}
if (fragment.mFragmentId != 0 && fragment.mFragmentId != i) {
StringBuilder sb4 = new StringBuilder("Can't change container ID of fragment ");
sb4.append(fragment);
sb4.append(": was ");
sb4.append(fragment.mFragmentId);
sb4.append(" now ");
sb4.append(i);
throw new IllegalStateException(sb4.toString());
}
fragment.mFragmentId = i;
fragment.mContainerId = i;
}
b(new RVV(i2, fragment));
}
public AbstractC13482fbE e(Fragment fragment) {
b(new RVV(3, fragment));
return this;
}
public AbstractC13482fbE c(Fragment fragment) {
b(new RVV(4, fragment));
return this;
}
public AbstractC13482fbE a(Fragment fragment) {
b(new RVV(5, fragment));
return this;
}
public AbstractC13482fbE d(Fragment fragment) {
b(new RVV(6, fragment));
return this;
}
public AbstractC13482fbE d(Fragment fragment, wdQ.IeS ieS) {
b(new RVV(fragment, ieS));
return this;
}
public boolean f() {
return this.k.isEmpty();
}
}