Loading src/com/android/launcher3/PagedView.java +2 −1 Original line number Diff line number Diff line Loading @@ -773,7 +773,8 @@ public abstract class PagedView<T extends View & PageIndicator> extends ViewGrou childStart += primaryDimension + getChildGap(); // This makes sure that the space is added after the page, not after each panel if (i % panelCount == panelCount - 1) { int lastPanel = mIsRtl ? 0 : panelCount - 1; if (i % panelCount == lastPanel) { childStart += mPageSpacing; } } Loading src/com/android/launcher3/Workspace.java +4 −2 Original line number Diff line number Diff line Loading @@ -338,15 +338,17 @@ public class Workspace extends PagedView<WorkspacePageIndicator> int paddingBottom = grid.cellLayoutBottomPaddingPx; int panelCount = getPanelCount(); int rightPanelModulus = mIsRtl ? 0 : panelCount - 1; int leftPanelModulus = mIsRtl ? panelCount - 1 : 0; int numberOfScreens = mScreenOrder.size(); for (int i = 0; i < numberOfScreens; i++) { int paddingLeft = paddingLeftRight; int paddingRight = paddingLeftRight; if (panelCount > 1) { if (i % panelCount == 0) { // left side panel if (i % panelCount == leftPanelModulus) { paddingLeft = paddingLeftRight; paddingRight = 0; } else if (i % panelCount == panelCount - 1) { // right side panel } else if (i % panelCount == rightPanelModulus) { paddingLeft = 0; paddingRight = paddingLeftRight; } else { // middle panel Loading Loading
src/com/android/launcher3/PagedView.java +2 −1 Original line number Diff line number Diff line Loading @@ -773,7 +773,8 @@ public abstract class PagedView<T extends View & PageIndicator> extends ViewGrou childStart += primaryDimension + getChildGap(); // This makes sure that the space is added after the page, not after each panel if (i % panelCount == panelCount - 1) { int lastPanel = mIsRtl ? 0 : panelCount - 1; if (i % panelCount == lastPanel) { childStart += mPageSpacing; } } Loading
src/com/android/launcher3/Workspace.java +4 −2 Original line number Diff line number Diff line Loading @@ -338,15 +338,17 @@ public class Workspace extends PagedView<WorkspacePageIndicator> int paddingBottom = grid.cellLayoutBottomPaddingPx; int panelCount = getPanelCount(); int rightPanelModulus = mIsRtl ? 0 : panelCount - 1; int leftPanelModulus = mIsRtl ? panelCount - 1 : 0; int numberOfScreens = mScreenOrder.size(); for (int i = 0; i < numberOfScreens; i++) { int paddingLeft = paddingLeftRight; int paddingRight = paddingLeftRight; if (panelCount > 1) { if (i % panelCount == 0) { // left side panel if (i % panelCount == leftPanelModulus) { paddingLeft = paddingLeftRight; paddingRight = 0; } else if (i % panelCount == panelCount - 1) { // right side panel } else if (i % panelCount == rightPanelModulus) { paddingLeft = 0; paddingRight = paddingLeftRight; } else { // middle panel Loading