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

Commit 1f327131 authored by Kshitij's avatar Kshitij
Browse files

Merge branch '2818os-t-newapp_pos_fix' into 'v1-t'

fix: Resolve determination of next empty space in landscape

See merge request e/os/BlissLauncher3!79
parents 1b759b7e bb3e6ad9
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -104,7 +104,7 @@ public class WorkspaceItemSpaceFinder {
            int[] xy, int spanX, int spanY) {
            int[] xy, int spanX, int spanY) {
        InvariantDeviceProfile profile = app.getInvariantDeviceProfile();
        InvariantDeviceProfile profile = app.getInvariantDeviceProfile();


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