mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 11:18:21 +00:00
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
This commit is contained in:
@@ -140,9 +140,14 @@ public class TaskMenuView extends AbstractFloatingView {
|
||||
|
||||
@Override
|
||||
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
|
||||
int maxMenuHeight = calculateMaxHeight();
|
||||
if (MeasureSpec.getSize(heightMeasureSpec) > maxMenuHeight) {
|
||||
heightMeasureSpec = MeasureSpec.makeMeasureSpec(maxMenuHeight, MeasureSpec.AT_MOST);
|
||||
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user