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

Commit 34d28446 authored by Lucas Dupin's avatar Lucas Dupin Committed by Android (Google) Code Review
Browse files

Merge "Calculate spacers properly" into rvc-dev

parents 7cbba76b ff92353f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -429,7 +429,7 @@ class ControlsUiControllerImpl @Inject constructor (
        }

        // add spacers if necessary to keep control size consistent
        var spacersToAdd = selectedStructure.controls.size % maxColumns
        var spacersToAdd = maxColumns - (selectedStructure.controls.size % maxColumns)
        while (spacersToAdd > 0) {
            lastRow.addView(Space(context), LinearLayout.LayoutParams(0, 0, 1f))
            spacersToAdd--