private int getDividerCount ( ) { SharedPreferences sharedPreferences = PreferenceManager . getDefaultSharedPreferences ( getActivity ( ) ) ; String key = getString ( R . string . divider_count_preference_key ) ; String defaultValue = getString ( R . string . divider_count_preference_default_value ) ; return Integer . valueOf ( sharedPreferences . getString ( key , defaultValue ) ) ; }
Returns the number of dividers which should be shown depending on the app s settings .