code: private void initializeShowMultipleChoiceListDialogPreference() {
          Preference preference =
                  findPreference(getString(R.string.show_multi_choice_dialog_preference_key));
          preference.setOnPreferenceClickListener(new OnPreferenceClickListener() {
  
              @Override
              public boolean onPreferenceClick(final Preference preference) {
                  initializeMultipleChoiceListDialog();
                  multipleChoiceListDialog
                          .setShowAnimation(createRectangularRevealAnimation(preference));
                  multipleChoiceListDialog
                          .setDismissAnimation(createRectangularRevealAnimation(preference));
                  multipleChoiceListDialog
                          .setCancelAnimation(createRectangularRevealAnimation(preference));
                  multipleChoiceListDialog.show();
                  return true;
              }
  
          });
      }
docs: Initializes the preference, which allows to show the multiple choice list dialog.