Przeglądaj źródła

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

Aidan Follestad 9 lat temu
rodzic
commit
3682f0962e

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