@Override
    public void onClick(DialogInterface dialog, int which) {
        dialog.dismiss();
        switch (which) {
        case BUTTON_POSITIVE:
            onResult(RESULT_OK);
            break;
        case BUTTON_NEGATIVE:
            onResult(RESULT_CANCELED);
            break;
        }
    }
Confirm message and deliver callback to given activity

@param activity
@param requestCode
@param title
@param message
@param bundle
app/src/main/java/com/github/pockethub/android/ui/ConfirmDialogFragment.java