private boolean shouldDividerTitleBeShown ( ) { SharedPreferences sharedPreferences = PreferenceManager . getDefaultSharedPreferences ( getActivity ( ) ) ; String key = getString ( R . string . show_divider_title_preference_key ) ; boolean defaultValue = getResources ( ) . getBoolean ( R . bool . show_divider_title_preference_default_value ) ; return sharedPreferences . getBoolean ( key , defaultValue ) ; }
Returns whether the title of dividers should be shown depending on the app s settings or not .