mirror of
https://github.com/Steffo99/twom.git
synced 2024-11-25 09:34:25 +00:00
Set HomeserverFieldState.Error even when the URL is invalid
This commit is contained in:
parent
eb300b2285
commit
0c7718492c
1 changed files with 1 additions and 0 deletions
|
@ -77,6 +77,7 @@ fun HomeserverContents() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!(URLUtil.isHttpUrl(homeserver) || URLUtil.isHttpsUrl(homeserver))) {
|
if(!(URLUtil.isHttpUrl(homeserver) || URLUtil.isHttpsUrl(homeserver))) {
|
||||||
|
homeserverFieldState = HomeserverFieldState.Error
|
||||||
homeserverUrlValid = false
|
homeserverUrlValid = false
|
||||||
return@OnValueChange
|
return@OnValueChange
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue