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

Commit b8086fb4 authored by Alex Stetson's avatar Alex Stetson Committed by Android (Google) Code Review
Browse files

Merge "Ensure toolbar popup respects left system bars" into main

parents 42fa58b8 59a11c63
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -437,9 +437,8 @@ public final class LocalFloatingToolbarPopup implements FloatingToolbarPopup {

        // Initialize x ensuring that the toolbar isn't rendered behind the nav bar in
        // landscape.
        final int x = Math.min(
                contentRectOnScreen.centerX() - mPopupWindow.getWidth() / 2,
                mViewPortOnScreen.right - mPopupWindow.getWidth());
        final int x = Math.clamp(contentRectOnScreen.centerX() - mPopupWindow.getWidth() / 2,
                mViewPortOnScreen.left, mViewPortOnScreen.right - mPopupWindow.getWidth());

        final int y;