From 39d2a9f45b3bb3c88860bdebb3c353d54335fae8 Mon Sep 17 00:00:00 2001 From: Nishith Khanna Date: Mon, 2 May 2022 15:48:22 +0530 Subject: [PATCH] Create Account: Remove error in input field when someone types --- .../e/accountmanager/ui/setup/SendInviteFragment.kt | 4 +++- app/src/main/res/layout/fragment_send_invite.xml | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/foundation/e/accountmanager/ui/setup/SendInviteFragment.kt b/app/src/main/java/foundation/e/accountmanager/ui/setup/SendInviteFragment.kt index 4bc1c68f0..bcee00901 100644 --- a/app/src/main/java/foundation/e/accountmanager/ui/setup/SendInviteFragment.kt +++ b/app/src/main/java/foundation/e/accountmanager/ui/setup/SendInviteFragment.kt @@ -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(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 +} diff --git a/app/src/main/res/layout/fragment_send_invite.xml b/app/src/main/res/layout/fragment_send_invite.xml index 3f34e3f2c..d5710f5ff 100644 --- a/app/src/main/res/layout/fragment_send_invite.xml +++ b/app/src/main/res/layout/fragment_send_invite.xml @@ -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"> -- GitLab