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

Commit 85b59b70 authored by Saalim Quadri's avatar Saalim Quadri Committed by Mohammed Althaf T
Browse files

(fix): Avoid negative hotseat space scenario on configuration change



* This is more of an edge case, while testing launcher, hotseat
  values are negative which causes icons to get clustered in each
  other causing overlaps

Signed-off-by: default avatarSaalim Quadri <danascape@gmail.com>
parent c77d1537
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1463,7 +1463,8 @@ public class DeviceProfile {

        float hotseatIconsTotalPx = iconSizePx * numShownHotseatIcons;
        int hotseatBorderSpacePx = (int) (hotseatWidthPx - hotseatIconsTotalPx) / numBorders;
        return Math.min(hotseatBorderSpacePx, mMaxHotseatIconSpacePx);
        int result = Math.min(hotseatBorderSpacePx, mMaxHotseatIconSpacePx);
        return Math.max(result, 0);
    }

    /**