Quellcode durchsuchen

Added inputMaxLength(int) that uses default error color.

Aidan Follestad vor 10 Jahren
Ursprung
Commit
92c4862cfd

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

@@ -1051,9 +1051,12 @@ public class MaterialDialog extends DialogBase implements
             return this;
         }
 
+        public Builder inputMaxLength(int maxLength) {
+            return inputMaxLength(maxLength, 0);
+        }
+
         /**
-         * @param errorColor the error color.
-         *                   Pass in 0 for the default red error color (as specified in guidelines).
+         * @param errorColor Pass in 0 for the default red error color (as specified in guidelines).
          */
         public Builder inputMaxLength(int maxLength, int errorColor) {
             if (maxLength < 1)