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

Verified Commit 3625d377 authored by Saalim Quadri's avatar Saalim Quadri
Browse files

feat: Recalculate hotseat space at certain cases

parent a720f7a4
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1748,9 +1748,10 @@ public class DeviceProfile {
    public void updateInsets(Rect insets) {
        if (!mInsets.equals(insets)) {
            mInsets.set(insets);
            // Recalculate hotseat spacing
            // Recalculate hotseat sizes and spacing
            if (iconSizePx > 0) {
                updateHotseatSizes(iconSizePx);
                recalculateHotseatWidthAndBorderSpace();
            }
        }
    }
@@ -2004,6 +2005,7 @@ public class DeviceProfile {
            hotseatIconSizePx = (int) (hotseatIconSizePx / 1.2f);
        }
        updateHotseatSizes(hotseatIconSizePx);
        recalculateHotseatWidthAndBorderSpace();
        Rect hotseatBarPadding = new Rect();
        boolean isFullyGesture = isGestural();
        if (isVerticalBarLayout()) {