mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Trim fields in assistant
This commit is contained in:
parent
9a1ca386ca
commit
40610fd98f
2 changed files with 2 additions and 2 deletions
|
|
@ -206,6 +206,6 @@ class AccountLoginViewModel @UiThread constructor() : ViewModel() {
|
|||
|
||||
@UiThread
|
||||
private fun isLoginButtonEnabled(): Boolean {
|
||||
return sipIdentity.value.orEmpty().isNotEmpty() && password.value.orEmpty().isNotEmpty()
|
||||
return sipIdentity.value.orEmpty().trim().isNotEmpty() && password.value.orEmpty().isNotEmpty()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ class LandingViewModel @UiThread constructor() : ViewModel() {
|
|||
@UiThread
|
||||
fun login() {
|
||||
coreContext.postOnCoreThread {
|
||||
var identity = sipIdentity.value.orEmpty()
|
||||
var identity = sipIdentity.value.orEmpty().trim()
|
||||
if (!identity.startsWith("sip:")) {
|
||||
identity = "sip:$identity"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue