private void handleSavedInstanceState ( @ Nullable final Bundle savedInstanceState ) { if ( savedInstanceState != null ) { floatingActionButtonsVisible = savedInstanceState . getBoolean ( FLOATING_ACTION_BUTTONS_VISIBLE_EXTRA ) ; int visibility = floatingActionButtonsVisible ? View . VISIBLE : View . INVISIBLE ; smallFloatingActionButton . setVisibility ( visibility ) ; normalFloatingActionButton . setVisibility ( visibility ) ; largeFloatingActionButton . setVisibility ( visibility ) ; } }
Adapts the activity s views depending on the saved instance state which has been passed to the activity .