package androidx.fragment.app; import android.animation.Animator; import android.animation.AnimatorListenerAdapter; import android.content.Context; import android.content.Intent; import android.content.IntentSender; import android.content.res.Configuration; import android.os.Bundle; import android.os.Looper; import android.os.Parcel; import android.os.Parcelable; import android.util.Log; import android.view.LayoutInflater; import android.view.Menu; import android.view.MenuInflater; import android.view.MenuItem; import android.view.View; import android.view.ViewGroup; import android.view.animation.Animation; import androidx.activity.OnBackPressedDispatcher; import androidx.activity.result.ActivityResultRegistry; import androidx.activity.result.e; import androidx.fragment.app.Fragment; import androidx.fragment.app.f; import androidx.fragment.app.v; import androidx.fragment.app.w; import androidx.lifecycle.LifecycleOwner; import androidx.lifecycle.e; import com.google.android.gms.ads.RequestConfiguration; import java.io.FileDescriptor; import java.io.PrintWriter; import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set; import java.util.concurrent.CopyOnWriteArrayList; import java.util.concurrent.atomic.AtomicInteger; /* loaded from: classes.dex */ public abstract class n { private static boolean O = false; static boolean P = true; private androidx.activity.result.c A; private androidx.activity.result.c B; private boolean D; private boolean E; private boolean F; private boolean G; private boolean H; private ArrayList I; private ArrayList J; private ArrayList K; private ArrayList L; private q M; /* renamed from: b, reason: collision with root package name */ private boolean f1844b; /* renamed from: d, reason: collision with root package name */ ArrayList f1846d; /* renamed from: e, reason: collision with root package name */ private ArrayList f1847e; /* renamed from: g, reason: collision with root package name */ private OnBackPressedDispatcher f1849g; /* renamed from: l, reason: collision with root package name */ private ArrayList f1854l; /* renamed from: r, reason: collision with root package name */ private androidx.fragment.app.k f1860r; /* renamed from: s, reason: collision with root package name */ private androidx.fragment.app.g f1861s; /* renamed from: t, reason: collision with root package name */ private Fragment f1862t; /* renamed from: u, reason: collision with root package name */ Fragment f1863u; /* renamed from: z, reason: collision with root package name */ private androidx.activity.result.c f1868z; /* renamed from: a, reason: collision with root package name */ private final ArrayList f1843a = new ArrayList(); /* renamed from: c, reason: collision with root package name */ private final u f1845c = new u(); /* renamed from: f, reason: collision with root package name */ private final androidx.fragment.app.l f1848f = new androidx.fragment.app.l(this); /* renamed from: h, reason: collision with root package name */ private final androidx.activity.b f1850h = new c(false); /* renamed from: i, reason: collision with root package name */ private final AtomicInteger f1851i = new AtomicInteger(); /* renamed from: j, reason: collision with root package name */ private final Map f1852j = Collections.synchronizedMap(new HashMap()); /* renamed from: k, reason: collision with root package name */ private final Map f1853k = Collections.synchronizedMap(new HashMap()); /* renamed from: m, reason: collision with root package name */ private Map f1855m = Collections.synchronizedMap(new HashMap()); /* renamed from: n, reason: collision with root package name */ private final w.g f1856n = new d(); /* renamed from: o, reason: collision with root package name */ private final androidx.fragment.app.m f1857o = new androidx.fragment.app.m(this); /* renamed from: p, reason: collision with root package name */ private final CopyOnWriteArrayList f1858p = new CopyOnWriteArrayList(); /* renamed from: q, reason: collision with root package name */ int f1859q = -1; /* renamed from: v, reason: collision with root package name */ private androidx.fragment.app.j f1864v = null; /* renamed from: w, reason: collision with root package name */ private androidx.fragment.app.j f1865w = new e(); /* renamed from: x, reason: collision with root package name */ private c0 f1866x = null; /* renamed from: y, reason: collision with root package name */ private c0 f1867y = new f(); ArrayDeque C = new ArrayDeque(); private Runnable N = new g(); class a implements androidx.activity.result.b { a() { } @Override // androidx.activity.result.b /* renamed from: b, reason: merged with bridge method [inline-methods] */ public void a(androidx.activity.result.a aVar) { l lVar = (l) n.this.C.pollFirst(); if (lVar == null) { Log.w("FragmentManager", "No IntentSenders were started for " + this); return; } String str = lVar.f1883a; int i10 = lVar.f1884b; Fragment i11 = n.this.f1845c.i(str); if (i11 != null) { i11.onActivityResult(i10, aVar.b(), aVar.a()); return; } Log.w("FragmentManager", "Intent Sender result delivered for unknown Fragment " + str); } } class b implements androidx.activity.result.b { b() { } @Override // androidx.activity.result.b /* renamed from: b, reason: merged with bridge method [inline-methods] */ public void a(Map map) { String[] strArr = (String[]) map.keySet().toArray(new String[0]); ArrayList arrayList = new ArrayList(map.values()); int[] iArr = new int[arrayList.size()]; for (int i10 = 0; i10 < arrayList.size(); i10++) { iArr[i10] = ((Boolean) arrayList.get(i10)).booleanValue() ? 0 : -1; } l lVar = (l) n.this.C.pollFirst(); if (lVar == null) { Log.w("FragmentManager", "No permissions were requested for " + this); return; } String str = lVar.f1883a; int i11 = lVar.f1884b; Fragment i12 = n.this.f1845c.i(str); if (i12 != null) { i12.onRequestPermissionsResult(i11, strArr, iArr); return; } Log.w("FragmentManager", "Permission request result delivered for unknown Fragment " + str); } } class c extends androidx.activity.b { c(boolean z10) { super(z10); } @Override // androidx.activity.b public void b() { n.this.A0(); } } class d implements w.g { d() { } @Override // androidx.fragment.app.w.g public void a(Fragment fragment, v.b bVar) { n.this.f(fragment, bVar); } @Override // androidx.fragment.app.w.g public void b(Fragment fragment, v.b bVar) { if (bVar.b()) { return; } n.this.a1(fragment, bVar); } } class e extends androidx.fragment.app.j { e() { } @Override // androidx.fragment.app.j public Fragment a(ClassLoader classLoader, String str) { return n.this.s0().b(n.this.s0().f(), str, null); } } class f implements c0 { f() { } @Override // androidx.fragment.app.c0 public b0 a(ViewGroup viewGroup) { return new androidx.fragment.app.c(viewGroup); } } class g implements Runnable { g() { } @Override // java.lang.Runnable public void run() { n.this.a0(true); } } class h extends AnimatorListenerAdapter { /* renamed from: a, reason: collision with root package name */ final /* synthetic */ ViewGroup f1876a; /* renamed from: b, reason: collision with root package name */ final /* synthetic */ View f1877b; /* renamed from: c, reason: collision with root package name */ final /* synthetic */ Fragment f1878c; h(ViewGroup viewGroup, View view, Fragment fragment) { this.f1876a = viewGroup; this.f1877b = view; this.f1878c = fragment; } @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener public void onAnimationEnd(Animator animator) { this.f1876a.endViewTransition(this.f1877b); animator.removeListener(this); Fragment fragment = this.f1878c; View view = fragment.mView; if (view == null || !fragment.mHidden) { return; } view.setVisibility(8); } } class i implements r { /* renamed from: a, reason: collision with root package name */ final /* synthetic */ Fragment f1880a; i(Fragment fragment) { this.f1880a = fragment; } @Override // androidx.fragment.app.r public void a(n nVar, Fragment fragment) { this.f1880a.onAttachFragment(fragment); } } class j implements androidx.activity.result.b { j() { } @Override // androidx.activity.result.b /* renamed from: b, reason: merged with bridge method [inline-methods] */ public void a(androidx.activity.result.a aVar) { l lVar = (l) n.this.C.pollFirst(); if (lVar == null) { Log.w("FragmentManager", "No Activities were started for result for " + this); return; } String str = lVar.f1883a; int i10 = lVar.f1884b; Fragment i11 = n.this.f1845c.i(str); if (i11 != null) { i11.onActivityResult(i10, aVar.b(), aVar.a()); return; } Log.w("FragmentManager", "Activity result delivered for unknown Fragment " + str); } } static class k extends c.a { k() { } @Override // c.a /* renamed from: d, reason: merged with bridge method [inline-methods] */ public Intent a(Context context, androidx.activity.result.e eVar) { Bundle bundleExtra; Intent intent = new Intent("androidx.activity.result.contract.action.INTENT_SENDER_REQUEST"); Intent a10 = eVar.a(); if (a10 != null && (bundleExtra = a10.getBundleExtra("androidx.activity.result.contract.extra.ACTIVITY_OPTIONS_BUNDLE")) != null) { intent.putExtra("androidx.activity.result.contract.extra.ACTIVITY_OPTIONS_BUNDLE", bundleExtra); a10.removeExtra("androidx.activity.result.contract.extra.ACTIVITY_OPTIONS_BUNDLE"); if (a10.getBooleanExtra("androidx.fragment.extra.ACTIVITY_OPTIONS_BUNDLE", false)) { eVar = new e.b(eVar.d()).b(null).c(eVar.c(), eVar.b()).a(); } } intent.putExtra("androidx.activity.result.contract.extra.INTENT_SENDER_REQUEST", eVar); if (n.E0(2)) { Log.v("FragmentManager", "CreateIntent created the following intent: " + intent); } return intent; } @Override // c.a /* renamed from: e, reason: merged with bridge method [inline-methods] */ public androidx.activity.result.a c(int i10, Intent intent) { return new androidx.activity.result.a(i10, intent); } } interface m { boolean a(ArrayList arrayList, ArrayList arrayList2); } /* renamed from: androidx.fragment.app.n$n, reason: collision with other inner class name */ private class C0025n implements m { /* renamed from: a, reason: collision with root package name */ final String f1885a; /* renamed from: b, reason: collision with root package name */ final int f1886b; /* renamed from: c, reason: collision with root package name */ final int f1887c; C0025n(String str, int i10, int i11) { this.f1885a = str; this.f1886b = i10; this.f1887c = i11; } @Override // androidx.fragment.app.n.m public boolean a(ArrayList arrayList, ArrayList arrayList2) { Fragment fragment = n.this.f1863u; if (fragment == null || this.f1886b >= 0 || this.f1885a != null || !fragment.getChildFragmentManager().W0()) { return n.this.Y0(arrayList, arrayList2, this.f1885a, this.f1886b, this.f1887c); } return false; } } static class o implements Fragment.l { /* renamed from: a, reason: collision with root package name */ final boolean f1889a; /* renamed from: b, reason: collision with root package name */ final androidx.fragment.app.a f1890b; /* renamed from: c, reason: collision with root package name */ private int f1891c; o(androidx.fragment.app.a aVar, boolean z10) { this.f1889a = z10; this.f1890b = aVar; } @Override // androidx.fragment.app.Fragment.l public void a() { this.f1891c++; } @Override // androidx.fragment.app.Fragment.l public void b() { int i10 = this.f1891c - 1; this.f1891c = i10; if (i10 != 0) { return; } this.f1890b.f1710t.i1(); } void c() { androidx.fragment.app.a aVar = this.f1890b; aVar.f1710t.t(aVar, this.f1889a, false, false); } void d() { boolean z10 = this.f1891c > 0; for (Fragment fragment : this.f1890b.f1710t.r0()) { fragment.setOnStartEnterTransitionListener(null); if (z10 && fragment.isPostponed()) { fragment.startPostponedEnterTransition(); } } androidx.fragment.app.a aVar = this.f1890b; aVar.f1710t.t(aVar, this.f1889a, !z10, true); } public boolean e() { return this.f1891c == 0; } } static boolean E0(int i10) { return O || Log.isLoggable("FragmentManager", i10); } private boolean F0(Fragment fragment) { return (fragment.mHasMenu && fragment.mMenuVisible) || fragment.mChildFragmentManager.o(); } private void L(Fragment fragment) { if (fragment == null || !fragment.equals(f0(fragment.mWho))) { return; } fragment.performPrimaryNavigationFragmentChanged(); } private void N0(androidx.collection.b bVar) { int size = bVar.size(); for (int i10 = 0; i10 < size; i10++) { Fragment fragment = (Fragment) bVar.h(i10); if (!fragment.mAdded) { View requireView = fragment.requireView(); fragment.mPostponedAlpha = requireView.getAlpha(); requireView.setAlpha(0.0f); } } } private void S(int i10) { try { this.f1844b = true; this.f1845c.d(i10); P0(i10, false); if (P) { Iterator it = r().iterator(); while (it.hasNext()) { ((b0) it.next()).j(); } } this.f1844b = false; a0(true); } catch (Throwable th) { this.f1844b = false; throw th; } } private void V() { if (this.H) { this.H = false; o1(); } } private void X() { if (P) { Iterator it = r().iterator(); while (it.hasNext()) { ((b0) it.next()).j(); } } else { if (this.f1855m.isEmpty()) { return; } for (Fragment fragment : this.f1855m.keySet()) { n(fragment); Q0(fragment); } } } private boolean X0(String str, int i10, int i11) { a0(false); Z(true); Fragment fragment = this.f1863u; if (fragment != null && i10 < 0 && str == null && fragment.getChildFragmentManager().W0()) { return true; } boolean Y0 = Y0(this.I, this.J, str, i10, i11); if (Y0) { this.f1844b = true; try { c1(this.I, this.J); } finally { q(); } } p1(); V(); this.f1845c.b(); return Y0; } private void Z(boolean z10) { if (this.f1844b) { throw new IllegalStateException("FragmentManager is already executing transactions"); } if (this.f1860r == null) { if (!this.G) { throw new IllegalStateException("FragmentManager has not been attached to a host."); } throw new IllegalStateException("FragmentManager has been destroyed"); } if (Looper.myLooper() != this.f1860r.g().getLooper()) { throw new IllegalStateException("Must be called from main thread of fragment host"); } if (!z10) { p(); } if (this.I == null) { this.I = new ArrayList(); this.J = new ArrayList(); } this.f1844b = true; try { e0(null, null); } finally { this.f1844b = false; } } private int Z0(ArrayList arrayList, ArrayList arrayList2, int i10, int i11, androidx.collection.b bVar) { int i12 = i11; for (int i13 = i11 - 1; i13 >= i10; i13--) { androidx.fragment.app.a aVar = (androidx.fragment.app.a) arrayList.get(i13); boolean booleanValue = ((Boolean) arrayList2.get(i13)).booleanValue(); if (aVar.A() && !aVar.y(arrayList, i13 + 1, i11)) { if (this.L == null) { this.L = new ArrayList(); } o oVar = new o(aVar, booleanValue); this.L.add(oVar); aVar.C(oVar); if (booleanValue) { aVar.t(); } else { aVar.u(false); } i12--; if (i13 != i12) { arrayList.remove(i13); arrayList.add(i12, aVar); } d(bVar); } } return i12; } private static void c0(ArrayList arrayList, ArrayList arrayList2, int i10, int i11) { while (i10 < i11) { androidx.fragment.app.a aVar = (androidx.fragment.app.a) arrayList.get(i10); if (((Boolean) arrayList2.get(i10)).booleanValue()) { aVar.p(-1); aVar.u(i10 == i11 + (-1)); } else { aVar.p(1); aVar.t(); } i10++; } } private void c1(ArrayList arrayList, ArrayList arrayList2) { if (arrayList.isEmpty()) { return; } if (arrayList.size() != arrayList2.size()) { throw new IllegalStateException("Internal error with the back stack records"); } e0(arrayList, arrayList2); int size = arrayList.size(); int i10 = 0; int i11 = 0; while (i10 < size) { if (!((androidx.fragment.app.a) arrayList.get(i10)).f1949r) { if (i11 != i10) { d0(arrayList, arrayList2, i11, i10); } i11 = i10 + 1; if (((Boolean) arrayList2.get(i10)).booleanValue()) { while (i11 < size && ((Boolean) arrayList2.get(i11)).booleanValue() && !((androidx.fragment.app.a) arrayList.get(i11)).f1949r) { i11++; } } d0(arrayList, arrayList2, i10, i11); i10 = i11 - 1; } i10++; } if (i11 != size) { d0(arrayList, arrayList2, i11, size); } } private void d(androidx.collection.b bVar) { int i10 = this.f1859q; if (i10 < 1) { return; } int min = Math.min(i10, 5); for (Fragment fragment : this.f1845c.n()) { if (fragment.mState < min) { R0(fragment, min); if (fragment.mView != null && !fragment.mHidden && fragment.mIsNewlyAdded) { bVar.add(fragment); } } } } /* JADX WARN: Multi-variable type inference failed */ /* JADX WARN: Removed duplicated region for block: B:48:0x00c5 */ /* JADX WARN: Removed duplicated region for block: B:82:0x019d */ /* JADX WARN: Removed duplicated region for block: B:93:0x01be */ /* JADX WARN: Removed duplicated region for block: B:96:? A[RETURN, SYNTHETIC] */ /* JADX WARN: Removed duplicated region for block: B:97:0x0143 */ /* JADX WARN: Type inference failed for: r1v17 */ /* JADX WARN: Type inference failed for: r1v3 */ /* JADX WARN: Type inference failed for: r1v4, types: [boolean, int] */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct code enable 'Show inconsistent code' option in preferences */ private void d0(java.util.ArrayList r18, java.util.ArrayList r19, int r20, int r21) { /* Method dump skipped, instructions count: 450 To view this dump change 'Code comments level' option to 'DEBUG' */ throw new UnsupportedOperationException("Method not decompiled: androidx.fragment.app.n.d0(java.util.ArrayList, java.util.ArrayList, int, int):void"); } private void e0(ArrayList arrayList, ArrayList arrayList2) { int indexOf; int indexOf2; ArrayList arrayList3 = this.L; int size = arrayList3 == null ? 0 : arrayList3.size(); int i10 = 0; while (i10 < size) { o oVar = (o) this.L.get(i10); if (arrayList != null && !oVar.f1889a && (indexOf2 = arrayList.indexOf(oVar.f1890b)) != -1 && arrayList2 != null && ((Boolean) arrayList2.get(indexOf2)).booleanValue()) { this.L.remove(i10); i10--; size--; oVar.c(); } else if (oVar.e() || (arrayList != null && oVar.f1890b.y(arrayList, 0, arrayList.size()))) { this.L.remove(i10); i10--; size--; if (arrayList == null || oVar.f1889a || (indexOf = arrayList.indexOf(oVar.f1890b)) == -1 || arrayList2 == null || !((Boolean) arrayList2.get(indexOf)).booleanValue()) { oVar.d(); } else { oVar.c(); } } i10++; } } private void e1() { ArrayList arrayList = this.f1854l; if (arrayList == null || arrayList.size() <= 0) { return; } androidx.appcompat.app.m.a(this.f1854l.get(0)); throw null; } static int g1(int i10) { if (i10 == 4097) { return 8194; } if (i10 != 4099) { return i10 != 8194 ? 0 : 4097; } return 4099; } private void j0() { if (P) { Iterator it = r().iterator(); while (it.hasNext()) { ((b0) it.next()).k(); } } else if (this.L != null) { while (!this.L.isEmpty()) { ((o) this.L.remove(0)).d(); } } } private boolean k0(ArrayList arrayList, ArrayList arrayList2) { synchronized (this.f1843a) { if (this.f1843a.isEmpty()) { return false; } int size = this.f1843a.size(); boolean z10 = false; for (int i10 = 0; i10 < size; i10++) { z10 |= ((m) this.f1843a.get(i10)).a(arrayList, arrayList2); } this.f1843a.clear(); this.f1860r.g().removeCallbacks(this.N); return z10; } } private q m0(Fragment fragment) { return this.M.i(fragment); } private void m1(Fragment fragment) { ViewGroup o02 = o0(fragment); if (o02 == null || fragment.getEnterAnim() + fragment.getExitAnim() + fragment.getPopEnterAnim() + fragment.getPopExitAnim() <= 0) { return; } int i10 = f0.b.f9491c; if (o02.getTag(i10) == null) { o02.setTag(i10, fragment); } ((Fragment) o02.getTag(i10)).setPopDirection(fragment.getPopDirection()); } private void n(Fragment fragment) { HashSet hashSet = (HashSet) this.f1855m.get(fragment); if (hashSet != null) { Iterator it = hashSet.iterator(); while (it.hasNext()) { ((v.b) it.next()).a(); } hashSet.clear(); w(fragment); this.f1855m.remove(fragment); } } private ViewGroup o0(Fragment fragment) { ViewGroup viewGroup = fragment.mContainer; if (viewGroup != null) { return viewGroup; } if (fragment.mContainerId > 0 && this.f1861s.d()) { View c10 = this.f1861s.c(fragment.mContainerId); if (c10 instanceof ViewGroup) { return (ViewGroup) c10; } } return null; } private void o1() { Iterator it = this.f1845c.k().iterator(); while (it.hasNext()) { U0((t) it.next()); } } private void p() { if (J0()) { throw new IllegalStateException("Can not perform this action after onSaveInstanceState"); } } private void p1() { synchronized (this.f1843a) { if (this.f1843a.isEmpty()) { this.f1850h.f(l0() > 0 && H0(this.f1862t)); } else { this.f1850h.f(true); } } } private void q() { this.f1844b = false; this.J.clear(); this.I.clear(); } private Set r() { HashSet hashSet = new HashSet(); Iterator it = this.f1845c.k().iterator(); while (it.hasNext()) { ViewGroup viewGroup = ((t) it.next()).k().mContainer; if (viewGroup != null) { hashSet.add(b0.o(viewGroup, x0())); } } return hashSet; } private Set s(ArrayList arrayList, int i10, int i11) { ViewGroup viewGroup; HashSet hashSet = new HashSet(); while (i10 < i11) { Iterator it = ((androidx.fragment.app.a) arrayList.get(i10)).f1934c.iterator(); while (it.hasNext()) { Fragment fragment = ((v.a) it.next()).f1952b; if (fragment != null && (viewGroup = fragment.mContainer) != null) { hashSet.add(b0.n(viewGroup, this)); } } i10++; } return hashSet; } private void u(Fragment fragment) { Animator animator; if (fragment.mView != null) { f.d c10 = androidx.fragment.app.f.c(this.f1860r.f(), fragment, !fragment.mHidden, fragment.getPopDirection()); if (c10 == null || (animator = c10.f1821b) == null) { if (c10 != null) { fragment.mView.startAnimation(c10.f1820a); c10.f1820a.start(); } fragment.mView.setVisibility((!fragment.mHidden || fragment.isHideReplaced()) ? 0 : 8); if (fragment.isHideReplaced()) { fragment.setHideReplaced(false); } } else { animator.setTarget(fragment.mView); if (!fragment.mHidden) { fragment.mView.setVisibility(0); } else if (fragment.isHideReplaced()) { fragment.setHideReplaced(false); } else { ViewGroup viewGroup = fragment.mContainer; View view = fragment.mView; viewGroup.startViewTransition(view); c10.f1821b.addListener(new h(viewGroup, view, fragment)); } c10.f1821b.start(); } } C0(fragment); fragment.mHiddenChanged = false; fragment.onHiddenChanged(fragment.mHidden); } private void w(Fragment fragment) { fragment.performDestroyView(); this.f1857o.n(fragment, false); fragment.mContainer = null; fragment.mView = null; fragment.mViewLifecycleOwner = null; fragment.mViewLifecycleOwnerLiveData.n(null); fragment.mInLayout = false; } static Fragment y0(View view) { Object tag = view.getTag(f0.b.f9489a); if (tag instanceof Fragment) { return (Fragment) tag; } return null; } void A(Configuration configuration) { for (Fragment fragment : this.f1845c.n()) { if (fragment != null) { fragment.performConfigurationChanged(configuration); } } } void A0() { a0(true); if (this.f1850h.c()) { W0(); } else { this.f1849g.c(); } } boolean B(MenuItem menuItem) { if (this.f1859q < 1) { return false; } for (Fragment fragment : this.f1845c.n()) { if (fragment != null && fragment.performContextItemSelected(menuItem)) { return true; } } return false; } void B0(Fragment fragment) { if (E0(2)) { Log.v("FragmentManager", "hide: " + fragment); } if (fragment.mHidden) { return; } fragment.mHidden = true; fragment.mHiddenChanged = true ^ fragment.mHiddenChanged; m1(fragment); } void C() { this.E = false; this.F = false; this.M.o(false); S(1); } void C0(Fragment fragment) { if (fragment.mAdded && F0(fragment)) { this.D = true; } } boolean D(Menu menu, MenuInflater menuInflater) { if (this.f1859q < 1) { return false; } ArrayList arrayList = null; boolean z10 = false; for (Fragment fragment : this.f1845c.n()) { if (fragment != null && G0(fragment) && fragment.performCreateOptionsMenu(menu, menuInflater)) { if (arrayList == null) { arrayList = new ArrayList(); } arrayList.add(fragment); z10 = true; } } if (this.f1847e != null) { for (int i10 = 0; i10 < this.f1847e.size(); i10++) { Fragment fragment2 = (Fragment) this.f1847e.get(i10); if (arrayList == null || !arrayList.contains(fragment2)) { fragment2.onDestroyOptionsMenu(); } } } this.f1847e = arrayList; return z10; } public boolean D0() { return this.G; } void E() { this.G = true; a0(true); X(); S(-1); this.f1860r = null; this.f1861s = null; this.f1862t = null; if (this.f1849g != null) { this.f1850h.d(); this.f1849g = null; } androidx.activity.result.c cVar = this.f1868z; if (cVar != null) { cVar.c(); this.A.c(); this.B.c(); } } void F() { S(1); } void G() { for (Fragment fragment : this.f1845c.n()) { if (fragment != null) { fragment.performLowMemory(); } } } boolean G0(Fragment fragment) { if (fragment == null) { return true; } return fragment.isMenuVisible(); } void H(boolean z10) { for (Fragment fragment : this.f1845c.n()) { if (fragment != null) { fragment.performMultiWindowModeChanged(z10); } } } boolean H0(Fragment fragment) { if (fragment == null) { return true; } n nVar = fragment.mFragmentManager; return fragment.equals(nVar.w0()) && H0(nVar.f1862t); } void I(Fragment fragment) { Iterator it = this.f1858p.iterator(); while (it.hasNext()) { ((r) it.next()).a(this, fragment); } } boolean I0(int i10) { return this.f1859q >= i10; } boolean J(MenuItem menuItem) { if (this.f1859q < 1) { return false; } for (Fragment fragment : this.f1845c.n()) { if (fragment != null && fragment.performOptionsItemSelected(menuItem)) { return true; } } return false; } public boolean J0() { return this.E || this.F; } void K(Menu menu) { if (this.f1859q < 1) { return; } for (Fragment fragment : this.f1845c.n()) { if (fragment != null) { fragment.performOptionsMenuClosed(menu); } } } void K0(Fragment fragment, String[] strArr, int i10) { if (this.B == null) { this.f1860r.j(fragment, strArr, i10); return; } this.C.addLast(new l(fragment.mWho, i10)); this.B.a(strArr); } void L0(Fragment fragment, Intent intent, int i10, Bundle bundle) { if (this.f1868z == null) { this.f1860r.m(fragment, intent, i10, bundle); return; } this.C.addLast(new l(fragment.mWho, i10)); if (intent != null && bundle != null) { intent.putExtra("androidx.activity.result.contract.extra.ACTIVITY_OPTIONS_BUNDLE", bundle); } this.f1868z.a(intent); } void M() { S(5); } void M0(Fragment fragment, IntentSender intentSender, int i10, Intent intent, int i11, int i12, int i13, Bundle bundle) { Intent intent2; if (this.A == null) { this.f1860r.n(fragment, intentSender, i10, intent, i11, i12, i13, bundle); return; } if (bundle != null) { if (intent == null) { intent2 = new Intent(); intent2.putExtra("androidx.fragment.extra.ACTIVITY_OPTIONS_BUNDLE", true); } else { intent2 = intent; } if (E0(2)) { Log.v("FragmentManager", "ActivityOptions " + bundle + " were added to fillInIntent " + intent2 + " for fragment " + fragment); } intent2.putExtra("androidx.activity.result.contract.extra.ACTIVITY_OPTIONS_BUNDLE", bundle); } else { intent2 = intent; } androidx.activity.result.e a10 = new e.b(intentSender).b(intent2).c(i12, i11).a(); this.C.addLast(new l(fragment.mWho, i10)); if (E0(2)) { Log.v("FragmentManager", "Fragment " + fragment + "is launching an IntentSender for result "); } this.A.a(a10); } void N(boolean z10) { for (Fragment fragment : this.f1845c.n()) { if (fragment != null) { fragment.performPictureInPictureModeChanged(z10); } } } boolean O(Menu menu) { boolean z10 = false; if (this.f1859q < 1) { return false; } for (Fragment fragment : this.f1845c.n()) { if (fragment != null && G0(fragment) && fragment.performPrepareOptionsMenu(menu)) { z10 = true; } } return z10; } void O0(Fragment fragment) { if (!this.f1845c.c(fragment.mWho)) { if (E0(3)) { Log.d("FragmentManager", "Ignoring moving " + fragment + " to state " + this.f1859q + "since it is not added to " + this); return; } return; } Q0(fragment); View view = fragment.mView; if (view != null && fragment.mIsNewlyAdded && fragment.mContainer != null) { float f10 = fragment.mPostponedAlpha; if (f10 > 0.0f) { view.setAlpha(f10); } fragment.mPostponedAlpha = 0.0f; fragment.mIsNewlyAdded = false; f.d c10 = androidx.fragment.app.f.c(this.f1860r.f(), fragment, true, fragment.getPopDirection()); if (c10 != null) { Animation animation = c10.f1820a; if (animation != null) { fragment.mView.startAnimation(animation); } else { c10.f1821b.setTarget(fragment.mView); c10.f1821b.start(); } } } if (fragment.mHiddenChanged) { u(fragment); } } void P() { p1(); L(this.f1863u); } void P0(int i10, boolean z10) { androidx.fragment.app.k kVar; if (this.f1860r == null && i10 != -1) { throw new IllegalStateException("No activity"); } if (z10 || i10 != this.f1859q) { this.f1859q = i10; if (P) { this.f1845c.r(); } else { Iterator it = this.f1845c.n().iterator(); while (it.hasNext()) { O0((Fragment) it.next()); } for (t tVar : this.f1845c.k()) { Fragment k10 = tVar.k(); if (!k10.mIsNewlyAdded) { O0(k10); } if (k10.mRemoving && !k10.isInBackStack()) { this.f1845c.q(tVar); } } } o1(); if (this.D && (kVar = this.f1860r) != null && this.f1859q == 7) { kVar.o(); this.D = false; } } } void Q() { this.E = false; this.F = false; this.M.o(false); S(7); } void Q0(Fragment fragment) { R0(fragment, this.f1859q); } void R() { this.E = false; this.F = false; this.M.o(false); S(5); } /* JADX WARN: Code restructure failed: missing block: B:23:0x0053, code lost: if (r2 != 5) goto L102; */ /* JADX WARN: Removed duplicated region for block: B:104:0x0161 */ /* JADX WARN: Removed duplicated region for block: B:25:0x0077 */ /* JADX WARN: Removed duplicated region for block: B:36:0x0072 */ /* JADX WARN: Removed duplicated region for block: B:38:0x006d */ /* JADX WARN: Removed duplicated region for block: B:40:0x0063 */ /* JADX WARN: Removed duplicated region for block: B:42:0x0068 */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct code enable 'Show inconsistent code' option in preferences */ void R0(androidx.fragment.app.Fragment r11, int r12) { /* Method dump skipped, instructions count: 408 To view this dump change 'Code comments level' option to 'DEBUG' */ throw new UnsupportedOperationException("Method not decompiled: androidx.fragment.app.n.R0(androidx.fragment.app.Fragment, int):void"); } void S0() { if (this.f1860r == null) { return; } this.E = false; this.F = false; this.M.o(false); for (Fragment fragment : this.f1845c.n()) { if (fragment != null) { fragment.noteStateNotSaved(); } } } void T() { this.F = true; this.M.o(true); S(4); } void T0(androidx.fragment.app.h hVar) { View view; for (t tVar : this.f1845c.k()) { Fragment k10 = tVar.k(); if (k10.mContainerId == hVar.getId() && (view = k10.mView) != null && view.getParent() == null) { k10.mContainer = hVar; tVar.b(); } } } void U() { S(2); } void U0(t tVar) { Fragment k10 = tVar.k(); if (k10.mDeferStart) { if (this.f1844b) { this.H = true; return; } k10.mDeferStart = false; if (P) { tVar.m(); } else { Q0(k10); } } } public void V0(int i10, int i11) { if (i10 >= 0) { Y(new C0025n(null, i10, i11), false); return; } throw new IllegalArgumentException("Bad id: " + i10); } public void W(String str, FileDescriptor fileDescriptor, PrintWriter printWriter, String[] strArr) { int size; int size2; String str2 = str + " "; this.f1845c.e(str, fileDescriptor, printWriter, strArr); ArrayList arrayList = this.f1847e; if (arrayList != null && (size2 = arrayList.size()) > 0) { printWriter.print(str); printWriter.println("Fragments Created Menus:"); for (int i10 = 0; i10 < size2; i10++) { Fragment fragment = (Fragment) this.f1847e.get(i10); printWriter.print(str); printWriter.print(" #"); printWriter.print(i10); printWriter.print(": "); printWriter.println(fragment.toString()); } } ArrayList arrayList2 = this.f1846d; if (arrayList2 != null && (size = arrayList2.size()) > 0) { printWriter.print(str); printWriter.println("Back Stack:"); for (int i11 = 0; i11 < size; i11++) { androidx.fragment.app.a aVar = (androidx.fragment.app.a) this.f1846d.get(i11); printWriter.print(str); printWriter.print(" #"); printWriter.print(i11); printWriter.print(": "); printWriter.println(aVar.toString()); aVar.r(str2, printWriter); } } printWriter.print(str); printWriter.println("Back Stack Index: " + this.f1851i.get()); synchronized (this.f1843a) { int size3 = this.f1843a.size(); if (size3 > 0) { printWriter.print(str); printWriter.println("Pending Actions:"); for (int i12 = 0; i12 < size3; i12++) { m mVar = (m) this.f1843a.get(i12); printWriter.print(str); printWriter.print(" #"); printWriter.print(i12); printWriter.print(": "); printWriter.println(mVar); } } } printWriter.print(str); printWriter.println("FragmentManager misc state:"); printWriter.print(str); printWriter.print(" mHost="); printWriter.println(this.f1860r); printWriter.print(str); printWriter.print(" mContainer="); printWriter.println(this.f1861s); if (this.f1862t != null) { printWriter.print(str); printWriter.print(" mParent="); printWriter.println(this.f1862t); } printWriter.print(str); printWriter.print(" mCurState="); printWriter.print(this.f1859q); printWriter.print(" mStateSaved="); printWriter.print(this.E); printWriter.print(" mStopped="); printWriter.print(this.F); printWriter.print(" mDestroyed="); printWriter.println(this.G); if (this.D) { printWriter.print(str); printWriter.print(" mNeedMenuInvalidate="); printWriter.println(this.D); } } public boolean W0() { return X0(null, -1, 0); } void Y(m mVar, boolean z10) { if (!z10) { if (this.f1860r == null) { if (!this.G) { throw new IllegalStateException("FragmentManager has not been attached to a host."); } throw new IllegalStateException("FragmentManager has been destroyed"); } p(); } synchronized (this.f1843a) { if (this.f1860r == null) { if (!z10) { throw new IllegalStateException("Activity has been destroyed"); } } else { this.f1843a.add(mVar); i1(); } } } boolean Y0(ArrayList arrayList, ArrayList arrayList2, String str, int i10, int i11) { int i12; ArrayList arrayList3 = this.f1846d; if (arrayList3 == null) { return false; } if (str == null && i10 < 0 && (i11 & 1) == 0) { int size = arrayList3.size() - 1; if (size < 0) { return false; } arrayList.add(this.f1846d.remove(size)); arrayList2.add(Boolean.TRUE); } else { if (str != null || i10 >= 0) { int size2 = arrayList3.size() - 1; while (size2 >= 0) { androidx.fragment.app.a aVar = (androidx.fragment.app.a) this.f1846d.get(size2); if ((str != null && str.equals(aVar.w())) || (i10 >= 0 && i10 == aVar.f1712v)) { break; } size2--; } if (size2 < 0) { return false; } if ((i11 & 1) != 0) { while (true) { size2--; if (size2 < 0) { break; } androidx.fragment.app.a aVar2 = (androidx.fragment.app.a) this.f1846d.get(size2); if (str == null || !str.equals(aVar2.w())) { if (i10 < 0 || i10 != aVar2.f1712v) { break; } } } } i12 = size2; } else { i12 = -1; } if (i12 == this.f1846d.size() - 1) { return false; } for (int size3 = this.f1846d.size() - 1; size3 > i12; size3--) { arrayList.add(this.f1846d.remove(size3)); arrayList2.add(Boolean.TRUE); } } return true; } boolean a0(boolean z10) { Z(z10); boolean z11 = false; while (k0(this.I, this.J)) { z11 = true; this.f1844b = true; try { c1(this.I, this.J); } finally { q(); } } p1(); V(); this.f1845c.b(); return z11; } void a1(Fragment fragment, v.b bVar) { HashSet hashSet = (HashSet) this.f1855m.get(fragment); if (hashSet != null && hashSet.remove(bVar) && hashSet.isEmpty()) { this.f1855m.remove(fragment); if (fragment.mState < 5) { w(fragment); Q0(fragment); } } } void b0(m mVar, boolean z10) { if (z10 && (this.f1860r == null || this.G)) { return; } Z(z10); if (mVar.a(this.I, this.J)) { this.f1844b = true; try { c1(this.I, this.J); } finally { q(); } } p1(); V(); this.f1845c.b(); } void b1(Fragment fragment) { if (E0(2)) { Log.v("FragmentManager", "remove: " + fragment + " nesting=" + fragment.mBackStackNesting); } boolean z10 = !fragment.isInBackStack(); if (!fragment.mDetached || z10) { this.f1845c.s(fragment); if (F0(fragment)) { this.D = true; } fragment.mRemoving = true; m1(fragment); } } void d1(Fragment fragment) { this.M.n(fragment); } void e(androidx.fragment.app.a aVar) { if (this.f1846d == null) { this.f1846d = new ArrayList(); } this.f1846d.add(aVar); } void f(Fragment fragment, v.b bVar) { if (this.f1855m.get(fragment) == null) { this.f1855m.put(fragment, new HashSet()); } ((HashSet) this.f1855m.get(fragment)).add(bVar); } Fragment f0(String str) { return this.f1845c.f(str); } void f1(Parcelable parcelable) { t tVar; if (parcelable == null) { return; } p pVar = (p) parcelable; if (pVar.f1892a == null) { return; } this.f1845c.t(); Iterator it = pVar.f1892a.iterator(); while (it.hasNext()) { s sVar = (s) it.next(); if (sVar != null) { Fragment h10 = this.M.h(sVar.f1909b); if (h10 != null) { if (E0(2)) { Log.v("FragmentManager", "restoreSaveState: re-attaching retained " + h10); } tVar = new t(this.f1857o, this.f1845c, h10, sVar); } else { tVar = new t(this.f1857o, this.f1845c, this.f1860r.f().getClassLoader(), p0(), sVar); } Fragment k10 = tVar.k(); k10.mFragmentManager = this; if (E0(2)) { Log.v("FragmentManager", "restoreSaveState: active (" + k10.mWho + "): " + k10); } tVar.o(this.f1860r.f().getClassLoader()); this.f1845c.p(tVar); tVar.t(this.f1859q); } } for (Fragment fragment : this.M.k()) { if (!this.f1845c.c(fragment.mWho)) { if (E0(2)) { Log.v("FragmentManager", "Discarding retained Fragment " + fragment + " that was not found in the set of active Fragments " + pVar.f1892a); } this.M.n(fragment); fragment.mFragmentManager = this; t tVar2 = new t(this.f1857o, this.f1845c, fragment); tVar2.t(1); tVar2.m(); fragment.mRemoving = true; tVar2.m(); } } this.f1845c.u(pVar.f1893b); if (pVar.f1894c != null) { this.f1846d = new ArrayList(pVar.f1894c.length); int i10 = 0; while (true) { androidx.fragment.app.b[] bVarArr = pVar.f1894c; if (i10 >= bVarArr.length) { break; } androidx.fragment.app.a a10 = bVarArr[i10].a(this); if (E0(2)) { Log.v("FragmentManager", "restoreAllState: back stack #" + i10 + " (index " + a10.f1712v + "): " + a10); PrintWriter printWriter = new PrintWriter(new a0("FragmentManager")); a10.s(" ", printWriter, false); printWriter.close(); } this.f1846d.add(a10); i10++; } } else { this.f1846d = null; } this.f1851i.set(pVar.f1895d); String str = pVar.f1896e; if (str != null) { Fragment f02 = f0(str); this.f1863u = f02; L(f02); } ArrayList arrayList = pVar.f1897f; if (arrayList != null) { for (int i11 = 0; i11 < arrayList.size(); i11++) { Bundle bundle = (Bundle) pVar.f1898g.get(i11); bundle.setClassLoader(this.f1860r.f().getClassLoader()); this.f1852j.put(arrayList.get(i11), bundle); } } this.C = new ArrayDeque(pVar.f1899h); } t g(Fragment fragment) { if (E0(2)) { Log.v("FragmentManager", "add: " + fragment); } t v10 = v(fragment); fragment.mFragmentManager = this; this.f1845c.p(v10); if (!fragment.mDetached) { this.f1845c.a(fragment); fragment.mRemoving = false; if (fragment.mView == null) { fragment.mHiddenChanged = false; } if (F0(fragment)) { this.D = true; } } return v10; } public Fragment g0(int i10) { return this.f1845c.g(i10); } public void h(r rVar) { this.f1858p.add(rVar); } public Fragment h0(String str) { return this.f1845c.h(str); } Parcelable h1() { int size; j0(); X(); a0(true); this.E = true; this.M.o(true); ArrayList v10 = this.f1845c.v(); androidx.fragment.app.b[] bVarArr = null; if (v10.isEmpty()) { if (E0(2)) { Log.v("FragmentManager", "saveAllState: no fragments!"); } return null; } ArrayList w10 = this.f1845c.w(); ArrayList arrayList = this.f1846d; if (arrayList != null && (size = arrayList.size()) > 0) { bVarArr = new androidx.fragment.app.b[size]; for (int i10 = 0; i10 < size; i10++) { bVarArr[i10] = new androidx.fragment.app.b((androidx.fragment.app.a) this.f1846d.get(i10)); if (E0(2)) { Log.v("FragmentManager", "saveAllState: adding back stack #" + i10 + ": " + this.f1846d.get(i10)); } } } p pVar = new p(); pVar.f1892a = v10; pVar.f1893b = w10; pVar.f1894c = bVarArr; pVar.f1895d = this.f1851i.get(); Fragment fragment = this.f1863u; if (fragment != null) { pVar.f1896e = fragment.mWho; } pVar.f1897f.addAll(this.f1852j.keySet()); pVar.f1898g.addAll(this.f1852j.values()); pVar.f1899h = new ArrayList(this.C); return pVar; } void i(Fragment fragment) { this.M.f(fragment); } Fragment i0(String str) { return this.f1845c.i(str); } void i1() { synchronized (this.f1843a) { ArrayList arrayList = this.L; boolean z10 = (arrayList == null || arrayList.isEmpty()) ? false : true; boolean z11 = this.f1843a.size() == 1; if (z10 || z11) { this.f1860r.g().removeCallbacks(this.N); this.f1860r.g().post(this.N); p1(); } } } int j() { return this.f1851i.getAndIncrement(); } void j1(Fragment fragment, boolean z10) { ViewGroup o02 = o0(fragment); if (o02 == null || !(o02 instanceof androidx.fragment.app.h)) { return; } ((androidx.fragment.app.h) o02).setDrawDisappearingViewsLast(!z10); } /* JADX WARN: Multi-variable type inference failed */ void k(androidx.fragment.app.k kVar, androidx.fragment.app.g gVar, Fragment fragment) { String str; if (this.f1860r != null) { throw new IllegalStateException("Already attached"); } this.f1860r = kVar; this.f1861s = gVar; this.f1862t = fragment; if (fragment != null) { h(new i(fragment)); } else if (kVar instanceof r) { h((r) kVar); } if (this.f1862t != null) { p1(); } if (kVar instanceof androidx.activity.c) { androidx.activity.c cVar = (androidx.activity.c) kVar; OnBackPressedDispatcher onBackPressedDispatcher = cVar.getOnBackPressedDispatcher(); this.f1849g = onBackPressedDispatcher; LifecycleOwner lifecycleOwner = cVar; if (fragment != null) { lifecycleOwner = fragment; } onBackPressedDispatcher.a(lifecycleOwner, this.f1850h); } if (fragment != null) { this.M = fragment.mFragmentManager.m0(fragment); } else if (kVar instanceof androidx.lifecycle.x) { this.M = q.j(((androidx.lifecycle.x) kVar).getViewModelStore()); } else { this.M = new q(false); } this.M.o(J0()); this.f1845c.x(this.M); Object obj = this.f1860r; if (obj instanceof androidx.activity.result.d) { ActivityResultRegistry activityResultRegistry = ((androidx.activity.result.d) obj).getActivityResultRegistry(); if (fragment != null) { str = fragment.mWho + ":"; } else { str = RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED; } String str2 = "FragmentManager:" + str; this.f1868z = activityResultRegistry.j(str2 + "StartActivityForResult", new c.c(), new j()); this.A = activityResultRegistry.j(str2 + "StartIntentSenderForResult", new k(), new a()); this.B = activityResultRegistry.j(str2 + "RequestPermissions", new c.b(), new b()); } } void k1(Fragment fragment, e.c cVar) { if (fragment.equals(f0(fragment.mWho)) && (fragment.mHost == null || fragment.mFragmentManager == this)) { fragment.mMaxState = cVar; return; } throw new IllegalArgumentException("Fragment " + fragment + " is not an active fragment of FragmentManager " + this); } void l(Fragment fragment) { if (E0(2)) { Log.v("FragmentManager", "attach: " + fragment); } if (fragment.mDetached) { fragment.mDetached = false; if (fragment.mAdded) { return; } this.f1845c.a(fragment); if (E0(2)) { Log.v("FragmentManager", "add from attach: " + fragment); } if (F0(fragment)) { this.D = true; } } } public int l0() { ArrayList arrayList = this.f1846d; if (arrayList != null) { return arrayList.size(); } return 0; } void l1(Fragment fragment) { if (fragment == null || (fragment.equals(f0(fragment.mWho)) && (fragment.mHost == null || fragment.mFragmentManager == this))) { Fragment fragment2 = this.f1863u; this.f1863u = fragment; L(fragment2); L(this.f1863u); return; } throw new IllegalArgumentException("Fragment " + fragment + " is not an active fragment of FragmentManager " + this); } public v m() { return new androidx.fragment.app.a(this); } androidx.fragment.app.g n0() { return this.f1861s; } void n1(Fragment fragment) { if (E0(2)) { Log.v("FragmentManager", "show: " + fragment); } if (fragment.mHidden) { fragment.mHidden = false; fragment.mHiddenChanged = !fragment.mHiddenChanged; } } boolean o() { boolean z10 = false; for (Fragment fragment : this.f1845c.l()) { if (fragment != null) { z10 = F0(fragment); } if (z10) { return true; } } return false; } public androidx.fragment.app.j p0() { androidx.fragment.app.j jVar = this.f1864v; if (jVar != null) { return jVar; } Fragment fragment = this.f1862t; return fragment != null ? fragment.mFragmentManager.p0() : this.f1865w; } u q0() { return this.f1845c; } public List r0() { return this.f1845c.n(); } androidx.fragment.app.k s0() { return this.f1860r; } void t(androidx.fragment.app.a aVar, boolean z10, boolean z11, boolean z12) { if (z10) { aVar.u(z12); } else { aVar.t(); } ArrayList arrayList = new ArrayList(1); ArrayList arrayList2 = new ArrayList(1); arrayList.add(aVar); arrayList2.add(Boolean.valueOf(z10)); if (z11 && this.f1859q >= 1) { w.B(this.f1860r.f(), this.f1861s, arrayList, arrayList2, 0, 1, true, this.f1856n); } if (z12) { P0(this.f1859q, true); } for (Fragment fragment : this.f1845c.l()) { if (fragment != null && fragment.mView != null && fragment.mIsNewlyAdded && aVar.x(fragment.mContainerId)) { float f10 = fragment.mPostponedAlpha; if (f10 > 0.0f) { fragment.mView.setAlpha(f10); } if (z12) { fragment.mPostponedAlpha = 0.0f; } else { fragment.mPostponedAlpha = -1.0f; fragment.mIsNewlyAdded = false; } } } } LayoutInflater.Factory2 t0() { return this.f1848f; } public String toString() { StringBuilder sb = new StringBuilder(128); sb.append("FragmentManager{"); sb.append(Integer.toHexString(System.identityHashCode(this))); sb.append(" in "); Fragment fragment = this.f1862t; if (fragment != null) { sb.append(fragment.getClass().getSimpleName()); sb.append("{"); sb.append(Integer.toHexString(System.identityHashCode(this.f1862t))); sb.append("}"); } else { androidx.fragment.app.k kVar = this.f1860r; if (kVar != null) { sb.append(kVar.getClass().getSimpleName()); sb.append("{"); sb.append(Integer.toHexString(System.identityHashCode(this.f1860r))); sb.append("}"); } else { sb.append("null"); } } sb.append("}}"); return sb.toString(); } androidx.fragment.app.m u0() { return this.f1857o; } t v(Fragment fragment) { t m10 = this.f1845c.m(fragment.mWho); if (m10 != null) { return m10; } t tVar = new t(this.f1857o, this.f1845c, fragment); tVar.o(this.f1860r.f().getClassLoader()); tVar.t(this.f1859q); return tVar; } Fragment v0() { return this.f1862t; } public Fragment w0() { return this.f1863u; } void x(Fragment fragment) { if (E0(2)) { Log.v("FragmentManager", "detach: " + fragment); } if (fragment.mDetached) { return; } fragment.mDetached = true; if (fragment.mAdded) { if (E0(2)) { Log.v("FragmentManager", "remove from detach: " + fragment); } this.f1845c.s(fragment); if (F0(fragment)) { this.D = true; } m1(fragment); } } c0 x0() { c0 c0Var = this.f1866x; if (c0Var != null) { return c0Var; } Fragment fragment = this.f1862t; return fragment != null ? fragment.mFragmentManager.x0() : this.f1867y; } void y() { this.E = false; this.F = false; this.M.o(false); S(4); } void z() { this.E = false; this.F = false; this.M.o(false); S(0); } androidx.lifecycle.w z0(Fragment fragment) { return this.M.l(fragment); } static class l implements Parcelable { public static final Parcelable.Creator CREATOR = new a(); /* renamed from: a, reason: collision with root package name */ String f1883a; /* renamed from: b, reason: collision with root package name */ int f1884b; class a implements Parcelable.Creator { a() { } @Override // android.os.Parcelable.Creator /* renamed from: a, reason: merged with bridge method [inline-methods] */ public l createFromParcel(Parcel parcel) { return new l(parcel); } @Override // android.os.Parcelable.Creator /* renamed from: b, reason: merged with bridge method [inline-methods] */ public l[] newArray(int i10) { return new l[i10]; } } l(String str, int i10) { this.f1883a = str; this.f1884b = i10; } @Override // android.os.Parcelable public int describeContents() { return 0; } @Override // android.os.Parcelable public void writeToParcel(Parcel parcel, int i10) { parcel.writeString(this.f1883a); parcel.writeInt(this.f1884b); } l(Parcel parcel) { this.f1883a = parcel.readString(); this.f1884b = parcel.readInt(); } } }