Merge "Update hotseat sizing for 4x5 grids." into sc-dev
This commit is contained in:
commit
6d9e866669
|
@ -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
|
||||
|
|
|
@ -207,7 +207,7 @@ public class Hotseat extends CellLayout implements Insettable {
|
|||
? dp.workspacePadding.bottom
|
||||
: dp.hotseatBarSizePx - dp.hotseatCellHeightPx - mQsbHeight;
|
||||
|
||||
if (dp.isScalableGrid) {
|
||||
if (dp.isScalableGrid && dp.qsbBottomMarginPx > dp.getInsets().bottom) {
|
||||
return Math.min(dp.qsbBottomMarginPx, freeSpace);
|
||||
} else {
|
||||
return (int) (freeSpace * QSB_CENTER_FACTOR) + (dp.isTaskbarPresent
|
||||
|
|
Loading…
Reference in New Issue