浏览代码

.items() can accept an args list of strings or char sequences.

Aidan Follestad 9 年之前
父节点
当前提交
3682f0962e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/src/main/java/com/afollestad/materialdialogs/MaterialDialog.java

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

@@ -713,7 +713,7 @@ public class MaterialDialog extends DialogBase implements
             return this;
         }
 
-        public Builder items(@NonNull CharSequence[] items) {
+        public Builder items(@NonNull CharSequence... items) {
             if (this.customView != null)
                 throw new IllegalStateException("You cannot set items() when you're using a custom view.");
             this.items = items;