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

Commit faea66fe authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Ensuring workspace pages are offset properly in waterfall cutout

Bug: 149224750
Change-Id: I523b09aa4cbe7710e3fd89bc716bacbafd4eadc8
parent 1bab050d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -309,7 +309,9 @@ public class Workspace extends PagedView<WorkspacePageIndicator>
            // In portrait, we want the pages spaced such that there is no
            // overhang of the previous / next page into the current page viewport.
            // We assume symmetrical padding in portrait mode.
            setPageSpacing(Math.max(grid.edgeMarginPx, padding.left + 1));
            int maxInsets = Math.max(insets.left, insets.right);
            int maxPadding = Math.max(grid.edgeMarginPx, padding.left + 1);
            setPageSpacing(Math.max(maxInsets, maxPadding));
        }