Ololoking Ololoking - 3 months ago 27
Android Question

Material dialog library - prevent dismissing/closing the dialog on onPositive function call

I am using this Material Dialog library and when I click the positive button, the

function is called and the dialog is closed. How can I prevent the dialog from closing/dismissing?

Thanks for answers.


add: autoDismiss(false)

  new MaterialDialog.Builder(mainActivity)
            .callback(new MaterialDialog.ButtonCallback() {
                public void onPositive(MaterialDialog dialog) {

            .typeface(titleAndActions, contentAndListItems)