mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 05:31:21 +03:00
checking the input field content for emptyness rather than its child count, fixes flaky initial value setting
This commit is contained in:
parent
8b2e2a16e2
commit
c022a38dd4
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue