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

Commit 8687018b authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Disable app chip menu height limit for bottom row" into main

parents 18694cc9 293d2cb8
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -140,10 +140,15 @@ public class TaskMenuView extends AbstractFloatingView {

    @Override
    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        if (!(enableOverviewIconMenu()
                && ((RecentsView) mActivity.getOverviewPanel()).isOnGridBottomRow(mTaskView))) {
            // TODO(b/326952853): Cap menu height for grid bottom row in a way that doesn't break
            // additionalTranslationY.
            int maxMenuHeight = calculateMaxHeight();
            if (MeasureSpec.getSize(heightMeasureSpec) > maxMenuHeight) {
                heightMeasureSpec = MeasureSpec.makeMeasureSpec(maxMenuHeight, MeasureSpec.AT_MOST);
            }
        }
        super.onMeasure(widthMeasureSpec, heightMeasureSpec);
    }