List of usage examples for android.app Activity FRAGMENTS_TAG
String FRAGMENTS_TAG
To view the source code for android.app Activity FRAGMENTS_TAG.
Click Source Link
From source file:android.app.FragmentState.java
void performCreate(Bundle savedInstanceState) { if (mChildFragmentManager != null) { mChildFragmentManager.noteStateNotSaved(); }/* w w w.j ava2s.co m*/ mCalled = false; onCreate(savedInstanceState); if (!mCalled) { throw new SuperNotCalledException("Fragment " + this + " did not call through to super.onCreate()"); } if (savedInstanceState != null) { Parcelable p = savedInstanceState.getParcelable(Activity.FRAGMENTS_TAG); if (p != null) { if (mChildFragmentManager == null) { instantiateChildFragmentManager(); } mChildFragmentManager.restoreAllState(p, null); mChildFragmentManager.dispatchCreate(); } } }
From source file:android.app.FragmentState.java
void performSaveInstanceState(Bundle outState) { onSaveInstanceState(outState);/*w w w.j a v a 2 s . co m*/ if (mChildFragmentManager != null) { Parcelable p = mChildFragmentManager.saveAllState(); if (p != null) { outState.putParcelable(Activity.FRAGMENTS_TAG, p); } } }