Listeners signature change and default dismiss

I have changed the signature of the action listeners and stopped the default dismissing of the dialog. The default Android behaviour for dialogs is to leave it to the listener to control the dismissing, this allows the developer to fully control the behaviour of the dialog.