@Override
    @NonNull
    public Dialog onCreateDialog(final Bundle savedInstanceState) {
        return new MaterialDialog.Builder(getActivity())
                .title(getTitle())
                .content(getMessage())
                .positiveText(android.R.string.ok)
                .negativeText(android.R.string.no)
                .onPositive((dialog, which) -> onClick(dialog, BUTTON_POSITIVE))
                .onNegative((dialog, which) -> onClick(dialog, BUTTON_NEGATIVE))
                .cancelable(true)
                .cancelListener(this)
                .build();
    }
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