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

Commit 4ed17260 authored by Kshitij's avatar Kshitij
Browse files

fix: Readjust hotseat paddings for latest CL

parent 5f6a196c
Loading
Loading
Loading
Loading
+17 −3
Original line number Diff line number Diff line
@@ -1481,11 +1481,25 @@ public class DeviceProfile {
     * Returns the number of pixels the hotseat is translated from the bottom of the screen.
     */
    private int getHotseatBarBottomPadding() {
        int heightDifference = Math.abs(hotseatCellHeightPx - iconSizePx);
        boolean isFullyGesture = mInfo.navigationMode == NavigationMode.NO_BUTTON;
        if (isTaskbarPresent) { // QSB on top or inline
            if (isTablet) return hotseatBarBottomSpacePx / 2;
            return hotseatBarBottomSpacePx - (Math.abs(hotseatCellHeightPx - iconSizePx) / 2);
            if (isFullyGesture) {
                if (isLandscape) {
                    return 0;
                } else {
                    return  heightDifference / 2;
                }
            } else {
                if (isLandscape) {
                    return hotseatBarBottomSpacePx - (heightDifference / 2);
                } else {
                    return heightDifference;
                }
            }

        } else {
            return hotseatBarSizePx - hotseatCellHeightPx;
            return hotseatBarBottomSpacePx + ((isFullyGesture ? 1 : 2) * heightDifference);
        }
    }