From c022a38dd44248bc1f3222eb59597badb62bc0a3 Mon Sep 17 00:00:00 2001 From: Adam Brown Date: Mon, 4 Apr 2022 16:25:00 +0100 Subject: [PATCH] checking the input field content for emptyness rather than its child count, fixes flaky initial value setting --- .../ftueauth/FtueAuthCombinedServerSelectionFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vector/src/main/java/im/vector/app/features/onboarding/ftueauth/FtueAuthCombinedServerSelectionFragment.kt b/vector/src/main/java/im/vector/app/features/onboarding/ftueauth/FtueAuthCombinedServerSelectionFragment.kt index 284bca3ed6..4603ecb0dc 100644 --- a/vector/src/main/java/im/vector/app/features/onboarding/ftueauth/FtueAuthCombinedServerSelectionFragment.kt +++ b/vector/src/main/java/im/vector/app/features/onboarding/ftueauth/FtueAuthCombinedServerSelectionFragment.kt @@ -57,7 +57,7 @@ class FtueAuthCombinedServerSelectionFragment @Inject constructor() : AbstractFt } override fun updateWithState(state: OnboardingViewState) { - if (views.chooseServerInput.isEmpty()) { + if (views.chooseServerInput.content().isEmpty()) { val userUrlInput = state.selectedHomeserver.sourceUrl?.toReducedUrlKeepingSchemaIfInsecure() views.chooseServerInput.editText().setText(userUrlInput) }