From 2e12e5e089a4599197e02a5db6982e6d499a877b Mon Sep 17 00:00:00 2001 From: Adam Brown Date: Tue, 10 Jan 2023 22:03:08 +0000 Subject: [PATCH] fixing profile toolbar ordering --- .../src/main/kotlin/app/dapk/st/profile/ProfileScreen.kt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/features/profile/src/main/kotlin/app/dapk/st/profile/ProfileScreen.kt b/features/profile/src/main/kotlin/app/dapk/st/profile/ProfileScreen.kt index 1a3e20c..b4feac8 100644 --- a/features/profile/src/main/kotlin/app/dapk/st/profile/ProfileScreen.kt +++ b/features/profile/src/main/kotlin/app/dapk/st/profile/ProfileScreen.kt @@ -67,10 +67,6 @@ private fun ProfilePage(context: Context, viewModel: ProfileState, profile: Page .fillMaxWidth() .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() when (val state = profile.content) { 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") + } } }