From 8d9e811e4d9575fa33f54c397751033607323620 Mon Sep 17 00:00:00 2001 From: Hoyt Summers Pittman Date: Thu, 17 Aug 2023 13:21:19 -0400 Subject: [PATCH] Nit : Fix error in comment (#140) 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))