private boolean shouldStackButtons ( ) { SharedPreferences sharedPreferences = PreferenceManager . getDefaultSharedPreferences ( getActivity ( ) ) ; String key = getString ( R . string . stack_buttons_preference_key ) ; boolean defaultValue = getResources ( ) . getBoolean ( R . bool . stack_buttons_preference_default_value ) ; return sharedPreferences . getBoolean ( key , defaultValue ) ; }
Returns whether the buttons of the example dialog should be stacked or not .