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

Commit 488c5db2 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "make updateWidth aware of side margins"

parents ceb68e06 a8aae28c
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -298,7 +298,8 @@ public class VolumeDialogImpl implements VolumeDialog, TunerService.Tunable {
    }

    private void updateWindowWidthH() {
        final ViewGroup.LayoutParams lp = mDialogView.getLayoutParams();
        final ViewGroup.MarginLayoutParams lp =
                (ViewGroup.MarginLayoutParams) mDialogView.getLayoutParams();
        final DisplayMetrics dm = mContext.getResources().getDisplayMetrics();
        if (D.BUG) Log.d(TAG, "updateWindowWidth dm.w=" + dm.widthPixels);
        int w = dm.widthPixels;
@@ -307,7 +308,7 @@ public class VolumeDialogImpl implements VolumeDialog, TunerService.Tunable {
        if (w > max) {
            w = max;
        }
        lp.width = w;
        lp.width = w - lp.getMarginEnd() - lp.getMarginStart();
        mDialogView.setLayoutParams(lp);
    }