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

Commit 467aba48 authored by Sunny Goyal's avatar Sunny Goyal Committed by Automerger Merge Worker
Browse files

Ensuring workspace pages are offset properly in waterfall cutout am: faea66fe

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12110121

Change-Id: I96925078c01137326fa2842dfbb5cd44b225f16b
parents d4a512ee faea66fe
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));
        }