Merge "launcher: create more space options" into sc-v2-dev

This commit is contained in:
Thales Lima
2021-10-05 15:38:57 +00:00
committed by Android (Google) Code Review
14 changed files with 246 additions and 125 deletions

View File

@@ -346,12 +346,12 @@ public class Workspace extends PagedView<WorkspacePageIndicator>
// Add missing cellLayout border in-between panels.
if (panelCount > 1) {
if (i % panelCount == leftPanelModulus) {
paddingRight += grid.cellLayoutBorderSpacingPx / 2;
paddingRight += grid.cellLayoutBorderSpacePx.x / 2;
} else if (i % panelCount == rightPanelModulus) { // right side panel
paddingLeft += grid.cellLayoutBorderSpacingPx / 2;
paddingLeft += grid.cellLayoutBorderSpacePx.x / 2;
} else { // middle panel
paddingLeft += grid.cellLayoutBorderSpacingPx / 2;
paddingRight += grid.cellLayoutBorderSpacingPx / 2;
paddingLeft += grid.cellLayoutBorderSpacePx.x / 2;
paddingRight += grid.cellLayoutBorderSpacePx.x / 2;
}
}
// SparseArrayMap doesn't keep the order