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

Commit 1fa2cf32 authored by Kshitij's avatar Kshitij Committed by Mohammed Althaf T
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

Signed-off-by: default avatarSaalim Quadri <danascape@gmail.com>
parent 917c97e0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -115,7 +115,7 @@ public class WorkspaceItemSpaceFinder {

    private boolean findNextAvailableIconSpaceInScreen(
            ArrayList<ItemInfo> occupiedPos, int[] xy, int spanX, int spanY) {
        GridOccupancy occupied = new GridOccupancy(mIDP.numColumns, mIDP.numRows);
        GridOccupancy occupied = new GridOccupancy(mIDP.numColumnsFixed, mIDP.numRowsFixed);
        if (occupiedPos != null) {
            for (ItemInfo r : occupiedPos) {
                occupied.markCells(r, true);