mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-12-26 09:33:14 +01: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
@ -57,7 +57,7 @@ class FtueAuthCombinedServerSelectionFragment @Inject constructor() : AbstractFt
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun updateWithState(state: OnboardingViewState) {
|
override fun updateWithState(state: OnboardingViewState) {
|
||||||
if (views.chooseServerInput.isEmpty()) {
|
if (views.chooseServerInput.content().isEmpty()) {
|
||||||
val userUrlInput = state.selectedHomeserver.sourceUrl?.toReducedUrlKeepingSchemaIfInsecure()
|
val userUrlInput = state.selectedHomeserver.sourceUrl?.toReducedUrlKeepingSchemaIfInsecure()
|
||||||
views.chooseServerInput.editText().setText(userUrlInput)
|
views.chooseServerInput.editText().setText(userUrlInput)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user