Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2e8356ba authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Update hotseat sizing for 4x5 grids." into sc-dev am: 6d9e8666

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15376677

Change-Id: I0480a1b2b46c8b7a62f6dc7de9b671dc8c887503
parents cc0f183b 6d9e8666
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -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