private void initializeToolbarElevation ( final SharedPreferences sharedPreferences ) { String key = getString ( R . string . toolbar_elevation_preference_key ) ; String defaultValue = getString ( R . string . toolbar_elevation_preference_default_value ) ; int elevation = Integer . valueOf ( sharedPreferences . getString ( key , defaultValue ) ) ; setToolbarElevation ( elevation ) ; }
Initializes the elevation of the activity s toolbar .