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

320 lines
11 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import androidx.fragment.app.Fragment;
import com.airbnb.deeplinkdispatch.UrlTreeKt;
import java.io.PrintWriter;
import java.util.ArrayList;
import o.AbstractC13482fbE;
import o.wdQ;
import o.yRS;
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes.dex */
public final class RlT extends AbstractC13482fbE implements yRS.HBt, yRS.ZqN {
int b;
boolean c;
final yRS e;
private boolean u;
public final String toString() {
StringBuilder sb = new StringBuilder(128);
sb.append("BackStackEntry{");
sb.append(Integer.toHexString(System.identityHashCode(this)));
if (this.b >= 0) {
sb.append(" #");
sb.append(this.b);
}
if (this.m != null) {
sb.append(" ");
sb.append(this.m);
}
sb.append(UrlTreeKt.componentParamSuffix);
return sb.toString();
}
public final void a(String str, PrintWriter printWriter, boolean z) {
String str2;
if (z) {
printWriter.print(str);
printWriter.print("mName=");
printWriter.print(this.m);
printWriter.print(" mIndex=");
printWriter.print(this.b);
printWriter.print(" mCommitted=");
printWriter.println(this.u);
if (this.q != 0) {
printWriter.print(str);
printWriter.print("mTransition=#");
printWriter.print(Integer.toHexString(this.q));
}
if (this.n != 0 || this.f9128o != 0) {
printWriter.print(str);
printWriter.print("mEnterAnim=#");
printWriter.print(Integer.toHexString(this.n));
printWriter.print(" mExitAnim=#");
printWriter.println(Integer.toHexString(this.f9128o));
}
if (this.l != 0 || this.t != 0) {
printWriter.print(str);
printWriter.print("mPopEnterAnim=#");
printWriter.print(Integer.toHexString(this.l));
printWriter.print(" mPopExitAnim=#");
printWriter.println(Integer.toHexString(this.t));
}
if (this.g != 0 || this.i != null) {
printWriter.print(str);
printWriter.print("mBreadCrumbTitleRes=#");
printWriter.print(Integer.toHexString(this.g));
printWriter.print(" mBreadCrumbTitleText=");
printWriter.println(this.i);
}
if (this.h != 0 || this.f != null) {
printWriter.print(str);
printWriter.print("mBreadCrumbShortTitleRes=#");
printWriter.print(Integer.toHexString(this.h));
printWriter.print(" mBreadCrumbShortTitleText=");
printWriter.println(this.f);
}
}
if (this.k.isEmpty()) {
return;
}
printWriter.print(str);
printWriter.println("Operations:");
int size = this.k.size();
for (int i = 0; i < size; i++) {
AbstractC13482fbE.RVV rvv = this.k.get(i);
switch (rvv.e) {
case 0:
str2 = "NULL";
break;
case 1:
str2 = "ADD";
break;
case 2:
str2 = "REPLACE";
break;
case 3:
str2 = "REMOVE";
break;
case 4:
str2 = "HIDE";
break;
case 5:
str2 = "SHOW";
break;
case 6:
str2 = "DETACH";
break;
case 7:
str2 = "ATTACH";
break;
case 8:
str2 = "SET_PRIMARY_NAV";
break;
case 9:
str2 = "UNSET_PRIMARY_NAV";
break;
case 10:
str2 = "OP_SET_MAX_LIFECYCLE";
break;
default:
StringBuilder sb = new StringBuilder("cmd=");
sb.append(rvv.e);
str2 = sb.toString();
break;
}
printWriter.print(str);
printWriter.print(" Op #");
printWriter.print(i);
printWriter.print(": ");
printWriter.print(str2);
printWriter.print(" ");
printWriter.println(rvv.d);
if (z) {
if (rvv.b != 0 || rvv.c != 0) {
printWriter.print(str);
printWriter.print("enterAnim=#");
printWriter.print(Integer.toHexString(rvv.b));
printWriter.print(" exitAnim=#");
printWriter.println(Integer.toHexString(rvv.c));
}
if (rvv.h != 0 || rvv.j != 0) {
printWriter.print(str);
printWriter.print("popEnterAnim=#");
printWriter.print(Integer.toHexString(rvv.h));
printWriter.print(" popExitAnim=#");
printWriter.println(Integer.toHexString(rvv.j));
}
}
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public RlT(yRS yrs) {
super(yrs.p(), yrs.q() != null ? yrs.q().c.getClassLoader() : null);
this.b = -1;
this.c = false;
this.e = yrs;
}
/* JADX INFO: Access modifiers changed from: package-private */
@Override // o.AbstractC13482fbE
public final void b(int i, Fragment fragment, String str, int i2) {
super.b(i, fragment, str, i2);
fragment.mFragmentManager = this.e;
}
@Override // o.AbstractC13482fbE
public final AbstractC13482fbE e(Fragment fragment) {
if (fragment.mFragmentManager != null && fragment.mFragmentManager != this.e) {
StringBuilder sb = new StringBuilder("Cannot remove Fragment attached to a different FragmentManager. Fragment ");
sb.append(fragment.toString());
sb.append(" is already attached to a FragmentManager.");
throw new IllegalStateException(sb.toString());
}
return super.e(fragment);
}
@Override // o.AbstractC13482fbE
public final AbstractC13482fbE c(Fragment fragment) {
if (fragment.mFragmentManager != null && fragment.mFragmentManager != this.e) {
StringBuilder sb = new StringBuilder("Cannot hide Fragment attached to a different FragmentManager. Fragment ");
sb.append(fragment.toString());
sb.append(" is already attached to a FragmentManager.");
throw new IllegalStateException(sb.toString());
}
return super.c(fragment);
}
@Override // o.AbstractC13482fbE
public final AbstractC13482fbE a(Fragment fragment) {
if (fragment.mFragmentManager != null && fragment.mFragmentManager != this.e) {
StringBuilder sb = new StringBuilder("Cannot show Fragment attached to a different FragmentManager. Fragment ");
sb.append(fragment.toString());
sb.append(" is already attached to a FragmentManager.");
throw new IllegalStateException(sb.toString());
}
return super.a(fragment);
}
@Override // o.AbstractC13482fbE
public final AbstractC13482fbE d(Fragment fragment) {
if (fragment.mFragmentManager != null && fragment.mFragmentManager != this.e) {
StringBuilder sb = new StringBuilder("Cannot detach Fragment attached to a different FragmentManager. Fragment ");
sb.append(fragment.toString());
sb.append(" is already attached to a FragmentManager.");
throw new IllegalStateException(sb.toString());
}
return super.d(fragment);
}
@Override // o.AbstractC13482fbE
public final AbstractC13482fbE d(Fragment fragment, wdQ.IeS ieS) {
if (fragment.mFragmentManager != this.e) {
StringBuilder sb = new StringBuilder("Cannot setMaxLifecycle for Fragment not attached to FragmentManager ");
sb.append(this.e);
throw new IllegalArgumentException(sb.toString());
}
if (ieS == wdQ.IeS.INITIALIZED && fragment.mState >= 0) {
StringBuilder sb2 = new StringBuilder("Cannot set maximum Lifecycle to ");
sb2.append(ieS);
sb2.append(" after the Fragment has been created");
throw new IllegalArgumentException(sb2.toString());
}
if (ieS == wdQ.IeS.DESTROYED) {
StringBuilder sb3 = new StringBuilder("Cannot set maximum Lifecycle to ");
sb3.append(ieS);
sb3.append(". Use remove() to remove the fragment from the FragmentManager and trigger its destruction.");
throw new IllegalArgumentException(sb3.toString());
}
return super.d(fragment, ieS);
}
/* JADX INFO: Access modifiers changed from: package-private */
public final void b(int i) {
if (this.a) {
yRS.b(2);
int size = this.k.size();
for (int i2 = 0; i2 < size; i2++) {
AbstractC13482fbE.RVV rvv = this.k.get(i2);
if (rvv.d != null) {
rvv.d.mBackStackNesting += i;
if (yRS.b(2)) {
Fragment fragment = rvv.d;
int i3 = rvv.d.mBackStackNesting;
}
}
}
}
}
@Override // o.AbstractC13482fbE
public final int b() {
return c(false);
}
@Override // o.AbstractC13482fbE
public final int a() {
return c(true);
}
@Override // o.AbstractC13482fbE
public final void d() {
if (!this.a) {
this.d = false;
this.e.e((yRS.ZqN) this, false);
return;
}
throw new IllegalStateException("This transaction is already being added to the back stack");
}
@Override // o.AbstractC13482fbE
public final void e() {
if (!this.a) {
this.d = false;
this.e.e((yRS.ZqN) this, true);
return;
}
throw new IllegalStateException("This transaction is already being added to the back stack");
}
private int c(boolean z) {
if (this.u) {
throw new IllegalStateException("commit already called");
}
if (yRS.b(2)) {
PrintWriter printWriter = new PrintWriter(new ico("FragmentManager"));
a(" ", printWriter, true);
printWriter.close();
}
this.u = true;
this.b = this.a ? this.e.c() : -1;
yRS yrs = this.e;
yRS.c(new Object[]{yrs, this, Boolean.valueOf(z)}, 25603384, -25603378, System.identityHashCode(yrs));
return this.b;
}
@Override // o.yRS.ZqN
public final boolean e(ArrayList<RlT> arrayList, ArrayList<Boolean> arrayList2) {
yRS.b(2);
arrayList.add(this);
arrayList2.add(Boolean.FALSE);
if (!this.a) {
return true;
}
this.e.b(this);
return true;
}
@Override // o.yRS.HBt
public final String c() {
return this.m;
}
@Override // o.AbstractC13482fbE
public final boolean f() {
return this.k.isEmpty();
}
}