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

Verified Commit 50e6b583 authored by Kshitij's avatar Kshitij Committed by Saalim Quadri
Browse files

fix: Properly handle rows and columns on commit with Transpose mapper

parent e38897d5
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -90,8 +90,8 @@ public class CellPosMapper {
            if (container != Favorites.CONTAINER_DESKTOP) {
                super.mapPresenterToModel(presenterX, presenterY, presenterScreen, container);
            }
            final int numRows = mIDP.numRowsFixed;
            final int numColumns = mIDP.numColumnsFixed;
            final int numRows = mIDP.numColumnsFixed;
            final int numColumns = mIDP.numRowsFixed;
            final int index = (presenterY * numColumns) + presenterX;
            return new CellPos(index % numRows, index / numRows, presenterScreen);
        }