From 6da8921532ba4247fc08f462c4cb86ee9c388295 Mon Sep 17 00:00:00 2001 From: Hoyt Summers Pittman Date: Thu, 17 Aug 2023 13:03:02 -0400 Subject: [PATCH] Nit : Fix error in comment The LocalSize.current returns the size of the widget, not the max size of the widget. --- .../java/com/example/compose/snippets/glance/GlanceSnippets.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compose/snippets/src/main/java/com/example/compose/snippets/glance/GlanceSnippets.kt b/compose/snippets/src/main/java/com/example/compose/snippets/glance/GlanceSnippets.kt index 49819ef8..4e1af17d 100644 --- a/compose/snippets/src/main/java/com/example/compose/snippets/glance/GlanceSnippets.kt +++ b/compose/snippets/src/main/java/com/example/compose/snippets/glance/GlanceSnippets.kt @@ -610,7 +610,7 @@ object SizeModeSnippets3 { @Composable private fun MyContent() { - // Size will be the max available size for the AppWidget + // Size will be the size of the AppWidget val size = LocalSize.current Column { Text(text = "Where to?", modifier = GlanceModifier.padding(12.dp))