Преглед на файлове

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