fixing profile toolbar ordering

This commit is contained in:
Adam Brown 2023-01-10 22:03:08 +00:00
parent 2a17f9d165
commit 2e12e5e089
1 changed files with 3 additions and 4 deletions

View File

@ -67,10 +67,6 @@ private fun ProfilePage(context: Context, viewModel: ProfileState, profile: Page
.fillMaxWidth() .fillMaxWidth()
.padding(8.dp), contentAlignment = Alignment.TopEnd .padding(8.dp), contentAlignment = Alignment.TopEnd
) { ) {
IconButton(onClick = { context.startActivity(Intent(context, SettingsActivity::class.java)) }) {
Icon(imageVector = Icons.Filled.Settings, contentDescription = "Settings")
}
val scrollState = rememberScrollState() val scrollState = rememberScrollState()
when (val state = profile.content) { when (val state = profile.content) {
is Lce.Loading -> CenteredLoading() is Lce.Loading -> CenteredLoading()
@ -123,6 +119,9 @@ private fun ProfilePage(context: Context, viewModel: ProfileState, profile: Page
} }
} }
} }
IconButton(onClick = { context.startActivity(Intent(context, SettingsActivity::class.java)) }) {
Icon(imageVector = Icons.Filled.Settings, contentDescription = "Settings")
}
} }
} }