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

Commit d0dbaea9 authored by Kshitij's avatar Kshitij Committed by Mohammed Althaf T
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

Signed-off-by: default avatarSaalim Quadri <danascape@gmail.com>
parent db401afc
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -341,10 +341,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();