Library Version:
3.1.0
Affected Device(s):
Motorola XT1572
Describe the Bug:
I've a simple input dialog with one EditText,
MaterialDialog(this).show {
noAutoDismiss()
title(res = R.string.title_name)
input()
positiveButton(R.string.action_save_name)
}
and when I click the outside the dialog, the dialog got dismissed.
To Reproduce:
noAutoDismiss and showMaterialDialog(this).show {
noAutoDismiss()
title(res = R.string.title_name)
input()
positiveButton(R.string.action_save_name)
}
Expected Behavior:
The dialog shouldn't dismiss
or Is there any other flag to prevent autoDismiss on outside dialog touch ?
AFAIK, this is the standard behavior of a dialog in android. But you can deny it via cancelOnTouchOutside().
That's what I was searching for. Thanks Simon :)
Most helpful comment
AFAIK, this is the standard behavior of a dialog in android. But you can deny it via
cancelOnTouchOutside().