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

Commit 31c11260 authored by Kshitij's avatar Kshitij
Browse files

Merge branch '2842os-u-realignphonedock' into 'v1-u'

fix: Ensure dock bounds are aligned on phone

See merge request e/os/BlissLauncher3!86
parents 6022fede e5b03da8
Loading
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -287,10 +287,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();