From bef33daab3ce43c7a52acef22749202e0214e105 Mon Sep 17 00:00:00 2001 From: machiav3lli Date: Fri, 16 Sep 2022 14:37:09 +0200 Subject: [PATCH] Update: Allow simple TopBar without actions --- .../com/machiav3lli/fdroid/ui/compose/components/TopBar.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/com/machiav3lli/fdroid/ui/compose/components/TopBar.kt b/src/main/kotlin/com/machiav3lli/fdroid/ui/compose/components/TopBar.kt index 4655c335..e7b4ce31 100644 --- a/src/main/kotlin/com/machiav3lli/fdroid/ui/compose/components/TopBar.kt +++ b/src/main/kotlin/com/machiav3lli/fdroid/ui/compose/components/TopBar.kt @@ -47,7 +47,7 @@ import com.machiav3lli.fdroid.ui.compose.utils.HorizontalExpandingVisibility fun TopBar( title: String, scrollBehavior: TopAppBarScrollBehavior? = null, - actions: @Composable (RowScope.() -> Unit) + actions: @Composable (RowScope.() -> Unit) = {} ) { SmallTopAppBar( modifier = Modifier.wrapContentHeight(),