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

Commit 293d2cb8 authored by Alex Chau's avatar Alex Chau
Browse files

Disable app chip menu height limit for bottom row

Bug: 326952853
Flag: ACONFIG com.android.launcher3.enable_overview_icon_menu TEAMFOOD
Test: manual
Change-Id: I104296979803eb8967b07793f4f2590e592f9df7
parent 962b3d43
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);
    }