private Preference . OnPreferenceChangeListener createShowDialogHeaderListener ( ) { return new Preference . OnPreferenceChangeListener ( ) { @ Override public boolean onPreferenceChange ( final Preference preference , final Object newValue ) { boolean showDialogHeader = ( Boolean ) newValue ; dialogPreference . showDialogHeader ( showDialogHeader ) ; editTextPreference . showDialogHeader ( showDialogHeader ) ; listPreference . showDialogHeader ( showDialogHeader ) ; multiChoiceListPreference . showDialogHeader ( showDialogHeader ) ; seekBarPreference . showDialogHeader ( showDialogHeader ) ; numberPickerPreference . showDialogHeader ( showDialogHeader ) ; digitPickerPreference . showDialogHeader ( showDialogHeader ) ; resolutionPreference . showDialogHeader ( showDialogHeader ) ; colorPalettePreference . showDialogHeader ( showDialogHeader ) ; return true ; } } ; }
Creates and returns a listener which allows to adapt whether the headers of the preference s dialogs should be shown or not when the corresponding setting has been changed .