Commit c5613b13 authored by Nishith  Khanna's avatar Nishith Khanna
Browse files

Merge branch '259-fix_error_message' into 'master'

Create Account: Remove error in input field when someone types

See merge request !40
parents d3237c5e 39d2a9f4
Pipeline #182450 passed with stage
in 6 minutes and 17 seconds
......@@ -67,6 +67,7 @@ class SendInviteFragment : Fragment() {
emailTextLayout.boxStrokeColor = resources.getColor(R.color.create_account_input_disabled_color)
emailTextLayout.hintTextColor = resources.getColorStateList(R.color.create_account_input_disabled_color)
}
emailTextLayout.isErrorEnabled = false
}
override fun afterTextChanged(p0: Editable?) {
......@@ -174,6 +175,7 @@ class SendInviteFragment : Fragment() {
300 -> {
activity?.let {
val emailField = it.findViewById<TextInputLayout>(R.id.emailId_layout)
emailField.isErrorEnabled = true
emailField.error = getString(R.string.emailid_error)
}
......@@ -202,4 +204,4 @@ class SendInviteFragment : Fragment() {
return activeNetworkInfo != null && activeNetworkInfo.isConnectedOrConnecting
}
}
\ No newline at end of file
}
......@@ -37,7 +37,6 @@
android:layout_marginTop="25dp"
android:theme="@style/edittext_holder_theme"
app:hintTextColor="@color/create_account_input_disabled_color"
app:errorEnabled="true"
app:boxStrokeColor="@color/create_account_input_disabled_color"
app:layout_constraintStart_toStartOf="@id/heading"
app:layout_constraintTop_toBottomOf="@id/heading">
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment