From 7f1f873e3f169576171d1f160822e2a1c6478b53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Mon, 9 Oct 2023 12:07:39 +0200 Subject: [PATCH] Update sample with latest commons changes --- .../commons/samples/activities/MainActivity.kt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/samples/src/main/kotlin/com/simplemobiletools/commons/samples/activities/MainActivity.kt b/samples/src/main/kotlin/com/simplemobiletools/commons/samples/activities/MainActivity.kt index 2e9669167..f89829db6 100644 --- a/samples/src/main/kotlin/com/simplemobiletools/commons/samples/activities/MainActivity.kt +++ b/samples/src/main/kotlin/com/simplemobiletools/commons/samples/activities/MainActivity.kt @@ -25,13 +25,13 @@ import com.simplemobiletools.commons.activities.ManageBlockedNumbersActivity import com.simplemobiletools.commons.compose.alert_dialog.AlertDialogState import com.simplemobiletools.commons.compose.alert_dialog.rememberAlertDialogState import com.simplemobiletools.commons.compose.extensions.* +import com.simplemobiletools.commons.compose.lists.SimpleLazyListScaffold +import com.simplemobiletools.commons.compose.lists.simpleTopAppBarColors +import com.simplemobiletools.commons.compose.lists.topAppBarInsets +import com.simplemobiletools.commons.compose.lists.topAppBarPaddings import com.simplemobiletools.commons.compose.menus.ActionItem import com.simplemobiletools.commons.compose.menus.ActionMenu import com.simplemobiletools.commons.compose.menus.OverflowMode -import com.simplemobiletools.commons.compose.settings.scaffold.SettingsLazyScaffold -import com.simplemobiletools.commons.compose.settings.scaffold.topAppBarColors -import com.simplemobiletools.commons.compose.settings.scaffold.topAppBarInsets -import com.simplemobiletools.commons.compose.settings.scaffold.topAppBarPaddings import com.simplemobiletools.commons.compose.theme.AppThemeSurface import com.simplemobiletools.commons.dialogs.ConfirmationDialog import com.simplemobiletools.commons.dialogs.DonateAlertDialog @@ -52,7 +52,7 @@ class MainActivity : ComponentActivity() { enableEdgeToEdgeSimple() setContent { AppThemeSurface { - SettingsLazyScaffold( + SimpleLazyListScaffold( customTopBar = { scrolledColor: Color, _: MutableInteractionSource, scrollBehavior: TopAppBarScrollBehavior, statusBarColor: Int, colorTransitionFraction: Float, contrastColor: Color -> TopAppBar( title = {}, @@ -82,7 +82,7 @@ class MainActivity : ComponentActivity() { ) }, scrollBehavior = scrollBehavior, - colors = topAppBarColors(statusBarColor, colorTransitionFraction, contrastColor), + colors = simpleTopAppBarColors(statusBarColor, colorTransitionFraction, contrastColor), modifier = Modifier.topAppBarPaddings(), windowInsets = topAppBarInsets() )