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

Commit e3948da4 authored by Thales Lima's avatar Thales Lima Committed by Android (Google) Code Review
Browse files

Merge "Extract cell horizontal space to a method" into tm-qpr-dev

parents 0397cb0c 1e8b45f8
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -513,7 +513,7 @@ public class DeviceProfile {
    private int getIconToIconWidthForColumns(int columns) {
        return columns * getCellSize().x
                + (columns - 1) * cellLayoutBorderSpacePx.x
                - (getCellSize().x - iconSizePx);  // left and right cell space
                - getCellHorizontalSpace();
    }

    private int getHorizontalMarginPx(InvariantDeviceProfile idp, Resources res) {
@@ -984,6 +984,13 @@ public class DeviceProfile {
        return result;
    }

    /**
     * Returns the left and right space on the cell, which is the cell width - icon size
     */
    public int getCellHorizontalSpace() {
        return getCellSize().x - iconSizePx;
    }

    /**
     * Gets the number of panels within the workspace.
     */