Skip to content

Commit 9bb7cb9

Browse files
committed
Update Snippet to also support L and XL WSC
1 parent 4b94445 commit 9bb7cb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compose/snippets/src/main/java/com/example/compose/snippets/layouts/AdaptiveLayoutSnippets.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ import androidx.window.core.layout.WindowSizeClass
4848
// [START android_compose_adaptive_layouts_basic]
4949
@Composable
5050
fun MyApp(
51-
windowSizeClass: WindowSizeClass = currentWindowAdaptiveInfo().windowSizeClass
51+
windowSizeClass: WindowSizeClass = currentWindowAdaptiveInfo(supportLargeAndXLargeWidth = true).windowSizeClass
5252
) {
5353
// Decide whether to show the top app bar based on window size class.
5454
val showTopAppBar = windowSizeClass.isHeightAtLeastBreakpoint(WindowSizeClass.HEIGHT_DP_MEDIUM_LOWER_BOUND)

0 commit comments

Comments
 (0)