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

Commit c5794df2 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Consistent portrait/landscape spacing"

parents f0962a49 32d17f14
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -388,8 +388,11 @@ public class ExpandedAnimationController
        mBubblesMaxRendered = res.getInteger(R.integer.bubbles_max_rendered);

        // Includes overflow button.
        float totalGapWidth = getWidthForDisplayingBubbles() - (mExpandedViewPadding * 2)
                - (mBubblesMaxRendered + 1) * mBubbleSizePx;
        // TODO(b/148675523) this is a temporary work around; change back once we have proper fix.
//        float totalGapWidth = getWidthForDisplayingBubbles() - (mExpandedViewPadding * 2)
//                - (mBubblesMaxRendered + 1) * mBubbleSizePx;
        float totalGapWidth = getAvailableScreenWidth(true /* includeStableInsets */)
                - (mExpandedViewPadding * 2) - (mBubblesMaxRendered + 1) * mBubbleSizePx;
        mSpaceBetweenBubbles = totalGapWidth / mBubblesMaxRendered;

        // Ensure that all child views are at 1x scale, and visible, in case they were animating