public void onSaveInstanceState ( Bundle outState ) { outState . putString ( "mToolbarVisibility" , mToolbarVisibility . name ( ) ) ; outState . putBoolean ( "mToolbarIsVisible" , mToolbarIsVisible ) ; outState . putInt ( "mActiveEditor" , mActiveEditor ) ; if ( mLinkSelection != null ) { outState . putSerializable ( "mLinkSelection" , mLinkSelection ) ; } }
Called to retrieve per - instance state before being killed so that the state can be restored in the constructor .