Skip to content
This repository was archived by the owner on Dec 16, 2023. It is now read-only.

Commit 1cd853f

Browse files
committed
Remove mobile number length restrictions/indicators
1 parent e20fea4 commit 1cd853f

4 files changed

Lines changed: 1 addition & 12 deletions

File tree

app/src/main/java/com/marknkamau/justjava/ui/profile/ProfileActivity.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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()) {

app/src/main/res/layout/activity_complete_sign_up.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@
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"

app/src/main/res/layout/activity_profile.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,6 @@
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">
@@ -115,7 +113,6 @@
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

app/src/main/res/layout/activity_sign_up.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,16 +126,13 @@
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>

0 commit comments

Comments
 (0)