diff options
| author | 2025-02-10 09:21:57 -0800 | |
|---|---|---|
| committer | 2025-02-10 09:21:57 -0800 | |
| commit | 2651dace68c24145c62a25fce4e78e05929028f1 (patch) | |
| tree | 541d3502acc5f175c34c3e0b13b9b13a23325fd5 | |
| parent | b04e0f116a05ff080bcb2cb5338b1ee72ca24fcb (diff) | |
| parent | 6300632af27ecea28ab9c6249800fb8127cb4040 (diff) | |
Merge "Increase breakpoint for 3 columns on glanceable hub" into main
| -rw-r--r-- | packages/SystemUI/compose/features/src/com/android/systemui/communal/ui/compose/ResponsiveLazyHorizontalGrid.kt | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/packages/SystemUI/compose/features/src/com/android/systemui/communal/ui/compose/ResponsiveLazyHorizontalGrid.kt b/packages/SystemUI/compose/features/src/com/android/systemui/communal/ui/compose/ResponsiveLazyHorizontalGrid.kt index 62aa31b49870..73a24257580c 100644 --- a/packages/SystemUI/compose/features/src/com/android/systemui/communal/ui/compose/ResponsiveLazyHorizontalGrid.kt +++ b/packages/SystemUI/compose/features/src/com/android/systemui/communal/ui/compose/ResponsiveLazyHorizontalGrid.kt @@ -50,7 +50,6 @@ import androidx.compose.ui.unit.times import androidx.window.layout.WindowMetricsCalculator import com.android.systemui.communal.util.WindowSizeUtils.COMPACT_HEIGHT import com.android.systemui.communal.util.WindowSizeUtils.COMPACT_WIDTH -import com.android.systemui.communal.util.WindowSizeUtils.MEDIUM_WIDTH /** * Renders a responsive [LazyHorizontalGrid] with dynamic columns and rows. Each cell will maintain @@ -267,9 +266,8 @@ fun calculateWindowSize(): DpSize { } private fun calculateNumCellsWidth(width: Dp) = - // See https://developer.android.com/develop/ui/views/layout/use-window-size-classes when { - width >= MEDIUM_WIDTH -> 3 + width >= 900.dp -> 3 width >= COMPACT_WIDTH -> 2 else -> 1 } |