From 8da3488bf6278b4b76d0146e720dc12982314c2a Mon Sep 17 00:00:00 2001 From: eviarch Date: Tue, 5 Mar 2024 23:46:55 +0800 Subject: [PATCH] Reset scrollBehavior --- .../java/top/eviarch/simplenote/ui/topbar/EditNoteTopbar.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/top/eviarch/simplenote/ui/topbar/EditNoteTopbar.kt b/app/src/main/java/top/eviarch/simplenote/ui/topbar/EditNoteTopbar.kt index d685a79..9d12b0b 100644 --- a/app/src/main/java/top/eviarch/simplenote/ui/topbar/EditNoteTopbar.kt +++ b/app/src/main/java/top/eviarch/simplenote/ui/topbar/EditNoteTopbar.kt @@ -15,8 +15,8 @@ import androidx.compose.material3.ExperimentalMaterial3Api import androidx.compose.material3.Icon import androidx.compose.material3.IconButton import androidx.compose.material3.MaterialTheme -import androidx.compose.material3.MediumTopAppBar import androidx.compose.material3.Text +import androidx.compose.material3.TopAppBar import androidx.compose.material3.TopAppBarDefaults import androidx.compose.material3.TopAppBarScrollBehavior import androidx.compose.runtime.Composable @@ -61,7 +61,7 @@ fun EditNoteTopBar( ) { var showDialog by remember { mutableStateOf(false) } val interactionSource = remember { MutableInteractionSource() } - MediumTopAppBar( + TopAppBar( scrollBehavior = scrollBehavior, colors = TopAppBarDefaults.topAppBarColors( containerColor = MaterialTheme.colorScheme.primaryContainer,