We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b94445 commit 9bb7cb9Copy full SHA for 9bb7cb9
compose/snippets/src/main/java/com/example/compose/snippets/layouts/AdaptiveLayoutSnippets.kt
@@ -48,7 +48,7 @@ import androidx.window.core.layout.WindowSizeClass
48
// [START android_compose_adaptive_layouts_basic]
49
@Composable
50
fun MyApp(
51
- windowSizeClass: WindowSizeClass = currentWindowAdaptiveInfo().windowSizeClass
+ windowSizeClass: WindowSizeClass = currentWindowAdaptiveInfo(supportLargeAndXLargeWidth = true).windowSizeClass
52
) {
53
// Decide whether to show the top app bar based on window size class.
54
val showTopAppBar = windowSizeClass.isHeightAtLeastBreakpoint(WindowSizeClass.HEIGHT_DP_MEDIUM_LOWER_BOUND)
0 commit comments