From 87948ac8ef0173a1562ed43d58801d76e8387f99 Mon Sep 17 00:00:00 2001 From: Ben Trengrove Date: Thu, 23 Nov 2023 14:09:32 +1100 Subject: [PATCH] Update CustomModifierSnippets.kt (#174) --- .../compose/snippets/modifiers/CustomModifierSnippets.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/compose/snippets/src/main/java/com/example/compose/snippets/modifiers/CustomModifierSnippets.kt b/compose/snippets/src/main/java/com/example/compose/snippets/modifiers/CustomModifierSnippets.kt index 30b1b76a..c07abf1d 100644 --- a/compose/snippets/src/main/java/com/example/compose/snippets/modifiers/CustomModifierSnippets.kt +++ b/compose/snippets/src/main/java/com/example/compose/snippets/modifiers/CustomModifierSnippets.kt @@ -68,8 +68,7 @@ fun Modifier.clip(shape: Shape) = graphicsLayer(shape = shape, clip = true) // [END android_compose_custom_modifiers_1] // [START android_compose_custom_modifiers_2] -fun Modifier.myBackground(color: Color) = this then Modifier - .padding(16.dp) +fun Modifier.myBackground(color: Color) = padding(16.dp) .clip(RoundedCornerShape(8.dp)) .background(color) // [END android_compose_custom_modifiers_2]