private void initializeHideNavigation ( final SharedPreferences sharedPreferences ) { String key = getString ( R . string . hide_navigation_preference_key ) ; boolean defaultValue = Boolean . valueOf ( getString ( R . string . hide_navigation_preference_default_value ) ) ; boolean hideNavigation = sharedPreferences . getBoolean ( key , defaultValue ) ; hideNavigation ( hideNavigation ) ; }
Initializes whether the navigation should be hidden or not .