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

Commit a59e3bf1 authored by Kshitij's avatar Kshitij
Browse files

fix: Ensure dock bounds are aligned on phone

- This is only needed on tablet to prevent clipping of
  notification badges with more dock icons
parent 5dca52f7
Loading
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -192,10 +192,12 @@ public class Hotseat extends CellLayout implements Insettable, OffsetParent {
    protected void onLayout(boolean changed, int l, int t, int r, int b) {
        DeviceProfile dp = mActivity.getDeviceProfile();

        if (dp.isTablet || dp.isLandscape) {
            MarginLayoutParams lp = ((MarginLayoutParams) getLayoutParams());
            lp.leftMargin = -(dp.edgeMarginPx);
            lp.rightMargin = -(dp.edgeMarginPx);
            setLayoutParams(lp);
        }
        super.onLayout(changed, l, t, r, b);

        int qsbMeasuredWidth = mQsb.getMeasuredWidth();