formatting function arguments to be on separate lines

This commit is contained in:
Adam Brown 2022-09-01 12:46:49 +01:00
parent 62e8beadf8
commit 81f6f768fb
1 changed files with 4 additions and 3 deletions

View File

@ -61,9 +61,10 @@ class FtueAuthEmailEntryFragment : AbstractFtueAuthFragment<FragmentFtueEmailInp
private fun setupViews() { private fun setupViews() {
views.emailEntryInput.hint = getString(if (params.mandatory) R.string.ftue_auth_email_entry_title else R.string.login_set_email_optional_hint) views.emailEntryInput.hint = getString(if (params.mandatory) R.string.ftue_auth_email_entry_title else R.string.login_set_email_optional_hint)
views.emailEntryInput.associateContentStateWith(button = views.emailEntrySubmit, enabledPredicate = { views.emailEntryInput.associateContentStateWith(
it.isEmail() || it.isEmptyAndOptional() button = views.emailEntrySubmit,
}) enabledPredicate = { it.isEmail() || it.isEmptyAndOptional() },
)
views.emailEntryInput.setOnImeDoneListener { updateEmail() } views.emailEntryInput.setOnImeDoneListener { updateEmail() }
views.emailEntryInput.clearErrorOnChange(viewLifecycleOwner) views.emailEntryInput.clearErrorOnChange(viewLifecycleOwner)
views.emailEntrySubmit.debouncedClicks { updateEmail() } views.emailEntrySubmit.debouncedClicks { updateEmail() }