|
@@ -1478,6 +1478,11 @@ public class MaterialDialog extends DialogBase implements View.OnClickListener {
|
|
|
}
|
|
|
|
|
|
public MaterialDialog build() {
|
|
|
+ if ((content == null || content.toString().trim().length() == 0) &&
|
|
|
+ title != null && (items == null || items.length == 0) && customView == null) {
|
|
|
+ this.content = this.title;
|
|
|
+ this.title = null;
|
|
|
+ }
|
|
|
return new MaterialDialog(this);
|
|
|
}
|
|
|
|