fragment/src/main/java/androidx/fragment/app/Fragment.java
void restoreChildFragmentState(@Nullable Bundle savedInstanceState) {
        if (savedInstanceState != null) {
            Parcelable p = savedInstanceState.getParcelable(
                    FragmentActivity.FRAGMENTS_TAG);
            if (p != null) {
                if (mChildFragmentManager == null) {
                    instantiateChildFragmentManager();
                }
                mChildFragmentManager.restoreAllState(p, mChildNonConfig);
                mChildNonConfig = null;
                mChildFragmentManager.dispatchCreate();
            }
        }
    }
/**
     * Restore the state of the child FragmentManager. Called by either
     * {@link #onCreate(Bundle)} for non-retained instance fragments or by
     * {@link FragmentManagerImpl#moveToState(Fragment, int, int, int, boolean)}
     * for retained instance fragments.
     *
     * <p><strong>Postcondition:</strong> if there were child fragments to restore,
     * the child FragmentManager will be instantiated and brought to the {@link #CREATED} state.
     * </p>
     *
     * @param savedInstanceState the savedInstanceState potentially containing fragment info
     */
Restore the state of the child FragmentManager. Called by either
#onCreate(Bundle) for non-retained instance fragments or by
FragmentManagerImpl#moveToState(Fragment, int, int, int, boolean)
for retained instance fragments.

Postcondition: if there were child fragments to restore,
the child FragmentManager will be instantiated and brought to the  #CREATED state.

@param savedInstanceState the savedInstanceState potentially containing fragment info
Restore the state of the child FragmentManager . Called by either #onCreate ( Bundle ) for non - retained instance fragments or by FragmentManagerImpl#moveToState ( Fragment int int int boolean ) for retained instance fragments . Postcondition : if there were child fragments to restore the child FragmentManager will be instantiated and brought to the #CREATED state . @param savedInstanceState the savedInstanceState potentially containing fragment info
void restoreChildFragmentState(@Nullable Bundle savedInstanceState) {
        if (savedInstanceState != null) {
            Parcelable p = savedInstanceState.getParcelable(
                    FragmentActivity.FRAGMENTS_TAG);
            if (p != null) {
                if (mChildFragmentManager == null) {
                    instantiateChildFragmentManager();
                }
                mChildFragmentManager.restoreAllState(p, mChildNonConfig);
                mChildNonConfig = null;
                mChildFragmentManager.dispatchCreate();
            }
        }
    }
void restoreChildFragmentState ( @ Nullable Bundle savedInstanceState ) { if ( savedInstanceState != null ) { Parcelable p = savedInstanceState . getParcelable ( FragmentActivity . FRAGMENTS_TAG ) ; if ( p != null ) { if ( mChildFragmentManager == null ) { instantiateChildFragmentManager ( ) ; } mChildFragmentManager . restoreAllState ( p , mChildNonConfig ) ; mChildNonConfig = null ; mChildFragmentManager . dispatchCreate ( ) ; } } }
Restore the state of the child FragmentManager.
Restore the state of the child FragmentManager .