Merge "Move overview actions to task menu when no focused task." into tm-qpr-dev

This commit is contained in:
Pat Manning
2023-02-03 13:51:54 +00:00
committed by Android (Google) Code Review
7 changed files with 45 additions and 20 deletions

View File

@@ -1411,8 +1411,10 @@ public class DeviceProfile {
/** Gets the space that the overview actions will take, including bottom margin. */
public int getOverviewActionsClaimedSpace() {
return overviewActionsTopMarginPx + overviewActionsHeight
+ getOverviewActionsClaimedSpaceBelow();
int overviewActionsSpace = isTablet && FeatureFlags.ENABLE_GRID_ONLY_OVERVIEW.get()
? 0
: (overviewActionsTopMarginPx + overviewActionsHeight);
return overviewActionsSpace + getOverviewActionsClaimedSpaceBelow();
}
/**