Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f11bf548 authored by Lucas Silva's avatar Lucas Silva
Browse files

Fix communal grid breakpoint to have 2 rows on phones

Many phones have a screen height larger than 900dp. Increasing the
threshold to 1000dp temporarily for trunkfood while we get more specific
specs from UX.

Fixes: 385765793
Test: mp droid and verified grid has 2 rows on pixel 8a
Flag: com.android.systemui.communal_responsive_grid
Change-Id: I1a23a25a710d31419a055604829f3ef72ee5e50b
parent 244bcaed
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -272,9 +272,8 @@ private fun calculateNumCellsWidth(width: Dp) =
    }

private fun calculateNumCellsHeight(height: Dp) =
    // See https://developer.android.com/develop/ui/views/layout/use-window-size-classes
    when {
        height >= 900.dp -> 3
        height >= 1000.dp -> 3
        height >= 480.dp -> 2
        else -> 1
    }