فهرست منبع

.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;