fragment/src/main/java/androidx/fragment/app/Fragment.java
void initState() {
        mIndex = -1;
        mWho = null;
        mAdded = false;
        mRemoving = false;
        mFromLayout = false;
        mInLayout = false;
        mRestored = false;
        mBackStackNesting = 0;
        mFragmentManager = null;
        mChildFragmentManager = null;
        mHost = null;
        mFragmentId = 0;
        mContainerId = 0;
        mTag = null;
        mHidden = false;
        mDetached = false;
        mRetaining = false;
    }
/**
     * Called by the fragment manager once this fragment has been removed,
     * so that we don't have any left-over state if the application decides
     * to re-use the instance.  This only clears state that the framework
     * internally manages, not things the application sets.
     */
Called by the fragment manager once this fragment has been removed,
so that we don't have any left-over state if the application decides
to re-use the instance.  This only clears state that the framework
internally manages, not things the application sets.
Called by the fragment manager once this fragment has been removed so that we don ' t have any left - over state if the application decides to re - use the instance . This only clears state that the framework internally manages not things the application sets .
void initState() {
        mIndex = -1;
        mWho = null;
        mAdded = false;
        mRemoving = false;
        mFromLayout = false;
        mInLayout = false;
        mRestored = false;
        mBackStackNesting = 0;
        mFragmentManager = null;
        mChildFragmentManager = null;
        mHost = null;
        mFragmentId = 0;
        mContainerId = 0;
        mTag = null;
        mHidden = false;
        mDetached = false;
        mRetaining = false;
    }
void initState ( ) { mIndex = - 1 ; mWho = null ; mAdded = false ; mRemoving = false ; mFromLayout = false ; mInLayout = false ; mRestored = false ; mBackStackNesting = 0 ; mFragmentManager = null ; mChildFragmentManager = null ; mHost = null ; mFragmentId = 0 ; mContainerId = 0 ; mTag = null ; mHidden = false ; mDetached = false ; mRetaining = false ; }
Called by the fragment manager once this fragment has been removed,
 so that we don't have any left-over state if the application decides
 to re-use the instance.
Called by the fragment manager once this fragment has been removed so that we don ' t have any left - over state if the application decides to re - use the instance .