@perfectionming because when you click on the positive button, you want the button to fire
this method and tell the activity about the event. and on negative button, you want to do nothing. thats why I set
this
as parameter, because
this
as current class object implement
OnClickListener
, which you weren't using before.