mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-15 01:35:07 +08:00
focus input when changing server address
This commit is contained in:
parent
2b5920e451
commit
b2212a7e2b
1
changelog.d/6926.misc
Normal file
1
changelog.d/6926.misc
Normal file
@ -0,0 +1 @@
|
||||
Focus input field when editing homeserver address to speed up login and registration.
|
@ -28,6 +28,7 @@ import im.vector.app.core.extensions.content
|
||||
import im.vector.app.core.extensions.editText
|
||||
import im.vector.app.core.extensions.realignPercentagesToParent
|
||||
import im.vector.app.core.extensions.setOnImeDoneListener
|
||||
import im.vector.app.core.extensions.showKeyboard
|
||||
import im.vector.app.core.extensions.toReducedUrl
|
||||
import im.vector.app.core.utils.ensureProtocol
|
||||
import im.vector.app.core.utils.ensureTrailingSlash
|
||||
@ -91,6 +92,9 @@ class FtueAuthCombinedServerSelectionFragment :
|
||||
val userUrlInput = state.selectedHomeserver.userFacingUrl?.toReducedUrlKeepingSchemaIfInsecure() ?: viewModel.getDefaultHomeserverUrl()
|
||||
views.chooseServerInput.editText().setText(userUrlInput)
|
||||
}
|
||||
|
||||
views.chooseServerInput.editText().selectAll()
|
||||
views.chooseServerInput.editText().showKeyboard(true)
|
||||
}
|
||||
|
||||
override fun onError(throwable: Throwable) {
|
||||
|
Loading…
Reference in New Issue
Block a user