code: @Override
      public void onButtonClicked(int which, DialogInterface dialogInterface) {
          switch (which){
              case Dialog.BUTTON_POSITIVE:
                  if(mListener != null) mListener.onAccepted(getText());
                  break;
              case Dialog.BUTTON_NEGATIVE:
                  // Do nothing for the negative click
                  break;
          }
      }
docs: Called when one of the three available buttons are clicked
  so that this style can perform a special action such as calling a content
  delivery callback.
  
  @param which                 which button was pressed
  @param dialogInterface