Fix detekted issues.
This commit is contained in:
parent
3e8d11efce
commit
e777bcc20a
3 changed files with 11 additions and 3 deletions
|
|
@ -79,13 +79,17 @@ fun LoginScreen(
|
||||||
fun LoginContent(
|
fun LoginContent(
|
||||||
state: LoginViewState,
|
state: LoginViewState,
|
||||||
formState: LoginFormState,
|
formState: LoginFormState,
|
||||||
|
modifier: Modifier = Modifier,
|
||||||
onChangeServer: () -> Unit = {},
|
onChangeServer: () -> Unit = {},
|
||||||
onLoginChanged: (String) -> Unit = {},
|
onLoginChanged: (String) -> Unit = {},
|
||||||
onPasswordChanged: (String) -> Unit = {},
|
onPasswordChanged: (String) -> Unit = {},
|
||||||
onSubmitClicked: () -> Unit = {},
|
onSubmitClicked: () -> Unit = {},
|
||||||
onLoginWithSuccess: () -> Unit = {},
|
onLoginWithSuccess: () -> Unit = {},
|
||||||
) {
|
) {
|
||||||
Surface(color = MaterialTheme.colorScheme.background) {
|
Surface(
|
||||||
|
modifier = modifier,
|
||||||
|
color = MaterialTheme.colorScheme.background,
|
||||||
|
) {
|
||||||
Box(
|
Box(
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.fillMaxSize()
|
.fillMaxSize()
|
||||||
|
|
|
||||||
|
|
@ -62,11 +62,15 @@ fun ChangeServerScreen(
|
||||||
@Composable
|
@Composable
|
||||||
fun ChangeServerContent(
|
fun ChangeServerContent(
|
||||||
state: ChangeServerViewState,
|
state: ChangeServerViewState,
|
||||||
|
modifier: Modifier = Modifier,
|
||||||
onChangeServer: (String) -> Unit = {},
|
onChangeServer: (String) -> Unit = {},
|
||||||
onChangeServerSubmit: () -> Unit = {},
|
onChangeServerSubmit: () -> Unit = {},
|
||||||
onChangeServerSuccess: () -> Unit = {},
|
onChangeServerSuccess: () -> Unit = {},
|
||||||
) {
|
) {
|
||||||
Surface(color = MaterialTheme.colorScheme.background) {
|
Surface(
|
||||||
|
modifier = modifier,
|
||||||
|
color = MaterialTheme.colorScheme.background,
|
||||||
|
) {
|
||||||
val scrollState = rememberScrollState()
|
val scrollState = rememberScrollState()
|
||||||
Box(
|
Box(
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ class ChangeServerViewModel(initialState: ChangeServerViewState) :
|
||||||
suspend {
|
suspend {
|
||||||
val state = awaitState()
|
val state = awaitState()
|
||||||
matrix.setHomeserver(state.homeserver)
|
matrix.setHomeserver(state.homeserver)
|
||||||
}.execute { it ->
|
}.execute {
|
||||||
copy(changeServerAction = it)
|
copy(changeServerAction = it)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue