|
@@ -404,6 +404,7 @@ public class MaterialDialog extends DialogBase implements
|
|
protected boolean alwaysCallSingleChoiceCallback = false;
|
|
protected boolean alwaysCallSingleChoiceCallback = false;
|
|
protected Theme theme = Theme.LIGHT;
|
|
protected Theme theme = Theme.LIGHT;
|
|
protected boolean cancelable = true;
|
|
protected boolean cancelable = true;
|
|
|
|
+ protected boolean canceledOnTouchOutside = true;
|
|
protected float contentLineSpacingMultiplier = 1.2f;
|
|
protected float contentLineSpacingMultiplier = 1.2f;
|
|
protected int selectedIndex = -1;
|
|
protected int selectedIndex = -1;
|
|
protected Integer[] selectedIndices = null;
|
|
protected Integer[] selectedIndices = null;
|
|
@@ -1162,6 +1163,11 @@ public class MaterialDialog extends DialogBase implements
|
|
return this;
|
|
return this;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public Builder canceledOnTouchOutside(boolean canceledOnTouchOutside) {
|
|
|
|
+ this.canceledOnTouchOutside = canceledOnTouchOutside;
|
|
|
|
+ return this;
|
|
|
|
+ }
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* This defaults to true. If set to false, the dialog will not automatically be dismissed
|
|
* This defaults to true. If set to false, the dialog will not automatically be dismissed
|
|
* when an action button is pressed, and not automatically dismissed when the user selects
|
|
* when an action button is pressed, and not automatically dismissed when the user selects
|