Fix positioning of split instruction and share targets with taskbar in overview

- When taskbar is in overview, overview actions has dedicated space and no need to align to nav buttons
- Add a bottom margin to split instruction and share targetse that is equal to the space below overview actions

Bug: 245320601
Test: Test split select and share target with different screen sizes
Change-Id: I6aec325da9cc4c43c84ba8bed5f0e087c57d6925
This commit is contained in:
Alex Chau committed 2022-10-08 10:15:58 +01:00
1 parent b7b88b66bb
commit 8949c583ee
4 files changed
+22 -6

No files matched your search

+3 -1
View File
@@ -1272,7 +1272,9 @@ public class DeviceProfile {
* Returns the number of pixels required below OverviewActions excluding insets.
*/
public int getOverviewActionsClaimedSpaceBelow() {
if (isTaskbarPresent && !isGestureMode) {
if (isTaskbarPresent && !isGestureMode
// If taskbar is in overview, overview action has dedicated space above nav buttons
&& !FeatureFlags.ENABLE_TASKBAR_IN_OVERVIEW.get()) {
// Align vertically to where nav buttons are.
return ((taskbarSize - overviewActionsHeight) / 2) + getTaskbarOffsetY();
}