Merge "resolve merge conflicts of 6d9e866669 to sc-v2-dev" into sc-v2-dev

This commit is contained in:
Jonathan Miranda 2021-07-24 03:55:56 +00:00 committed by Android (Google) Code Review
commit 831225d834
2 changed files with 7 additions and 7 deletions

View File

@ -80,10 +80,10 @@
launcher:b="16dp"/>
<workspaceBottomPadding
launcher:a="1"
launcher:c="52dp"/>
launcher:c="72dp"/>
<hotseatBottomPadding
launcher:a="0"
launcher:b="36dp"/>
launcher:b="56dp"/>
</device-padding>
<device-padding
@ -93,10 +93,10 @@
launcher:b="39dp"/>
<workspaceBottomPadding
launcher:a="1"
launcher:c="75dp"/>
launcher:c="95dp"/>
<hotseatBottomPadding
launcher:a="0"
launcher:b="36dp"/>
launcher:b="56dp"/>
</device-padding>
<device-padding

View File

@ -848,11 +848,11 @@ public class DeviceProfile {
? workspacePadding.bottom
: hotseatBarSizePx - hotseatCellHeightPx - hotseatQsbHeight;
if (isScalableGrid) {
if (isScalableGrid && qsbBottomMarginPx > mInsets.bottom) {
return Math.min(qsbBottomMarginPx, freeSpace);
} else {
} else {
return (int) (freeSpace * QSB_CENTER_FACTOR)
+ (isTaskbarPresent ? taskbarSize : getInsets().bottom);
+ (isTaskbarPresent ? taskbarSize : mInsets.bottom);
}
}