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

Verified Commit b5a63aa9 authored by Saalim Quadri's avatar Saalim Quadri
Browse files

fix: Ensure spacing sustains between hotseat and navbar

parent 18cd830b
Loading
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -1742,7 +1742,22 @@ public class DeviceProfile {
    }

    public void updateInsets(Rect insets) {
        if (mInsets.equals(insets)) {
            return;
        }
        boolean bottomChanged = mInsets.bottom != insets.bottom;
        mInsets.set(insets);
        if (bottomChanged) {
            int hotseatIconSizePx;
            if (mIsResponsiveGrid) {
                hotseatIconSizePx = mResponsiveWorkspaceCellSpec != null
                        ? mResponsiveWorkspaceCellSpec.getIconSize()
                        : pxFromDp(inv.iconSize[mTypeIndex], mMetrics);
            } else {
                hotseatIconSizePx = pxFromDp(inv.iconSize[mTypeIndex], mMetrics);
            }
            updateHotseatSizes(hotseatIconSizePx);
        }
    }

    /**