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

Commit 59bf140a authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊 Committed by Saalim Quadri
Browse files

Revert "feat: Fix hotseat when there's no navbar hint"



This reverts commit 491697e0.

Signed-off-by: default avatarSaalim Quadri <danascape@gmail.com>
parent da2b37f6
Loading
Loading
Loading
Loading
+2 −9
Original line number Diff line number Diff line
@@ -1943,20 +1943,13 @@ public class DeviceProfile {
            float workspaceCellWidth = (float) widthPx / inv.numColumns;
            float hotseatCellWidth = (float) widthPx / numShownHotseatIcons;
            int hotseatAdjustment = Math.round((workspaceCellWidth - hotseatCellWidth) / 2);

            WindowManagerProxy wm = WindowManagerProxy.newInstance(context);
            boolean isFullyGesture = wm.getNavigationMode(context) == NavigationMode.NO_BUTTON;
            boolean noHint = isFullyGesture && LineageSettings.System.getInt(
                    context.getContentResolver(), LineageSettings.System.NAVIGATION_BAR_HINT, 0) != 1;

            hotseatBarPadding.set(
                    hotseatAdjustment + workspacePadding.left + cellLayoutPaddingPx.left
                            + mInsets.left,
                    noHint ? (hotseatBarSizePx - hotseatCellHeightPx) / 2 : 0,
                    0,
                    hotseatAdjustment + workspacePadding.right + cellLayoutPaddingPx.right
                            + mInsets.right,
                    noHint ? getHotseatBarBottomPadding() - (getHotseatBarBottomPadding() / 2)
                            : getHotseatBarBottomPadding());
                    getHotseatBarBottomPadding());
        }
        return hotseatBarPadding;
    }