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

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

No files matched your search

+4 -2
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();
}
/**