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

Commit b58e3437 authored by Kshitij's avatar Kshitij
Browse files

fix: Resolve determination of next empty space in landscape

- Landscape uses transpose wherein the rows and columns are
  switched. We need to use the fixed vars to properly determine
  a valid position. This is then taken over by CellPosMapper
parent a04fc820
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -104,7 +104,7 @@ public class WorkspaceItemSpaceFinder {
            int[] xy, int spanX, int spanY) {
        InvariantDeviceProfile profile = app.getInvariantDeviceProfile();

        GridOccupancy occupied = new GridOccupancy(profile.numColumns, profile.numRows);
        GridOccupancy occupied = new GridOccupancy(profile.numColumnsFixed, profile.numRowsFixed);
        if (occupiedPos != null) {
            for (ItemInfo r : occupiedPos) {
                occupied.markCells(r, true);