package androidx.fragment.app; import android.animation.Animator; import android.annotation.SuppressLint; import android.app.Activity; import android.app.Application; import android.content.ComponentCallbacks; import android.content.Context; import android.content.ContextWrapper; import android.content.Intent; import android.content.IntentSender; import android.content.res.Configuration; import android.content.res.Resources; import android.os.Bundle; import android.os.Handler; import android.os.Looper; import android.os.Parcel; import android.os.Parcelable; import android.util.AttributeSet; import android.util.Log; import android.util.SparseArray; import android.view.ContextMenu; 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.result.ActivityResultRegistry; import androidx.core.app.n0; import androidx.lifecycle.LifecycleOwner; import androidx.lifecycle.LiveData; import androidx.lifecycle.e; import androidx.lifecycle.v; import androidx.savedstate.SavedStateRegistry; import java.io.FileDescriptor; import java.io.PrintWriter; import java.lang.reflect.InvocationTargetException; import java.util.ArrayList; import java.util.Iterator; import java.util.UUID; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.atomic.AtomicReference; /* loaded from: classes.dex */ public abstract class Fragment implements ComponentCallbacks, View.OnCreateContextMenuListener, LifecycleOwner, androidx.lifecycle.x, androidx.savedstate.c { static final int ACTIVITY_CREATED = 4; static final int ATTACHED = 0; static final int AWAITING_ENTER_EFFECTS = 6; static final int AWAITING_EXIT_EFFECTS = 3; static final int CREATED = 1; static final int INITIALIZING = -1; static final int RESUMED = 7; static final int STARTED = 5; static final Object USE_DEFAULT_TRANSITION = new Object(); static final int VIEW_CREATED = 2; boolean mAdded; i mAnimationInfo; Bundle mArguments; int mBackStackNesting; private boolean mCalled; ViewGroup mContainer; int mContainerId; private int mContentLayoutId; v.b mDefaultFactory; boolean mDeferStart; boolean mDetached; int mFragmentId; n mFragmentManager; boolean mFromLayout; boolean mHasMenu; boolean mHidden; boolean mHiddenChanged; androidx.fragment.app.k mHost; boolean mInLayout; boolean mIsCreated; boolean mIsNewlyAdded; LayoutInflater mLayoutInflater; androidx.lifecycle.i mLifecycleRegistry; Fragment mParentFragment; boolean mPerformedCreateView; float mPostponedAlpha; boolean mRemoving; boolean mRestored; boolean mRetainInstance; boolean mRetainInstanceChangedWhileDetached; Bundle mSavedFragmentState; androidx.savedstate.b mSavedStateRegistryController; Boolean mSavedUserVisibleHint; Bundle mSavedViewRegistryState; SparseArray mSavedViewState; String mTag; Fragment mTarget; int mTargetRequestCode; View mView; z mViewLifecycleOwner; int mState = -1; String mWho = UUID.randomUUID().toString(); String mTargetWho = null; private Boolean mIsPrimaryNavigationFragment = null; n mChildFragmentManager = new o(); boolean mMenuVisible = true; boolean mUserVisibleHint = true; Runnable mPostponedDurationRunnable = new a(); e.c mMaxState = e.c.RESUMED; androidx.lifecycle.m mViewLifecycleOwnerLiveData = new androidx.lifecycle.m(); private final AtomicInteger mNextLocalRequestCode = new AtomicInteger(); private final ArrayList mOnPreAttachedListeners = new ArrayList<>(); class a implements Runnable { a() { } @Override // java.lang.Runnable public void run() { Fragment.this.startPostponedEnterTransition(); } } class b implements Runnable { b() { } @Override // java.lang.Runnable public void run() { Fragment.this.callStartTransitionListener(false); } } class c implements Runnable { /* renamed from: a, reason: collision with root package name */ final /* synthetic */ b0 f1669a; c(b0 b0Var) { this.f1669a = b0Var; } @Override // java.lang.Runnable public void run() { this.f1669a.g(); } } class d extends androidx.fragment.app.g { d() { } @Override // androidx.fragment.app.g public View c(int i10) { View view = Fragment.this.mView; if (view != null) { return view.findViewById(i10); } throw new IllegalStateException("Fragment " + Fragment.this + " does not have a view"); } @Override // androidx.fragment.app.g public boolean d() { return Fragment.this.mView != null; } } class e implements l.a { e() { } @Override // l.a /* renamed from: a, reason: merged with bridge method [inline-methods] */ public ActivityResultRegistry apply(Void r32) { Fragment fragment = Fragment.this; Object obj = fragment.mHost; return obj instanceof androidx.activity.result.d ? ((androidx.activity.result.d) obj).getActivityResultRegistry() : fragment.requireActivity().getActivityResultRegistry(); } } class f implements l.a { /* renamed from: a, reason: collision with root package name */ final /* synthetic */ ActivityResultRegistry f1673a; f(ActivityResultRegistry activityResultRegistry) { this.f1673a = activityResultRegistry; } @Override // l.a /* renamed from: a, reason: merged with bridge method [inline-methods] */ public ActivityResultRegistry apply(Void r12) { return this.f1673a; } } class g extends k { /* renamed from: a, reason: collision with root package name */ final /* synthetic */ l.a f1675a; /* renamed from: b, reason: collision with root package name */ final /* synthetic */ AtomicReference f1676b; /* renamed from: c, reason: collision with root package name */ final /* synthetic */ c.a f1677c; /* renamed from: d, reason: collision with root package name */ final /* synthetic */ androidx.activity.result.b f1678d; /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ g(l.a aVar, AtomicReference atomicReference, c.a aVar2, androidx.activity.result.b bVar) { super(null); this.f1675a = aVar; this.f1676b = atomicReference; this.f1677c = aVar2; this.f1678d = bVar; } @Override // androidx.fragment.app.Fragment.k void a() { String generateActivityResultKey = Fragment.this.generateActivityResultKey(); this.f1676b.set(((ActivityResultRegistry) this.f1675a.apply(null)).i(generateActivityResultKey, Fragment.this, this.f1677c, this.f1678d)); } } class h extends androidx.activity.result.c { /* renamed from: a, reason: collision with root package name */ final /* synthetic */ AtomicReference f1680a; /* renamed from: b, reason: collision with root package name */ final /* synthetic */ c.a f1681b; h(AtomicReference atomicReference, c.a aVar) { this.f1680a = atomicReference; this.f1681b = aVar; } @Override // androidx.activity.result.c public void b(Object obj, androidx.core.app.d dVar) { androidx.activity.result.c cVar = (androidx.activity.result.c) this.f1680a.get(); if (cVar == null) { throw new IllegalStateException("Operation cannot be started before fragment is in created state"); } cVar.b(obj, dVar); } @Override // androidx.activity.result.c public void c() { androidx.activity.result.c cVar = (androidx.activity.result.c) this.f1680a.getAndSet(null); if (cVar != null) { cVar.c(); } } } static class i { /* renamed from: a, reason: collision with root package name */ View f1683a; /* renamed from: b, reason: collision with root package name */ Animator f1684b; /* renamed from: c, reason: collision with root package name */ boolean f1685c; /* renamed from: d, reason: collision with root package name */ int f1686d; /* renamed from: e, reason: collision with root package name */ int f1687e; /* renamed from: f, reason: collision with root package name */ int f1688f; /* renamed from: g, reason: collision with root package name */ int f1689g; /* renamed from: h, reason: collision with root package name */ int f1690h; /* renamed from: i, reason: collision with root package name */ ArrayList f1691i; /* renamed from: j, reason: collision with root package name */ ArrayList f1692j; /* renamed from: k, reason: collision with root package name */ Object f1693k = null; /* renamed from: l, reason: collision with root package name */ Object f1694l; /* renamed from: m, reason: collision with root package name */ Object f1695m; /* renamed from: n, reason: collision with root package name */ Object f1696n; /* renamed from: o, reason: collision with root package name */ Object f1697o; /* renamed from: p, reason: collision with root package name */ Object f1698p; /* renamed from: q, reason: collision with root package name */ Boolean f1699q; /* renamed from: r, reason: collision with root package name */ Boolean f1700r; /* renamed from: s, reason: collision with root package name */ float f1701s; /* renamed from: t, reason: collision with root package name */ View f1702t; /* renamed from: u, reason: collision with root package name */ boolean f1703u; /* renamed from: v, reason: collision with root package name */ l f1704v; /* renamed from: w, reason: collision with root package name */ boolean f1705w; i() { Object obj = Fragment.USE_DEFAULT_TRANSITION; this.f1694l = obj; this.f1695m = null; this.f1696n = obj; this.f1697o = null; this.f1698p = obj; this.f1701s = 1.0f; this.f1702t = null; } } public static class j extends RuntimeException { public j(String str, Exception exc) { super(str, exc); } } private static abstract class k { private k() { } /* synthetic */ k(a aVar) { this(); } abstract void a(); } interface l { void a(); void b(); } public static class m implements Parcelable { public static final Parcelable.Creator CREATOR = new a(); /* renamed from: a, reason: collision with root package name */ final Bundle f1706a; class a implements Parcelable.ClassLoaderCreator { a() { } @Override // android.os.Parcelable.Creator /* renamed from: a, reason: merged with bridge method [inline-methods] */ public m createFromParcel(Parcel parcel) { return new m(parcel, null); } @Override // android.os.Parcelable.ClassLoaderCreator /* renamed from: b, reason: merged with bridge method [inline-methods] */ public m createFromParcel(Parcel parcel, ClassLoader classLoader) { return new m(parcel, classLoader); } @Override // android.os.Parcelable.Creator /* renamed from: c, reason: merged with bridge method [inline-methods] */ public m[] newArray(int i10) { return new m[i10]; } } m(Parcel parcel, ClassLoader classLoader) { Bundle readBundle = parcel.readBundle(); this.f1706a = readBundle; if (classLoader == null || readBundle == null) { return; } readBundle.setClassLoader(classLoader); } @Override // android.os.Parcelable public int describeContents() { return 0; } @Override // android.os.Parcelable public void writeToParcel(Parcel parcel, int i10) { parcel.writeBundle(this.f1706a); } } public Fragment() { c(); } private i a() { if (this.mAnimationInfo == null) { this.mAnimationInfo = new i(); } return this.mAnimationInfo; } private int b() { e.c cVar = this.mMaxState; return (cVar == e.c.INITIALIZED || this.mParentFragment == null) ? cVar.ordinal() : Math.min(cVar.ordinal(), this.mParentFragment.b()); } private void c() { this.mLifecycleRegistry = new androidx.lifecycle.i(this); this.mSavedStateRegistryController = androidx.savedstate.b.a(this); this.mDefaultFactory = null; } private androidx.activity.result.c d(c.a aVar, l.a aVar2, androidx.activity.result.b bVar) { if (this.mState <= 1) { AtomicReference atomicReference = new AtomicReference(); e(new g(aVar2, atomicReference, aVar, bVar)); return new h(atomicReference, aVar); } throw new IllegalStateException("Fragment " + this + " is attempting to registerForActivityResult after being created. Fragments must call registerForActivityResult() before they are created (i.e. initialization, onAttach(), or onCreate())."); } private void e(k kVar) { if (this.mState >= 0) { kVar.a(); } else { this.mOnPreAttachedListeners.add(kVar); } } private void f() { if (n.E0(3)) { Log.d("FragmentManager", "moveto RESTORE_VIEW_STATE: " + this); } if (this.mView != null) { restoreViewState(this.mSavedFragmentState); } this.mSavedFragmentState = null; } @Deprecated public static Fragment instantiate(Context context, String str) { return instantiate(context, str, null); } void callStartTransitionListener(boolean z10) { ViewGroup viewGroup; n nVar; i iVar = this.mAnimationInfo; l lVar = null; if (iVar != null) { iVar.f1703u = false; l lVar2 = iVar.f1704v; iVar.f1704v = null; lVar = lVar2; } if (lVar != null) { lVar.b(); return; } if (!n.P || this.mView == null || (viewGroup = this.mContainer) == null || (nVar = this.mFragmentManager) == null) { return; } b0 n10 = b0.n(viewGroup, nVar); n10.p(); if (z10) { this.mHost.g().post(new c(n10)); } else { n10.g(); } } androidx.fragment.app.g createFragmentContainer() { return new d(); } public void dump(String str, FileDescriptor fileDescriptor, PrintWriter printWriter, String[] strArr) { printWriter.print(str); printWriter.print("mFragmentId=#"); printWriter.print(Integer.toHexString(this.mFragmentId)); printWriter.print(" mContainerId=#"); printWriter.print(Integer.toHexString(this.mContainerId)); printWriter.print(" mTag="); printWriter.println(this.mTag); printWriter.print(str); printWriter.print("mState="); printWriter.print(this.mState); printWriter.print(" mWho="); printWriter.print(this.mWho); printWriter.print(" mBackStackNesting="); printWriter.println(this.mBackStackNesting); printWriter.print(str); printWriter.print("mAdded="); printWriter.print(this.mAdded); printWriter.print(" mRemoving="); printWriter.print(this.mRemoving); printWriter.print(" mFromLayout="); printWriter.print(this.mFromLayout); printWriter.print(" mInLayout="); printWriter.println(this.mInLayout); printWriter.print(str); printWriter.print("mHidden="); printWriter.print(this.mHidden); printWriter.print(" mDetached="); printWriter.print(this.mDetached); printWriter.print(" mMenuVisible="); printWriter.print(this.mMenuVisible); printWriter.print(" mHasMenu="); printWriter.println(this.mHasMenu); printWriter.print(str); printWriter.print("mRetainInstance="); printWriter.print(this.mRetainInstance); printWriter.print(" mUserVisibleHint="); printWriter.println(this.mUserVisibleHint); if (this.mFragmentManager != null) { printWriter.print(str); printWriter.print("mFragmentManager="); printWriter.println(this.mFragmentManager); } if (this.mHost != null) { printWriter.print(str); printWriter.print("mHost="); printWriter.println(this.mHost); } if (this.mParentFragment != null) { printWriter.print(str); printWriter.print("mParentFragment="); printWriter.println(this.mParentFragment); } if (this.mArguments != null) { printWriter.print(str); printWriter.print("mArguments="); printWriter.println(this.mArguments); } if (this.mSavedFragmentState != null) { printWriter.print(str); printWriter.print("mSavedFragmentState="); printWriter.println(this.mSavedFragmentState); } if (this.mSavedViewState != null) { printWriter.print(str); printWriter.print("mSavedViewState="); printWriter.println(this.mSavedViewState); } if (this.mSavedViewRegistryState != null) { printWriter.print(str); printWriter.print("mSavedViewRegistryState="); printWriter.println(this.mSavedViewRegistryState); } Fragment targetFragment = getTargetFragment(); if (targetFragment != null) { printWriter.print(str); printWriter.print("mTarget="); printWriter.print(targetFragment); printWriter.print(" mTargetRequestCode="); printWriter.println(this.mTargetRequestCode); } printWriter.print(str); printWriter.print("mPopDirection="); printWriter.println(getPopDirection()); if (getEnterAnim() != 0) { printWriter.print(str); printWriter.print("getEnterAnim="); printWriter.println(getEnterAnim()); } if (getExitAnim() != 0) { printWriter.print(str); printWriter.print("getExitAnim="); printWriter.println(getExitAnim()); } if (getPopEnterAnim() != 0) { printWriter.print(str); printWriter.print("getPopEnterAnim="); printWriter.println(getPopEnterAnim()); } if (getPopExitAnim() != 0) { printWriter.print(str); printWriter.print("getPopExitAnim="); printWriter.println(getPopExitAnim()); } if (this.mContainer != null) { printWriter.print(str); printWriter.print("mContainer="); printWriter.println(this.mContainer); } if (this.mView != null) { printWriter.print(str); printWriter.print("mView="); printWriter.println(this.mView); } if (getAnimatingAway() != null) { printWriter.print(str); printWriter.print("mAnimatingAway="); printWriter.println(getAnimatingAway()); } if (getContext() != null) { androidx.loader.app.a.b(this).a(str, fileDescriptor, printWriter, strArr); } printWriter.print(str); printWriter.println("Child " + this.mChildFragmentManager + ":"); this.mChildFragmentManager.W(str + " ", fileDescriptor, printWriter, strArr); } public final boolean equals(Object obj) { return super.equals(obj); } Fragment findFragmentByWho(String str) { return str.equals(this.mWho) ? this : this.mChildFragmentManager.i0(str); } String generateActivityResultKey() { return "fragment_" + this.mWho + "_rq#" + this.mNextLocalRequestCode.getAndIncrement(); } public final androidx.fragment.app.e getActivity() { androidx.fragment.app.k kVar = this.mHost; if (kVar == null) { return null; } return (androidx.fragment.app.e) kVar.e(); } public boolean getAllowEnterTransitionOverlap() { Boolean bool; i iVar = this.mAnimationInfo; if (iVar == null || (bool = iVar.f1700r) == null) { return true; } return bool.booleanValue(); } public boolean getAllowReturnTransitionOverlap() { Boolean bool; i iVar = this.mAnimationInfo; if (iVar == null || (bool = iVar.f1699q) == null) { return true; } return bool.booleanValue(); } View getAnimatingAway() { i iVar = this.mAnimationInfo; if (iVar == null) { return null; } return iVar.f1683a; } Animator getAnimator() { i iVar = this.mAnimationInfo; if (iVar == null) { return null; } return iVar.f1684b; } public final Bundle getArguments() { return this.mArguments; } public final n getChildFragmentManager() { if (this.mHost != null) { return this.mChildFragmentManager; } throw new IllegalStateException("Fragment " + this + " has not been attached yet."); } public Context getContext() { androidx.fragment.app.k kVar = this.mHost; if (kVar == null) { return null; } return kVar.f(); } public v.b getDefaultViewModelProviderFactory() { Application application; if (this.mFragmentManager == null) { throw new IllegalStateException("Can't access ViewModels from detached fragment"); } if (this.mDefaultFactory == null) { Context applicationContext = requireContext().getApplicationContext(); while (true) { if (!(applicationContext instanceof ContextWrapper)) { application = null; break; } if (applicationContext instanceof Application) { application = (Application) applicationContext; break; } applicationContext = ((ContextWrapper) applicationContext).getBaseContext(); } if (application == null && n.E0(3)) { Log.d("FragmentManager", "Could not find Application instance from Context " + requireContext().getApplicationContext() + ", you will not be able to use AndroidViewModel with the default ViewModelProvider.Factory"); } this.mDefaultFactory = new androidx.lifecycle.s(application, this, getArguments()); } return this.mDefaultFactory; } int getEnterAnim() { i iVar = this.mAnimationInfo; if (iVar == null) { return 0; } return iVar.f1686d; } public Object getEnterTransition() { i iVar = this.mAnimationInfo; if (iVar == null) { return null; } return iVar.f1693k; } n0 getEnterTransitionCallback() { i iVar = this.mAnimationInfo; if (iVar == null) { return null; } iVar.getClass(); return null; } int getExitAnim() { i iVar = this.mAnimationInfo; if (iVar == null) { return 0; } return iVar.f1687e; } public Object getExitTransition() { i iVar = this.mAnimationInfo; if (iVar == null) { return null; } return iVar.f1695m; } n0 getExitTransitionCallback() { i iVar = this.mAnimationInfo; if (iVar == null) { return null; } iVar.getClass(); return null; } View getFocusedView() { i iVar = this.mAnimationInfo; if (iVar == null) { return null; } return iVar.f1702t; } @Deprecated public final n getFragmentManager() { return this.mFragmentManager; } public final Object getHost() { androidx.fragment.app.k kVar = this.mHost; if (kVar == null) { return null; } return kVar.h(); } public final int getId() { return this.mFragmentId; } public final LayoutInflater getLayoutInflater() { LayoutInflater layoutInflater = this.mLayoutInflater; return layoutInflater == null ? performGetLayoutInflater(null) : layoutInflater; } @Override // androidx.lifecycle.LifecycleOwner public androidx.lifecycle.e getLifecycle() { return this.mLifecycleRegistry; } @Deprecated public androidx.loader.app.a getLoaderManager() { return androidx.loader.app.a.b(this); } int getNextTransition() { i iVar = this.mAnimationInfo; if (iVar == null) { return 0; } return iVar.f1690h; } public final Fragment getParentFragment() { return this.mParentFragment; } public final n getParentFragmentManager() { n nVar = this.mFragmentManager; if (nVar != null) { return nVar; } throw new IllegalStateException("Fragment " + this + " not associated with a fragment manager."); } boolean getPopDirection() { i iVar = this.mAnimationInfo; if (iVar == null) { return false; } return iVar.f1685c; } int getPopEnterAnim() { i iVar = this.mAnimationInfo; if (iVar == null) { return 0; } return iVar.f1688f; } int getPopExitAnim() { i iVar = this.mAnimationInfo; if (iVar == null) { return 0; } return iVar.f1689g; } float getPostOnViewCreatedAlpha() { i iVar = this.mAnimationInfo; if (iVar == null) { return 1.0f; } return iVar.f1701s; } public Object getReenterTransition() { i iVar = this.mAnimationInfo; if (iVar == null) { return null; } Object obj = iVar.f1696n; return obj == USE_DEFAULT_TRANSITION ? getExitTransition() : obj; } public final Resources getResources() { return requireContext().getResources(); } @Deprecated public final boolean getRetainInstance() { return this.mRetainInstance; } public Object getReturnTransition() { i iVar = this.mAnimationInfo; if (iVar == null) { return null; } Object obj = iVar.f1694l; return obj == USE_DEFAULT_TRANSITION ? getEnterTransition() : obj; } @Override // androidx.savedstate.c public final SavedStateRegistry getSavedStateRegistry() { return this.mSavedStateRegistryController.b(); } public Object getSharedElementEnterTransition() { i iVar = this.mAnimationInfo; if (iVar == null) { return null; } return iVar.f1697o; } public Object getSharedElementReturnTransition() { i iVar = this.mAnimationInfo; if (iVar == null) { return null; } Object obj = iVar.f1698p; return obj == USE_DEFAULT_TRANSITION ? getSharedElementEnterTransition() : obj; } ArrayList getSharedElementSourceNames() { ArrayList arrayList; i iVar = this.mAnimationInfo; return (iVar == null || (arrayList = iVar.f1691i) == null) ? new ArrayList<>() : arrayList; } ArrayList getSharedElementTargetNames() { ArrayList arrayList; i iVar = this.mAnimationInfo; return (iVar == null || (arrayList = iVar.f1692j) == null) ? new ArrayList<>() : arrayList; } public final String getString(int i10) { return getResources().getString(i10); } public final String getTag() { return this.mTag; } @Deprecated public final Fragment getTargetFragment() { String str; Fragment fragment = this.mTarget; if (fragment != null) { return fragment; } n nVar = this.mFragmentManager; if (nVar == null || (str = this.mTargetWho) == null) { return null; } return nVar.f0(str); } @Deprecated public final int getTargetRequestCode() { return this.mTargetRequestCode; } public final CharSequence getText(int i10) { return getResources().getText(i10); } @Deprecated public boolean getUserVisibleHint() { return this.mUserVisibleHint; } public View getView() { return this.mView; } public LifecycleOwner getViewLifecycleOwner() { z zVar = this.mViewLifecycleOwner; if (zVar != null) { return zVar; } throw new IllegalStateException("Can't access the Fragment View's LifecycleOwner when getView() is null i.e., before onCreateView() or after onDestroyView()"); } public LiveData getViewLifecycleOwnerLiveData() { return this.mViewLifecycleOwnerLiveData; } @Override // androidx.lifecycle.x public androidx.lifecycle.w getViewModelStore() { if (this.mFragmentManager == null) { throw new IllegalStateException("Can't access ViewModels from detached fragment"); } if (b() != e.c.INITIALIZED.ordinal()) { return this.mFragmentManager.z0(this); } throw new IllegalStateException("Calling getViewModelStore() before a Fragment reaches onCreate() when using setMaxLifecycle(INITIALIZED) is not supported"); } @SuppressLint({"KotlinPropertyAccess"}) public final boolean hasOptionsMenu() { return this.mHasMenu; } public final int hashCode() { return super.hashCode(); } void initState() { c(); this.mWho = UUID.randomUUID().toString(); this.mAdded = false; this.mRemoving = false; this.mFromLayout = false; this.mInLayout = false; this.mRestored = false; this.mBackStackNesting = 0; this.mFragmentManager = null; this.mChildFragmentManager = new o(); this.mHost = null; this.mFragmentId = 0; this.mContainerId = 0; this.mTag = null; this.mHidden = false; this.mDetached = false; } public final boolean isAdded() { return this.mHost != null && this.mAdded; } public final boolean isDetached() { return this.mDetached; } public final boolean isHidden() { return this.mHidden; } boolean isHideReplaced() { i iVar = this.mAnimationInfo; if (iVar == null) { return false; } return iVar.f1705w; } final boolean isInBackStack() { return this.mBackStackNesting > 0; } public final boolean isInLayout() { return this.mInLayout; } public final boolean isMenuVisible() { n nVar; return this.mMenuVisible && ((nVar = this.mFragmentManager) == null || nVar.G0(this.mParentFragment)); } boolean isPostponed() { i iVar = this.mAnimationInfo; if (iVar == null) { return false; } return iVar.f1703u; } public final boolean isRemoving() { return this.mRemoving; } final boolean isRemovingParent() { Fragment parentFragment = getParentFragment(); return parentFragment != null && (parentFragment.isRemoving() || parentFragment.isRemovingParent()); } public final boolean isResumed() { return this.mState >= 7; } public final boolean isStateSaved() { n nVar = this.mFragmentManager; if (nVar == null) { return false; } return nVar.J0(); } public final boolean isVisible() { View view; return (!isAdded() || isHidden() || (view = this.mView) == null || view.getWindowToken() == null || this.mView.getVisibility() != 0) ? false : true; } void noteStateNotSaved() { this.mChildFragmentManager.S0(); } @Deprecated public void onActivityCreated(Bundle bundle) { this.mCalled = true; } @Deprecated public void onActivityResult(int i10, int i11, Intent intent) { if (n.E0(2)) { Log.v("FragmentManager", "Fragment " + this + " received the following in onActivityResult(): requestCode: " + i10 + " resultCode: " + i11 + " data: " + intent); } } public void onAttach(Context context) { this.mCalled = true; androidx.fragment.app.k kVar = this.mHost; Activity e10 = kVar == null ? null : kVar.e(); if (e10 != null) { this.mCalled = false; onAttach(e10); } } @Deprecated public void onAttachFragment(Fragment fragment) { } @Override // android.content.ComponentCallbacks public void onConfigurationChanged(Configuration configuration) { this.mCalled = true; } public boolean onContextItemSelected(MenuItem menuItem) { return false; } public void onCreate(Bundle bundle) { this.mCalled = true; restoreChildFragmentState(bundle); if (this.mChildFragmentManager.I0(1)) { return; } this.mChildFragmentManager.C(); } public Animation onCreateAnimation(int i10, boolean z10, int i11) { return null; } public Animator onCreateAnimator(int i10, boolean z10, int i11) { return null; } @Override // android.view.View.OnCreateContextMenuListener public void onCreateContextMenu(ContextMenu contextMenu, View view, ContextMenu.ContextMenuInfo contextMenuInfo) { requireActivity().onCreateContextMenu(contextMenu, view, contextMenuInfo); } public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) { } public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) { int i10 = this.mContentLayoutId; if (i10 != 0) { return layoutInflater.inflate(i10, viewGroup, false); } return null; } public void onDestroy() { this.mCalled = true; } public void onDestroyOptionsMenu() { } public void onDestroyView() { this.mCalled = true; } public void onDetach() { this.mCalled = true; } public LayoutInflater onGetLayoutInflater(Bundle bundle) { return getLayoutInflater(bundle); } public void onHiddenChanged(boolean z10) { } public void onInflate(Context context, AttributeSet attributeSet, Bundle bundle) { this.mCalled = true; androidx.fragment.app.k kVar = this.mHost; Activity e10 = kVar == null ? null : kVar.e(); if (e10 != null) { this.mCalled = false; onInflate(e10, attributeSet, bundle); } } @Override // android.content.ComponentCallbacks public void onLowMemory() { this.mCalled = true; } public void onMultiWindowModeChanged(boolean z10) { } public boolean onOptionsItemSelected(MenuItem menuItem) { return false; } public void onOptionsMenuClosed(Menu menu) { } public void onPause() { this.mCalled = true; } public void onPictureInPictureModeChanged(boolean z10) { } public void onPrepareOptionsMenu(Menu menu) { } public void onPrimaryNavigationFragmentChanged(boolean z10) { } @Deprecated public void onRequestPermissionsResult(int i10, String[] strArr, int[] iArr) { } public void onResume() { this.mCalled = true; } public void onSaveInstanceState(Bundle bundle) { } public void onStart() { this.mCalled = true; } public void onStop() { this.mCalled = true; } public void onViewCreated(View view, Bundle bundle) { } public void onViewStateRestored(Bundle bundle) { this.mCalled = true; } void performActivityCreated(Bundle bundle) { this.mChildFragmentManager.S0(); this.mState = 3; this.mCalled = false; onActivityCreated(bundle); if (this.mCalled) { f(); this.mChildFragmentManager.y(); } else { throw new d0("Fragment " + this + " did not call through to super.onActivityCreated()"); } } void performAttach() { Iterator it = this.mOnPreAttachedListeners.iterator(); while (it.hasNext()) { it.next().a(); } this.mOnPreAttachedListeners.clear(); this.mChildFragmentManager.k(this.mHost, createFragmentContainer(), this); this.mState = 0; this.mCalled = false; onAttach(this.mHost.f()); if (this.mCalled) { this.mFragmentManager.I(this); this.mChildFragmentManager.z(); } else { throw new d0("Fragment " + this + " did not call through to super.onAttach()"); } } void performConfigurationChanged(Configuration configuration) { onConfigurationChanged(configuration); this.mChildFragmentManager.A(configuration); } boolean performContextItemSelected(MenuItem menuItem) { if (this.mHidden) { return false; } if (onContextItemSelected(menuItem)) { return true; } return this.mChildFragmentManager.B(menuItem); } void performCreate(Bundle bundle) { this.mChildFragmentManager.S0(); this.mState = 1; this.mCalled = false; this.mLifecycleRegistry.a(new androidx.lifecycle.g() { // from class: androidx.fragment.app.Fragment.5 @Override // androidx.lifecycle.g public void onStateChanged(LifecycleOwner lifecycleOwner, e.b bVar) { View view; if (bVar != e.b.ON_STOP || (view = Fragment.this.mView) == null) { return; } view.cancelPendingInputEvents(); } }); this.mSavedStateRegistryController.c(bundle); onCreate(bundle); this.mIsCreated = true; if (this.mCalled) { this.mLifecycleRegistry.h(e.b.ON_CREATE); return; } throw new d0("Fragment " + this + " did not call through to super.onCreate()"); } boolean performCreateOptionsMenu(Menu menu, MenuInflater menuInflater) { boolean z10 = false; if (this.mHidden) { return false; } if (this.mHasMenu && this.mMenuVisible) { onCreateOptionsMenu(menu, menuInflater); z10 = true; } return z10 | this.mChildFragmentManager.D(menu, menuInflater); } void performCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) { this.mChildFragmentManager.S0(); this.mPerformedCreateView = true; this.mViewLifecycleOwner = new z(this, getViewModelStore()); View onCreateView = onCreateView(layoutInflater, viewGroup, bundle); this.mView = onCreateView; if (onCreateView == null) { if (this.mViewLifecycleOwner.c()) { throw new IllegalStateException("Called getViewLifecycleOwner() but onCreateView() returned null"); } this.mViewLifecycleOwner = null; } else { this.mViewLifecycleOwner.b(); androidx.lifecycle.y.a(this.mView, this.mViewLifecycleOwner); androidx.lifecycle.z.a(this.mView, this.mViewLifecycleOwner); androidx.savedstate.d.a(this.mView, this.mViewLifecycleOwner); this.mViewLifecycleOwnerLiveData.n(this.mViewLifecycleOwner); } } void performDestroy() { this.mChildFragmentManager.E(); this.mLifecycleRegistry.h(e.b.ON_DESTROY); this.mState = 0; this.mCalled = false; this.mIsCreated = false; onDestroy(); if (this.mCalled) { return; } throw new d0("Fragment " + this + " did not call through to super.onDestroy()"); } void performDestroyView() { this.mChildFragmentManager.F(); if (this.mView != null && this.mViewLifecycleOwner.getLifecycle().b().a(e.c.CREATED)) { this.mViewLifecycleOwner.a(e.b.ON_DESTROY); } this.mState = 1; this.mCalled = false; onDestroyView(); if (this.mCalled) { androidx.loader.app.a.b(this).d(); this.mPerformedCreateView = false; } else { throw new d0("Fragment " + this + " did not call through to super.onDestroyView()"); } } void performDetach() { this.mState = -1; this.mCalled = false; onDetach(); this.mLayoutInflater = null; if (this.mCalled) { if (this.mChildFragmentManager.D0()) { return; } this.mChildFragmentManager.E(); this.mChildFragmentManager = new o(); return; } throw new d0("Fragment " + this + " did not call through to super.onDetach()"); } LayoutInflater performGetLayoutInflater(Bundle bundle) { LayoutInflater onGetLayoutInflater = onGetLayoutInflater(bundle); this.mLayoutInflater = onGetLayoutInflater; return onGetLayoutInflater; } void performLowMemory() { onLowMemory(); this.mChildFragmentManager.G(); } void performMultiWindowModeChanged(boolean z10) { onMultiWindowModeChanged(z10); this.mChildFragmentManager.H(z10); } boolean performOptionsItemSelected(MenuItem menuItem) { if (this.mHidden) { return false; } if (this.mHasMenu && this.mMenuVisible && onOptionsItemSelected(menuItem)) { return true; } return this.mChildFragmentManager.J(menuItem); } void performOptionsMenuClosed(Menu menu) { if (this.mHidden) { return; } if (this.mHasMenu && this.mMenuVisible) { onOptionsMenuClosed(menu); } this.mChildFragmentManager.K(menu); } void performPause() { this.mChildFragmentManager.M(); if (this.mView != null) { this.mViewLifecycleOwner.a(e.b.ON_PAUSE); } this.mLifecycleRegistry.h(e.b.ON_PAUSE); this.mState = 6; this.mCalled = false; onPause(); if (this.mCalled) { return; } throw new d0("Fragment " + this + " did not call through to super.onPause()"); } void performPictureInPictureModeChanged(boolean z10) { onPictureInPictureModeChanged(z10); this.mChildFragmentManager.N(z10); } boolean performPrepareOptionsMenu(Menu menu) { boolean z10 = false; if (this.mHidden) { return false; } if (this.mHasMenu && this.mMenuVisible) { onPrepareOptionsMenu(menu); z10 = true; } return z10 | this.mChildFragmentManager.O(menu); } void performPrimaryNavigationFragmentChanged() { boolean H0 = this.mFragmentManager.H0(this); Boolean bool = this.mIsPrimaryNavigationFragment; if (bool == null || bool.booleanValue() != H0) { this.mIsPrimaryNavigationFragment = Boolean.valueOf(H0); onPrimaryNavigationFragmentChanged(H0); this.mChildFragmentManager.P(); } } void performResume() { this.mChildFragmentManager.S0(); this.mChildFragmentManager.a0(true); this.mState = 7; this.mCalled = false; onResume(); if (!this.mCalled) { throw new d0("Fragment " + this + " did not call through to super.onResume()"); } androidx.lifecycle.i iVar = this.mLifecycleRegistry; e.b bVar = e.b.ON_RESUME; iVar.h(bVar); if (this.mView != null) { this.mViewLifecycleOwner.a(bVar); } this.mChildFragmentManager.Q(); } void performSaveInstanceState(Bundle bundle) { onSaveInstanceState(bundle); this.mSavedStateRegistryController.d(bundle); Parcelable h12 = this.mChildFragmentManager.h1(); if (h12 != null) { bundle.putParcelable("android:support:fragments", h12); } } void performStart() { this.mChildFragmentManager.S0(); this.mChildFragmentManager.a0(true); this.mState = 5; this.mCalled = false; onStart(); if (!this.mCalled) { throw new d0("Fragment " + this + " did not call through to super.onStart()"); } androidx.lifecycle.i iVar = this.mLifecycleRegistry; e.b bVar = e.b.ON_START; iVar.h(bVar); if (this.mView != null) { this.mViewLifecycleOwner.a(bVar); } this.mChildFragmentManager.R(); } void performStop() { this.mChildFragmentManager.T(); if (this.mView != null) { this.mViewLifecycleOwner.a(e.b.ON_STOP); } this.mLifecycleRegistry.h(e.b.ON_STOP); this.mState = 4; this.mCalled = false; onStop(); if (this.mCalled) { return; } throw new d0("Fragment " + this + " did not call through to super.onStop()"); } void performViewCreated() { onViewCreated(this.mView, this.mSavedFragmentState); this.mChildFragmentManager.U(); } public void postponeEnterTransition() { a().f1703u = true; } public final androidx.activity.result.c registerForActivityResult(c.a aVar, androidx.activity.result.b bVar) { return d(aVar, new e(), bVar); } public void registerForContextMenu(View view) { view.setOnCreateContextMenuListener(this); } @Deprecated public final void requestPermissions(String[] strArr, int i10) { if (this.mHost != null) { getParentFragmentManager().K0(this, strArr, i10); return; } throw new IllegalStateException("Fragment " + this + " not attached to Activity"); } public final androidx.fragment.app.e requireActivity() { androidx.fragment.app.e activity = getActivity(); if (activity != null) { return activity; } throw new IllegalStateException("Fragment " + this + " not attached to an activity."); } public final Bundle requireArguments() { Bundle arguments = getArguments(); if (arguments != null) { return arguments; } throw new IllegalStateException("Fragment " + this + " does not have any arguments."); } public final Context requireContext() { Context context = getContext(); if (context != null) { return context; } throw new IllegalStateException("Fragment " + this + " not attached to a context."); } @Deprecated public final n requireFragmentManager() { return getParentFragmentManager(); } public final Object requireHost() { Object host = getHost(); if (host != null) { return host; } throw new IllegalStateException("Fragment " + this + " not attached to a host."); } public final Fragment requireParentFragment() { Fragment parentFragment = getParentFragment(); if (parentFragment != null) { return parentFragment; } if (getContext() == null) { throw new IllegalStateException("Fragment " + this + " is not attached to any Fragment or host"); } throw new IllegalStateException("Fragment " + this + " is not a child Fragment, it is directly attached to " + getContext()); } public final View requireView() { View view = getView(); if (view != null) { return view; } throw new IllegalStateException("Fragment " + this + " did not return a View from onCreateView() or this was called before onCreateView()."); } void restoreChildFragmentState(Bundle bundle) { Parcelable parcelable; if (bundle == null || (parcelable = bundle.getParcelable("android:support:fragments")) == null) { return; } this.mChildFragmentManager.f1(parcelable); this.mChildFragmentManager.C(); } final void restoreViewState(Bundle bundle) { SparseArray sparseArray = this.mSavedViewState; if (sparseArray != null) { this.mView.restoreHierarchyState(sparseArray); this.mSavedViewState = null; } if (this.mView != null) { this.mViewLifecycleOwner.d(this.mSavedViewRegistryState); this.mSavedViewRegistryState = null; } this.mCalled = false; onViewStateRestored(bundle); if (this.mCalled) { if (this.mView != null) { this.mViewLifecycleOwner.a(e.b.ON_CREATE); } } else { throw new d0("Fragment " + this + " did not call through to super.onViewStateRestored()"); } } public void setAllowEnterTransitionOverlap(boolean z10) { a().f1700r = Boolean.valueOf(z10); } public void setAllowReturnTransitionOverlap(boolean z10) { a().f1699q = Boolean.valueOf(z10); } void setAnimatingAway(View view) { a().f1683a = view; } void setAnimations(int i10, int i11, int i12, int i13) { if (this.mAnimationInfo == null && i10 == 0 && i11 == 0 && i12 == 0 && i13 == 0) { return; } a().f1686d = i10; a().f1687e = i11; a().f1688f = i12; a().f1689g = i13; } void setAnimator(Animator animator) { a().f1684b = animator; } public void setArguments(Bundle bundle) { if (this.mFragmentManager != null && isStateSaved()) { throw new IllegalStateException("Fragment already added and state has been saved"); } this.mArguments = bundle; } public void setEnterSharedElementCallback(n0 n0Var) { a().getClass(); } public void setEnterTransition(Object obj) { a().f1693k = obj; } public void setExitSharedElementCallback(n0 n0Var) { a().getClass(); } public void setExitTransition(Object obj) { a().f1695m = obj; } void setFocusedView(View view) { a().f1702t = view; } public void setHasOptionsMenu(boolean z10) { if (this.mHasMenu != z10) { this.mHasMenu = z10; if (!isAdded() || isHidden()) { return; } this.mHost.o(); } } void setHideReplaced(boolean z10) { a().f1705w = z10; } public void setInitialSavedState(m mVar) { Bundle bundle; if (this.mFragmentManager != null) { throw new IllegalStateException("Fragment already added"); } if (mVar == null || (bundle = mVar.f1706a) == null) { bundle = null; } this.mSavedFragmentState = bundle; } public void setMenuVisibility(boolean z10) { if (this.mMenuVisible != z10) { this.mMenuVisible = z10; if (this.mHasMenu && isAdded() && !isHidden()) { this.mHost.o(); } } } void setNextTransition(int i10) { if (this.mAnimationInfo == null && i10 == 0) { return; } a(); this.mAnimationInfo.f1690h = i10; } void setOnStartEnterTransitionListener(l lVar) { a(); i iVar = this.mAnimationInfo; l lVar2 = iVar.f1704v; if (lVar == lVar2) { return; } if (lVar != null && lVar2 != null) { throw new IllegalStateException("Trying to set a replacement startPostponedEnterTransition on " + this); } if (iVar.f1703u) { iVar.f1704v = lVar; } if (lVar != null) { lVar.a(); } } void setPopDirection(boolean z10) { if (this.mAnimationInfo == null) { return; } a().f1685c = z10; } void setPostOnViewCreatedAlpha(float f10) { a().f1701s = f10; } public void setReenterTransition(Object obj) { a().f1696n = obj; } @Deprecated public void setRetainInstance(boolean z10) { this.mRetainInstance = z10; n nVar = this.mFragmentManager; if (nVar == null) { this.mRetainInstanceChangedWhileDetached = true; } else if (z10) { nVar.i(this); } else { nVar.d1(this); } } public void setReturnTransition(Object obj) { a().f1694l = obj; } public void setSharedElementEnterTransition(Object obj) { a().f1697o = obj; } void setSharedElementNames(ArrayList arrayList, ArrayList arrayList2) { a(); i iVar = this.mAnimationInfo; iVar.f1691i = arrayList; iVar.f1692j = arrayList2; } public void setSharedElementReturnTransition(Object obj) { a().f1698p = obj; } @Deprecated public void setTargetFragment(Fragment fragment, int i10) { n nVar = this.mFragmentManager; n nVar2 = fragment != null ? fragment.mFragmentManager : null; if (nVar != null && nVar2 != null && nVar != nVar2) { throw new IllegalArgumentException("Fragment " + fragment + " must share the same FragmentManager to be set as a target fragment"); } for (Fragment fragment2 = fragment; fragment2 != null; fragment2 = fragment2.getTargetFragment()) { if (fragment2.equals(this)) { throw new IllegalArgumentException("Setting " + fragment + " as the target of " + this + " would create a target cycle"); } } if (fragment == null) { this.mTargetWho = null; this.mTarget = null; } else if (this.mFragmentManager == null || fragment.mFragmentManager == null) { this.mTargetWho = null; this.mTarget = fragment; } else { this.mTargetWho = fragment.mWho; this.mTarget = null; } this.mTargetRequestCode = i10; } @Deprecated public void setUserVisibleHint(boolean z10) { if (!this.mUserVisibleHint && z10 && this.mState < 5 && this.mFragmentManager != null && isAdded() && this.mIsCreated) { n nVar = this.mFragmentManager; nVar.U0(nVar.v(this)); } this.mUserVisibleHint = z10; this.mDeferStart = this.mState < 5 && !z10; if (this.mSavedFragmentState != null) { this.mSavedUserVisibleHint = Boolean.valueOf(z10); } } public boolean shouldShowRequestPermissionRationale(String str) { androidx.fragment.app.k kVar = this.mHost; if (kVar != null) { return kVar.l(str); } return false; } public void startActivity(@SuppressLint({"UnknownNullness"}) Intent intent) { startActivity(intent, null); } @Deprecated public void startActivityForResult(@SuppressLint({"UnknownNullness"}) Intent intent, int i10) { startActivityForResult(intent, i10, null); } @Deprecated public void startIntentSenderForResult(@SuppressLint({"UnknownNullness"}) IntentSender intentSender, int i10, Intent intent, int i11, int i12, int i13, Bundle bundle) { if (this.mHost == null) { throw new IllegalStateException("Fragment " + this + " not attached to Activity"); } if (n.E0(2)) { Log.v("FragmentManager", "Fragment " + this + " received the following in startIntentSenderForResult() requestCode: " + i10 + " IntentSender: " + intentSender + " fillInIntent: " + intent + " options: " + bundle); } getParentFragmentManager().M0(this, intentSender, i10, intent, i11, i12, i13, bundle); } public void startPostponedEnterTransition() { if (this.mAnimationInfo == null || !a().f1703u) { return; } if (this.mHost == null) { a().f1703u = false; } else if (Looper.myLooper() != this.mHost.g().getLooper()) { this.mHost.g().postAtFrontOfQueue(new b()); } else { callStartTransitionListener(true); } } public String toString() { StringBuilder sb = new StringBuilder(128); sb.append(getClass().getSimpleName()); sb.append("{"); sb.append(Integer.toHexString(System.identityHashCode(this))); sb.append("}"); sb.append(" ("); sb.append(this.mWho); if (this.mFragmentId != 0) { sb.append(" id=0x"); sb.append(Integer.toHexString(this.mFragmentId)); } if (this.mTag != null) { sb.append(" tag="); sb.append(this.mTag); } sb.append(")"); return sb.toString(); } public void unregisterForContextMenu(View view) { view.setOnCreateContextMenuListener(null); } @Deprecated public static Fragment instantiate(Context context, String str, Bundle bundle) { try { Fragment fragment = (Fragment) androidx.fragment.app.j.d(context.getClassLoader(), str).getConstructor(new Class[0]).newInstance(new Object[0]); if (bundle != null) { bundle.setClassLoader(fragment.getClass().getClassLoader()); fragment.setArguments(bundle); } return fragment; } catch (IllegalAccessException e10) { throw new j("Unable to instantiate fragment " + str + ": make sure class name exists, is public, and has an empty constructor that is public", e10); } catch (InstantiationException e11) { throw new j("Unable to instantiate fragment " + str + ": make sure class name exists, is public, and has an empty constructor that is public", e11); } catch (NoSuchMethodException e12) { throw new j("Unable to instantiate fragment " + str + ": could not find Fragment constructor", e12); } catch (InvocationTargetException e13) { throw new j("Unable to instantiate fragment " + str + ": calling Fragment constructor caused an exception", e13); } } public final String getString(int i10, Object... objArr) { return getResources().getString(i10, objArr); } public final void postponeEnterTransition(long j10, TimeUnit timeUnit) { a().f1703u = true; n nVar = this.mFragmentManager; Handler g10 = nVar != null ? nVar.s0().g() : new Handler(Looper.getMainLooper()); g10.removeCallbacks(this.mPostponedDurationRunnable); g10.postDelayed(this.mPostponedDurationRunnable, timeUnit.toMillis(j10)); } public final androidx.activity.result.c registerForActivityResult(c.a aVar, ActivityResultRegistry activityResultRegistry, androidx.activity.result.b bVar) { return d(aVar, new f(activityResultRegistry), bVar); } public void startActivity(@SuppressLint({"UnknownNullness"}) Intent intent, Bundle bundle) { androidx.fragment.app.k kVar = this.mHost; if (kVar != null) { kVar.m(this, intent, -1, bundle); return; } throw new IllegalStateException("Fragment " + this + " not attached to Activity"); } @Deprecated public void startActivityForResult(@SuppressLint({"UnknownNullness"}) Intent intent, int i10, Bundle bundle) { if (this.mHost != null) { getParentFragmentManager().L0(this, intent, i10, bundle); return; } throw new IllegalStateException("Fragment " + this + " not attached to Activity"); } @Deprecated public LayoutInflater getLayoutInflater(Bundle bundle) { androidx.fragment.app.k kVar = this.mHost; if (kVar != null) { LayoutInflater i10 = kVar.i(); androidx.core.view.u.a(i10, this.mChildFragmentManager.t0()); return i10; } throw new IllegalStateException("onGetLayoutInflater() cannot be executed until the Fragment is attached to the FragmentManager."); } @Deprecated public void onAttach(Activity activity) { this.mCalled = true; } @Deprecated public void onInflate(Activity activity, AttributeSet attributeSet, Bundle bundle) { this.mCalled = true; } }