Skip to content

Commit

Permalink
Fix: Signup Activity password input fields are not visible now
Browse files Browse the repository at this point in the history
  • Loading branch information
omerarslnn committed Nov 20, 2021
1 parent c5361ff commit 80bbb4d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,14 @@ class SignupActivity : AppCompatActivity() {
}

override fun afterTextChanged(p0: Editable?) {
if((binding.etPasswordConfirm.text?.length ?: 0 == binding.etPassword.text?.length ?:0) &&
binding.etPasswordConfirm.text.toString() != binding.etPassword.text.toString() ) {
Toast.makeText(
applicationContext,
"Password and confirmation password do not match!",
Toast.LENGTH_LONG
).show()
}
checkFields()
}
})
Expand Down
2 changes: 2 additions & 0 deletions FindSportEvents/app/src/main/res/layout/activity_signup.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,15 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="@dimen/space_xx_large"
android:inputType="textPassword"
android:hint="@string/password" />

<com.google.android.material.textfield.TextInputEditText
android:id="@+id/et_password_confirm"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="@dimen/space_xx_large"
android:inputType="textPassword"
android:hint="@string/confirm_password" />

<com.google.android.material.textfield.TextInputEditText
Expand Down

0 comments on commit 80bbb4d

Please sign in to comment.