code: private void initializeButtons() {
          setPositiveButton(android.R.string.ok, createRemovePreferenceHeaderClickListener());
          setNegativeButton(android.R.string.cancel, null);
      }
docs: Initializes the dialog's buttons.