code: private OnPreferenceChangeListener createOverrideBackButtonChangeListener() {
          return new OnPreferenceChangeListener() {
  
              @Override
              public boolean onPreferenceChange(final Preference preference, final Object newValue) {
                  if (newValue != null) {
                      boolean overrideNavigationIcon = (boolean) newValue;
                      ((PreferenceActivity) getActivity())
                              .overrideNavigationIcon(overrideNavigationIcon);
                  }
  
                  return true;
              }
  
          };
      }
docs: Creates a listener, which allows to adapt the behavior of the {@link PreferenceActivity} when
  the value, which determines, whether the action bar's back button should be overwritten, has
  been changed.
  
  @return The listener, which has been created, as an instance of the type {@link
  OnPreferenceChangeListener}