소스 검색

Added inputMaxLength(int) that uses default error color.

Aidan Follestad 10 년 전
부모
커밋
92c4862cfd
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 5 2
      library/src/main/java/com/afollestad/materialdialogs/MaterialDialog.java

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