This repository was archived by the owner on Dec 16, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
java/com/marknkamau/justjava/ui/profile Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -169,9 +169,6 @@ class ProfileActivity : BaseActivity() {
169169 if (etMobile.trimmedText.isEmpty()) {
170170 tilMobile.error = " Required"
171171 valid = false
172- } else if (etMobile.trimmedText.length != 12 ) {
173- tilMobile.error = " A valid mobile number is required"
174- valid = false
175172 }
176173
177174 if (etEmail.trimmedText.isEmpty()) {
Original file line number Diff line number Diff line change 6767 style =" @style/AppTheme.InputField"
6868 android : layout_width =" match_parent"
6969 android : layout_height =" wrap_content"
70- app : counterMaxLength =" 12"
71- app : counterEnabled =" true"
7270 android : layout_marginStart =" 16dp"
7371 android : layout_marginEnd =" 16dp"
7472 android : layout_marginBottom =" 8dp"
Original file line number Diff line number Diff line change 103103 android : layout_marginTop =" 8dp"
104104 android : layout_marginEnd =" 16dp"
105105 android : hint =" Mobile Number"
106- app : counterEnabled =" true"
107- app : counterMaxLength =" 12"
108106 app : layout_constraintEnd_toEndOf =" parent"
109107 app : layout_constraintStart_toStartOf =" parent"
110108 app : layout_constraintTop_toBottomOf =" @+id/tilEmail" >
115113 android : layout_height =" wrap_content"
116114 android : enabled =" false"
117115 android : inputType =" phone"
118- android : maxLength =" 12"
119116 android : textSize =" 14sp" />
120117 </com .google.android.material.textfield.TextInputLayout>
121118
Original file line number Diff line number Diff line change 126126 android : layout_marginStart =" 16dp"
127127 android : layout_marginTop =" 8dp"
128128 android : layout_marginEnd =" 16dp"
129- android : hint =" Mobile Number"
130- app : counterEnabled =" true"
131- app : counterMaxLength =" 12" >
129+ android : hint =" Mobile Number" >
132130
133131 <com .google.android.material.textfield.TextInputEditText
134132 android : id =" @+id/etMobileNumber"
135133 android : layout_width =" match_parent"
136134 android : layout_height =" wrap_content"
137135 android : inputType =" phone"
138- android : maxLength =" 12"
139136 android : text =" 254"
140137 android : textSize =" 14sp" />
141138 </com .google.android.material.textfield.TextInputLayout>
You can’t perform that action at this time.
0 commit comments