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

Commit 98a7e7ca authored by Will Leshner's avatar Will Leshner
Browse files

Change lockscreen widgets to be 3-up on mobile.

With this change, widgets will be larger and take up more space on the
lockscreen in a 3-up configuration in portrait.

Open issues:

1. Widgets are 3-up in landscape as well, but are too small.
2. Widgets overlap edit mode buttons and the status text at the bottom
   of the screen.
3. Transitions into and out-of edit mode need to be repaired after this
   change.

Bug: 419357983
Test: manually
Flag: com.android.systemui.glanceable_hub_v2
Change-Id: Ic36f5e9fb7c055cbfbabacae4a0ffe8620cc034c
parent 251e0905
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -275,6 +275,6 @@ private fun calculateNumCellsWidth(width: Dp) =
private fun calculateNumCellsHeight(height: Dp) =
    when {
        height >= 1000.dp -> 3
        height >= COMPACT_HEIGHT -> 2
        height >= COMPACT_HEIGHT -> 3
        else -> 1
    }