mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-17 09:38:19 +00:00
Removing some redundant resource definitions
Change-Id: I68ae602116e6eb334dfce2a013fcc42068c464bf
This commit is contained in:
@@ -298,12 +298,12 @@ public class Workspace extends PagedView<WorkspacePageIndicator>
|
||||
|
||||
if (grid.shouldFadeAdjacentWorkspaceScreens()) {
|
||||
// In landscape mode the page spacing is set to the default.
|
||||
setPageSpacing(grid.defaultPageSpacingPx);
|
||||
setPageSpacing(grid.edgeMarginPx);
|
||||
} else {
|
||||
// In portrait, we want the pages spaced such that there is no
|
||||
// overhang of the previous / next page into the current page viewport.
|
||||
// We assume symmetrical padding in portrait mode.
|
||||
setPageSpacing(Math.max(grid.defaultPageSpacingPx, padding.left + 1));
|
||||
setPageSpacing(Math.max(grid.edgeMarginPx, padding.left + 1));
|
||||
}
|
||||
|
||||
int paddingLeftRight = grid.cellLayoutPaddingLeftRightPx;
|
||||
|
||||
Reference in New Issue
Block a user