code: private void initializeShowEditTextDialogPreference() {
          Preference preference =
                  findPreference(getString(R.string.show_edit_text_dialog_preference_key));
          preference.setOnPreferenceClickListener(new OnPreferenceClickListener() {
  
              @Override
              public boolean onPreferenceClick(final Preference preference) {
                  initializeEditTextDialog();
                  editTextDialog.setShowAnimation(createRectangularRevealAnimation(preference));
                  editTextDialog.setDismissAnimation(createRectangularRevealAnimation(preference));
                  editTextDialog.setCancelAnimation(createRectangularRevealAnimation(preference));
                  editTextDialog.show();
                  return true;
              }
  
          });
      }
docs: Initializes the preference, which allows to show the edit text dialog.