override fun onSaveInstanceState(outState: Bundle) { outState.putBoolean("SlidingActivityHelper.open", mSlidingMenu.isMenuShowing()) outState.putBoolean( "SlidingActivityHelper.secondary", mSlidingMenu.isSecondaryMenuShowing() ) }
Called to retrieve per-instance state from an activity before being killed so that the state can be restored in onCreate ( Bundle ) or onRestoreInstanceState ( Bundle ) ( the Bundle populated by this method will be passed to both ) .