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

Verified Commit 1f495c8a authored by Kshitij's avatar Kshitij Committed by Saalim Quadri
Browse files

fix: Improve positioning of hotseat icons

parent 4a581bfd
Loading
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1976,6 +1976,10 @@ public class DeviceProfile {
            boolean noHint = isFullyGesture && LineageSettings.System.getInt(
                    context.getContentResolver(), LineageSettings.System.NAVIGATION_BAR_HINT, 0) != 1;
            int hotseatIconMargin = Math.abs(hotseatCellHeightPx - iconSizePx);
            // Values obtained by manual validation, independent of dpi and display scale
            double marginScaleFactor = mInfo.navigationMode == NavigationMode.NO_BUTTON
                    ? 3.25
                    : 2.75;
            hotseatBarPadding.set(
                    hotseatAdjustment + workspacePadding.left + cellLayoutPaddingPx.left
                            + mInsets.left,
@@ -1983,7 +1987,7 @@ public class DeviceProfile {
                    hotseatAdjustment + workspacePadding.right + cellLayoutPaddingPx.right
                            + mInsets.right,
                    noHint ? getHotseatBarBottomPadding() - (getHotseatBarBottomPadding() / 2)
                            : getHotseatBarBottomPadding() - (2 * hotseatIconMargin));
                            : getHotseatBarBottomPadding() - - (int) (marginScaleFactor * hotseatIconMargin));
        }
        return hotseatBarPadding;
    }