소스 검색

#298 should be fixed

Aidan Follestad 10 년 전
부모
커밋
56d10ce1e7
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      library/src/main/java/com/afollestad/materialdialogs/MaterialDialog.java

+ 2 - 1
library/src/main/java/com/afollestad/materialdialogs/MaterialDialog.java

@@ -1516,7 +1516,8 @@ 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) {
+                    title != null && (items == null || items.length == 0) &&
+                    customView == null && adapter == null) {
                 this.content = this.title;
                 this.title = null;
             }