mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 12:07:28 +00:00
Fix detekted issues.
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
+5
-1
@@ -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
|
||||||
|
|||||||
+1
-1
@@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user